Set default value in column IF condition is met in SQL 2008
First of all, I'm very new with SQL query, so I apologize if I sound ignorant... I have a database that has a stored job to drop and create a table every hour. The table looks like this, except there is data for every hour in between 1 and 24 Name Hour1 Hour24 Point 1 OUT 4 5 Point 1 IN 26 22 Point 2 OUT 46 44 Point 2 IN 0 0 Point 3 OUT 18 19 Point 3 IN 56 51 Point 4 OUT 111 100 Point 4 IN 0 0 Point 5 OUT 0 0 Point 5 IN 42 46 Point 6 IN 210 211 After the drop and create, the database adds a column at the end called date and sets todays date as the default. My problem is when importing the data