Let’s say.. I have two statements
select min(Log_In_Time) from tbl where (event_ID=4)
select max(Log_Off_Time) from tbl where (event_ID=5)
How can I combine that 2 statement into one select statement which is resulted in 2 column like..
select min(Log_In_Time), max(Log_Off_Time) from tbl where ???????????????????
You can do this with a CASE statement: