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

Kiran MohantyRank #821 · 2.8K reputationPosted Oct 11, 2020, 9:15 PM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Oct 11, 2020, 8:10 PM EDT
As Ak74 reputationPosted Oct 11, 2020, 8:36 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 12, 2020, 5:43 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 12, 2020, 9:59 AM EDT