Hi
I have below View but it is not displaying Level data in 1 row. Image attached

Hi
I have below View but it is not displaying Level data in 1 row. Image attached

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
Amit MohantyRank #112 · 20K reputationPosted Nov 13, 2022, 11:56 PM EST
Can uoy please explain your issue more properly?
Ramco RamcoRank #462 · 5.4K reputationPosted Nov 14, 2022, 12:04 AM EST
Hi Amit
Below is the query . I want to display data in 1 row .In below code there are 12 levels , i want data in 1 rows.
I am following this link - https://www.datameer.com/blog/sql_how-to-use-pivot-to-convert-rows-to-columns-in-sql-server-db/
Hi Amit
If i comment below lines then it is working fine , but i want to add these columns also.
--,L.[LogDetail] [Status]
--,L.[RequestDate] [Entry Date]
--,L.[ApprovalDate] [Completion Date]
--,DATEDIFF(d,L.[RequestDate],L.[ApprovalDate]) as [Total Days]
Thanks