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

Post New Answer

More SQL Server Interview Questions

Write the Syntax for Cursors.

2 Answers   CarrizalSoft Technologies, HP,


What is indexing explain it with an example?

0 Answers  


What is the query optimization statistics?

1 Answers  


What is model database? : SQL Server Architecture

0 Answers  


What is the default server name for sql server?

0 Answers  






What is sql sandbox in sql server?

0 Answers  


I have cleared sbi clerk examination. I am Bachelor in computer application (BCA) graduate. so which type of question related bca in sbi clerk interviews. pls answers me at sejalvaghela@yahoo.co.in.. and also tell me which type of question asked in sbi clerk interview.

1 Answers  


What are the different types of join?

0 Answers  


I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?

3 Answers  


What is difference between view and materialized view?

0 Answers  


What is the difference between Stored Procedure , Function and Package, 1. how many blocks in Package and what are they.

5 Answers   IBM,


What is meant by Active-Passive and Active-Active clustering setup?

0 Answers  


Categories