Hi
I have 3 tables Books,Student,Issue Table. Issue table has BookId,StudeutId, Books Issued
I want data to appear like below
Child1 Child2 Child3 Child4
Book1 2 4
Book2 1 5
Thanks
Hi
I have 3 tables Books,Student,Issue Table. Issue table has BookId,StudeutId, Books Issued
I want data to appear like below
Child1 Child2 Child3 Child4
Book1 2 4
Book2 1 5
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
PhamNgoc Khiem39 reputationPosted Jul 12, 2022, 4:12 AM EDT
You can see this link to how to using pivot
https://docs.microsoft.com/en-us/sql/t-sql/queries/from-using-pivot-and-unpivot?view=sql-server-ver16