zackgruba142
Grasshopper
Points: 13
More actions
August 21, 2014 at 11:22 am
#397237
I have two tables, customers and appointments.
I want to bulk insert records for a date range and a day of the week. For example, John Smith has an appointment on every monday for the next three months. How do I accomplish this?
pietlinden
SSC Guru
Points: 63625
August 21, 2014 at 12:04 pm
#1739999
I would do it with a Calendar table. Then you can query for Mondays within your date range and then do the insert.
Here's a link:
http://www.sqlservercentral.com/articles/T-SQL/70482/
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply