Hi,
I have a table with the column named as order contains value as 10
I need a select query to select this order value to be increment by 1 as 11 and also to add string as 'orderlist'
like 11 - orderlist
Thanks
Hi,
I have a table with the column named as order contains value as 10
I need a select query to select this order value to be increment by 1 as 11 and also to add string as 'orderlist'
like 11 - orderlist
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Aravind GovindarajRank #430 · 5.8K reputationPosted Dec 5, 2022, 5:46 AM EST
In your query, you can do something like below
Declare @OrderValue = select Max(order) from tableName
select order from tableName => Which returns 10
Union
Select ISNULL(@OrderValue,0) + 1 AS order