Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
vipinjha123
Starting Member
45 Posts |
Posted - 2012-05-22 : 06:08:53
|
Dear All,how will you find a maximum and minimu date from same column of same dayssuppose table login(empid,logintime)here logintime column contains both login and lgouttimehow will you get both in seperate columnlikeempid logintime logouttimeA1025 2012-05-21 10:01:32 2012-05-21 19:01:32 Regards,Vipin jha |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2012-05-22 : 06:27:38
|
yes. How would you separate it ? How do you which which is login and which is logout ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
vipinjha123
Starting Member
45 Posts |
Posted - 2012-05-22 : 06:50:06
|
MINIMUM DATETIME FOR THAT PARTICULAR DAY IS LOGIN AND MAXIMUM DATETIME FOR THE SAME DAY IS LOGOUTTIME |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|