searching in database
i have a table named fname (say). this table has two fields named date and student roll. i need to search all the roll numbers corresponding to a date. suppose i have five roll number entry corresponding to date 10/24/2010. i need to accumulate all the roll numbers in a gridview at once. how can i do it? please give me some suggestions. thanks in advance
Sam HobbsPosted Oct 24, 2010, 4:05 PM
There are many tools you can use to help you create the SQL. You can alos find very many articles and books about SQL and most of what you learn about SQL can be used many times in the future and in many systems and languages and many ways. People are reluctant helping with things like SQL since there are so many resources available that can help much better than the help that can be provided here.
Another part is how to execute the SQL, and there are many ways to do that. There are also many resources availalbe to learn from. If you spend some time leaning and then have more specific questions, then you are more likely to get more specific answers.
Suthish NairPosted Oct 24, 2010, 2:26 PM
http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/1605/
select statement: SELECT * FROM [myTb] WHERE [yourdate] between @date1 and @date2
If you need a ready made answer :-), wait for more replys..
Also refer article link
sumit banshalPosted Oct 24, 2010, 1:33 PM
Suthish NairPosted Oct 24, 2010, 12:38 PM