transform - SQL SSIS pick and chose data to make a table row -


I have a table that is recording visitor's searches.

  Season ID selected from the date of the field 12345 2014 -10-12 Faucet 2014-10-01 13:00 12345 Newell Devon 2014-10-01 13:26 12345 Null Cornwall 2014-10- 01 13:28  

I have been

So, using the table above, I have to do something that looks like this:

 < Code> Season ID selected from date field 12345 2014-10-12 Cornwall 2014-10-01 13:28  

So I'm choosing the column from one date to a special session ID And after that area Cornwall, because its zero I have selected the most recent date.

Now, I'm not sure that this can be done using SSIS, but if you have any ideas then I am truly grateful.

Cheers,

Andrew

  select the top 1 t1. Session id, t2 [From], T1 Region, T. Datus table 1 has been selected from T1 (Select the severity, maximum ([from]) [Group by Session 1 to Session] t2.sessionid = t1.sessionid where T1 Field T1 is not an empty order. Date selected  

Result:

  | from session | region | dirzacked | | | | ------- ---- | ------------ | ---------- | ------------- -------- | - |----- | | 12345 | 2014-10-12 | Cornwall | October 01, 2014: 13: 28: 00 + 0000 |  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -