I have a table with product, date, amount
I need the output as follows.
Product,date1,date2,date3,date4
1,1000,2000,3999,3333
Please help me solve it in mysql without case statement
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 GuptaRank #190 · 12.8K reputationPosted Sep 12, 2019, 3:07 AM EDT