dear experts,
how to write a query? i want if login is empty then it should take next max logout in NextTime column for current record.
if login is not empty then it should take max login to NextTime column as i mentioned in below table
LOGINLOGOUTNextTime03-Jan-17 06:57:2203-Jan-17 07:10:2203-Jan-17 07:10:2203-Jan-17 07:11:5503-Jan-17 07:11:5503-Jan-17 07:38:0003-Jan-17 07:38:0003-Jan-17 07:55:4703-Jan-17 07:55:4703-Jan-17 07:57:0103-Jan-17 07:57:0103-Jan-17 08:18:4303-Jan-17 08:18:4303-Jan-17 08:59:3803-Jan-17 08:59:3803-Jan-17 09:19:5603-Jan-17 09:19:5603-Jan-17 09:27:4003-Jan-17 09:27:4003-Jan-17 09:35:1603-Jan-17 09:29:1603-Jan-17 09:36:0603-Jan-17 09:44:0903-Jan-17 09:59:1803-Jan-17 10:10:08
how to write a query? i want if login is empty then it should take next max logout in NextTime column for current record.
if login is not empty then it should take max login to NextTime column as i mentioned in below table
LOGINLOGOUTNextTime03-Jan-17 06:57:2203-Jan-17 07:10:2203-Jan-17 07:10:2203-Jan-17 07:11:5503-Jan-17 07:11:5503-Jan-17 07:38:0003-Jan-17 07:38:0003-Jan-17 07:55:4703-Jan-17 07:55:4703-Jan-17 07:57:0103-Jan-17 07:57:0103-Jan-17 08:18:4303-Jan-17 08:18:4303-Jan-17 08:59:3803-Jan-17 08:59:3803-Jan-17 09:19:5603-Jan-17 09:19:5603-Jan-17 09:27:4003-Jan-17 09:27:4003-Jan-17 09:35:1603-Jan-17 09:29:1603-Jan-17 09:36:0603-Jan-17 09:44:0903-Jan-17 09:59:1803-Jan-17 10:10:08
Last edited: