cornercuttin
Programmer
i am relatively new to sql server, and even more new to stored procedures (I have done quite a bit of SQL, but it has all been "1 liner" kind of things).
basically, i have a table that is getting quite a bit of updates every day, and each update gives me a timestamp of when the insert was done.
i need to be able to say, in layman's terms, "FOR every day BETWEEN today AND X (where X is a timestamp of a previous day) DO ....insert another SQL statement here...."
does anyone have any ideas off the top of their head? i don't know much about the sql language as far as if statements and for statements and whatnot. any clue what i could do?
thanks
basically, i have a table that is getting quite a bit of updates every day, and each update gives me a timestamp of when the insert was done.
i need to be able to say, in layman's terms, "FOR every day BETWEEN today AND X (where X is a timestamp of a previous day) DO ....insert another SQL statement here...."
does anyone have any ideas off the top of their head? i don't know much about the sql language as far as if statements and for statements and whatnot. any clue what i could do?
thanks