| | |
sql help
![]() |
•
•
Join Date: Sep 2008
Posts: 3
Reputation:
Solved Threads: 0
I'm writing a program determine employee's working hours in a day by entry and exit clock in classes. In sql, I have a table, there are 4 field like : classID, cardID, date and clock.
Teacher come to class and every teacher have an unique card. Card reader read this card and record in db. How can I find whether entry clock or exit clock in db. Because teacher forget the card read when the teacher exit in the class. First off all I guess I compare cardId secondly time and classId in a slope.
I use to sql server 2005. It is very urgently.
Sample data is:
CardID ClassID Date Clock
A 1 15.12.2008 08.30 AM
A 1 15.12.2008 10.30 AM
A 1 15.12.2008 11.30 AM
A 2 15.12.2008 13.30 AM
A 2 15.12.2008 15.30 AM
Teacher come to class and every teacher have an unique card. Card reader read this card and record in db. How can I find whether entry clock or exit clock in db. Because teacher forget the card read when the teacher exit in the class. First off all I guess I compare cardId secondly time and classId in a slope.
I use to sql server 2005. It is very urgently.
Sample data is:
CardID ClassID Date Clock
A 1 15.12.2008 08.30 AM
A 1 15.12.2008 10.30 AM
A 1 15.12.2008 11.30 AM
A 2 15.12.2008 13.30 AM
A 2 15.12.2008 15.30 AM
![]() |
Similar Threads
- PHP / My SQL Web developer (Web Development Job Offers)
- Freelance .NET / MS SQL developer (Web Development Job Offers)
- Software Engineer (.NET , SQL) (Software Development Job Offers)
- UPS is Hiring!! PL/SQL & UNIX Technical Specialist (Software Development Job Offers)
- SQL Server DBA - " Hot " (Software Development Job Offers)
- Sql Dba (Software Development Job Offers)
- SQL Server DBA (Software Development Job Offers)
- SQL Server vs MYSQL vs MSQL (i'm stopping now) (MS SQL)
Other Threads in the MS SQL Forum
- Previous Thread: There is no menu choice to create a new database diagram
- Next Thread: Help with constructing query....
Views: 530 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last 2005 access age auto autogrowth business comparing comparison. count csharp cursor data database dataset dateadd datediff datepart dates day" dbsize deadlock difference exploit fill function getdate hack helpwithhomework install joins limit live maximum money ms mssql mssql2005 multiple multithreading news null number partitioning password position query reporting result rules security select server services sets single source sql sql-injection sqlserver subtype sum supertype tables tsql unicode-sql update view weekday





