| 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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tapan PatelPosted Apr 10, 2017, 9:24 AM
siva nathanPosted Apr 13, 2017, 10:27 AM
Tapan PatelPosted Apr 13, 2017, 10:00 AM
siva nathanPosted Apr 13, 2017, 9:52 AM
Tapan PatelPosted Apr 12, 2017, 9:41 AM
Tapan PatelPosted Apr 11, 2017, 9:07 AM
siva nathanPosted Apr 11, 2017, 12:08 AM
siva nathanPosted Apr 10, 2017, 11:45 PM
siva nathanPosted Apr 10, 2017, 10:05 PM
siva nathanPosted Apr 10, 2017, 11:58 AM
Tapan PatelPosted Apr 10, 2017, 11:44 AM
siva nathanPosted Apr 10, 2017, 11:40 AM
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