Microsoft
Software
Hardware
Network
Question : Repeating SQL
Hi I need so SQL that does the following.
Table A has 2 columns ID, RunDate,
Table B has 3 columns ID, FromDate, ToDate
I need SQL that takes each TableA.RunDate and selects all records from TableB where the TableA.RunDate BETWEEN TableB.FromDate AND TableB.ToDate.
The SQL will then go to the second record in TableA take the RunDate and repeat above.... then the third record TableA.Rundate and select....you get the idea!
The results will be kinda cumalative. If the first pass selects 5 records and the 2nd pass select 7 records then the results will be (after the 2nd pass) 12 rows of data.
I have been playing with CTE's but no joy yet??
Thanks
nutnut
Answer : Repeating SQL
you have to make changes to your server's registry,
http://technet.microsoft.c
om/en-us/l
ibrary/cc9
62064.aspx
Random Solutions
How do I access a combo box in a WPF datagridtemplatecolumn using codebehind c#
Inserting data into a varbinary(max) field
Word 2003 - working with tables, rows, and cells
Using VLookup for Data Validation
Do WPF and MVP go together?
Droid Incredible Exchange Synchronization
How deploy a website shortcut to 200 users desktop
ASP.Net Drop Shadow Effect
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
What am i doin wrong