TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shosho shosho
NA
56
18.9k
SQL Select Statement
May 11 2015 10:22 AM
how to read the records from database that have today's date using select statement.
I have tried doing this:
DateTime todaysDate = DateTime.Now;
string qr = String.Format(" SELECT tbl_Student.StudentName AS Name
FROM tbl_StudentTrack
LEFT JOIN tbl_Student ON tbl_Student .Id=tbl_StudentTrack .StudentId
WHERE UserId = {0} ", userID, todaysDate);
But this doesnt seem to work, it just displays all the records.
Reply
Answers (
2
)
Function Key Press(F1,F2 ....F2) OPen Window Form
populating other columns of gridview based on first column