Hello,
Please have a look at the below image before reading my question.
If you are not able to view the above picture, please click this link to view the image of the database design and the table data.
I want to update the columns like "Parking,AC,TV,locallcalls" in the table "Hotels" with the values from the column "Status" in the table "amenity" by matching the column names(Hotel) with AmenityDesc(in amenity). Hid is the key constraint to relate the tables. Its like a Transpose. Row values in the one table should update the coulmns in other table beased on some condition.
Please help.
My table is having around 10,000 records. if i am using the dynamic query,cursor or loop. the execution is very slow and performance is very bad.
Pls help.
Thanks
I have used subqueries/dynamic queries.Since the number of records are 10000 its very slow.
Is there any other way of handling multiple update queries faster? i am using sqlserver 2000. Pls help