Hi,
I am using SQL 2005.
I have a requirement where I am getting the date column from source as a string (eg., 20140707065749, in yyyymmddhhmmss format).
For each hour, I will be having 4 tables of 15 minutes interval each such as source data, like tbl_201407070600, tbl_201407070615,tbl_ 20140707063 and tbl_201407070645.
For example, the data has come on 06:57 (hh:mm) as per the example string date from source above, should go into table 201407070645.
I have created a calculated column while selecting the data from source which will determine what record should go in which bucket like,
DateString CalculatedColumn
201407070645 2014-07-07 06:45:00.000
How can I insert this data in respective tables in a single shot?
'In Persuit of Happiness' and ..... learning SQL.