I have to display the data that currently being update. The problem is, I'm using the CONVERT function for the columns that i need to display.
This is my code for fetch the data with status 'New'. This code is before updating the status.
- SELECT CONVERT(varchar(10), Start_RG, 2) AS Start_RG, CONVERT(varchar(10), End_RG, 2) AS End_RG FROM RG WHERE Status = 'New'
This is the code for updating the status to 'In Use'
- UPDATE TOP (1) RG SET Status = 'In Use' OUTPUT deleted.Start_RG, deleted.End_RG, deleted.Status WHERE Status = 'New'
How can i fetch the Start_RG and End_RG that currently updated the status to In Use