I have a table Events
Events containing
cardno,time,id,name--each id has a cardno
my requirement is every day each employee swipe the card
several times
i want to calculate first and last time of each card
the output should be
name 1 2
6 7
in out in out
holiday holiday
xxx 09:30 06:30 09:40 06:45
where 1,2...... are dates for example january 1,2, etc. 6
and 7 are saturday and sunday
how it is posssible
No Answer is Posted For this Question
Be the First to Post Answer
Explain magic tables in sql server?
How to Run a Query on a Remote SQL Server?
What is nolock hint in sql server 2008
What do you mean by a Composite primary key?
What is 2nf example?
What is the diff between Dynamic queries and static queries
1 Answers CGG, ICS Integrated Computer Solutions,
What is 3nf normalization?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
What are scalar functions in sql?
What is the difference between a local and a global variable?
What is the impact on other user sessions when creating indexes?
After the SQL installation what are the jobs will you configure?
1 Answers G7 CR Technologies, IBM, Satyam,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)