October 16, 2014 at 2:56 am
hi all,
im pretty new to sql server how do i achieve the below result for given data.
enrollno date mode time
144 20-oct-14 0 10:00
144 20-oct-14 1 20:00
144 20-oct-14 0 09:50
output
enroll no date time in time out
144 20-oct-14 10:00 20:00
144 20-oct-14 09:50
any help is highly appreciated
October 16, 2014 at 3:34 am
Tell us something more. What's the logic behind?
If it relies on the order of the rows in the table, there has to be a way to explicitly extract it from one or more columns, because there is no implicit order in a table.
-- Gianluca Sartori
October 16, 2014 at 3:58 am
Look at PIVOT operator http://technet.microsoft.com/en-us/library/ms177410(v=SQL.105).aspx
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply