SashaBuilder3
Programmer
Hi everybody!
I have a table with dates and what I need is to generate a query extracting the date column and creating an additional character column Time_Of_Day ('BN'/'AN'). So if the original table looks like this:
Date_Time Some_value
10/03/2001 08:45 1
10/16/2001 11:10 3
10/26/2001 07:15 5
10/26/2001 18:10 1
11/04/2001 23:55 3
11/10/2001 14:00 4
I need a query to generate something like this:
Date_Time Time_Of_Day Some_value
10/03/2001 18:45 AN 1
10/16/2001 11:10 BN 3
10/26/2001 07:15 BN 5
10/26/2001 18:10 AN 1
11/04/2001 03:55 BN 3
11/10/2001 14:00 AN 4
Can anyone help me write such a query?
Thanks!!!!!
Alexandre
I have a table with dates and what I need is to generate a query extracting the date column and creating an additional character column Time_Of_Day ('BN'/'AN'). So if the original table looks like this:
Date_Time Some_value
10/03/2001 08:45 1
10/16/2001 11:10 3
10/26/2001 07:15 5
10/26/2001 18:10 1
11/04/2001 23:55 3
11/10/2001 14:00 4
I need a query to generate something like this:
Date_Time Time_Of_Day Some_value
10/03/2001 18:45 AN 1
10/16/2001 11:10 BN 3
10/26/2001 07:15 BN 5
10/26/2001 18:10 AN 1
11/04/2001 03:55 BN 3
11/10/2001 14:00 AN 4
Can anyone help me write such a query?
Thanks!!!!!
Alexandre