| attdate | present |
| 04-01-17 | x |
| 04-02-17 | / |
| 04-03-17 | L |
| 04-04-17 | AB |
i want to convert attdate as column and data is present
like this
here 1,2,3 as attdate ==>day
| 1 | 2 | 3 | 4 | 5 |
| x | / | L | AB |
how to write a query for this
| attdate | present |
| 04-01-17 | x |
| 04-02-17 | / |
| 04-03-17 | L |
| 04-04-17 | AB |
| 1 | 2 | 3 | 4 | 5 |
| x | / | L | AB |
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 attend4days leftRegister
Tapan PatelRank #614 · 3.9K reputationPosted Apr 10, 2017, 5:24 AM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 10, 2017, 7:40 AM EDT
employee present dates are stored in table1 absent dates are not stored in that table1 and also 04-02-17 and 04-09-17 dates are Sunday that dates are not inserted in table1 my expected result is
Tapan PatelRank #614 · 3.9K reputationPosted Apr 10, 2017, 7:44 AM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 10, 2017, 7:58 AM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 10, 2017, 6:05 PM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 10, 2017, 7:45 PM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 10, 2017, 8:08 PM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Apr 11, 2017, 5:07 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Apr 12, 2017, 5:41 AM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 13, 2017, 5:52 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Apr 13, 2017, 6:00 AM EDT
siva nathanRank #1,695 · 899 reputationPosted Apr 13, 2017, 6:27 AM EDT