sql server - SQL UPDATE statement with WHERE EXISTS -



sql server - SQL UPDATE statement with WHERE EXISTS -

im trying write query updates date if grouping im updating has line_cd of 50. this?

update employer_addl set employer_addl.gtl_uw_apprv_dt = employer_addl.dntl_uw_apprv_dt exists ( select emp_plan_line_info.line_cd emp_plan_line_info emp_plan_line_info.gr_nbr = employer_addl.gr_nbr , emp_plan_line_info.line_cd = 50 )

what this?

update ea set ea.gtl_uw_apprv_dt = ea.dntl_uw_apprv_dt employer_addl ea inner bring together emp_plan_line_info ei on(ei.gr_nbr = ea.gr_nbr) ei.line_cd = 50

sql sql-server

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -