I am using a MSSql 2000 stored procedure. I have the following queries which the stored procedure is performing at runtime. Is there a way to combine the below queries into a single query instead of 4 individual queries ?
SET @requested_date = (SELECT requested_date FROM mwo.dbo.mwo where work_order_number = @won)
SET @description = (SELECT [description] FROM mwo.dbo.mwo where work_order_number = @won)
SET @priority = (SELECT priority FROM mwo.dbo.mwo where work_order_number = @won)
SET @attachment_1 = (SELECT attachment_1 FROM mwo.dbo.mwo where work_order_number = @won)
Thanks, This is new to me and I am learning as I go...
SET @requested_date = (SELECT requested_date FROM mwo.dbo.mwo where work_order_number = @won)
SET @description = (SELECT [description] FROM mwo.dbo.mwo where work_order_number = @won)
SET @priority = (SELECT priority FROM mwo.dbo.mwo where work_order_number = @won)
SET @attachment_1 = (SELECT attachment_1 FROM mwo.dbo.mwo where work_order_number = @won)
Thanks, This is new to me and I am learning as I go...