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
sameer gadade
NA
61
55.3k
query help
Jul 11 2012 3:59 AM
hi friends i am new to sql i have a table with fields
Table=ATTENDANCE
Attenid
studentid teacherid repleceteacherid currentdat
classid
1
1
1
0 6/7/2012
1
2
2
0
2 7/7/2012
1
3
1
1
0 8/7/2012 1
now i want to calculate teacher attendance between 2 dates each teacher is assigned to one class when teacher takes his class then his teacherid is get inserted to teacherid col(with replacement=0)
and when other techer takes the class then his teacherid get inserted in replacementteacher col(with teacherid=0)
i want the output in the following form
totallectures presentlectures absentlectures
10 7 3
how to write query if possible send me the query
please help
[:(]
Reply
Answers (
9
)
How to change the instance name of SQL Server Express 2008 R2 edition.
Can we use finally in Sql server Exception Handling ?