77971/how-can-i-do-an-update-statement-with-join-in-sql-server
I need to update this table in SQL Server with data from its 'parent' table, see below:
Table: sale
id (int) udid (int) assid (int)
Table: ud
id (int) assid (int)
sale.assid contains the correct value to update ud.assid.
What query will do this?
Hello @kartik,
This should work in SQL Server:
update ud set assid = sale.assid from sale where sale.udid = id
Hope it helps!!
Thank You!!
Hello @kartik, Try: mysql -u username -p database_name < ...READ MORE
HI.. SQL is Structured Query Language, which is ...READ MORE
Hey @kartik, You have to provide MySQL hostname, ...READ MORE
Hello @kartik, For 'long-lived connection' , you can ...READ MORE
Hello @kartik, You can either do like this: SELECT ...READ MORE
Hello guys, Can Someone helps me to find ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello @kartik, In SQL Server, use MERGE MERGE INTO YourTable ...READ MORE
Hello @kartik, Single quotes are escaped by doubling ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.