Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more: , +
I got stuck at a place while making attendance application. VB.

GUYS CAN SUGGEST ME QUERY FOR FOLLOWING . NO STORE PROCEDURE PLEASE,

I have a table in my sql database.
2 columns , name and dates.

NAMES | DATES

abc 1-1-2014
abc 2-1-2014
cde 2-1-2014
cde 3-1-2014
efg 3-1-2014
hij 4-1-2014


i want a query so that i can show this information in GRID.

NAMES 1-1-2014 || 2-1-2014 || 3-1-2014 || 4-1-2014

abc yes yes no no
cde no yes yes no
efg no no yes yes
hij no no no yes



Can u guys show me the EXACT QUERY FOR THIS. I WILL DO THE YES/NO PART BY MYSELF through coding.
i am not much good at database. Thank u .
Posted
Comments
OriginalGriff 9-Mar-14 9:58am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Parth Dotnet1 9-Mar-14 10:04am    
oh, my bad. I am new to this.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900