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
eswar rao
1.6k
98
19.1k
How to get records from two tables using ASP.NET
Mar 20 2016 9:59 AM
hi friends ,
i have a one problem..that is i have two tables .
1.student 2 .attendance
i want results from two tables ..i mean who's absent on particular date and group and batch..
student tables is haveing (id,group,batch)
attendance table having (id,date)
i want absentees data with sorting by group and batch and date..please tell me how to write a query for that..
What I have tried:
SELECT id,gender,vid,fname,mobino,fathername,date,batch,group,FROM tbl_studentenroll ee WHERE not exists (SELECT vid,date FROM tbl_attendance aa where aa.vid=ee.vid and aa.date='" + ddl_date.SelectedItem.Text + "' and ee.group='" + ddl_group.SelectedItem.Text + "' and ee.batch='" + ddl_batch.SelectedItem.Text + "' );
but it is not sorting results it is shows all groups and batchs absents
Reply
Answers (
3
)
How to bind image with radiobutton?
Dataset is not filling when i am uploading on windows8 IIS.