Hello
I don't know what is so wrong with me that I can't understand how to do a recursive query. It's just something that I cannot get my head around. Here's what I'm hoping to do and maybe someone can help?
I have 2 tables.
CLAIMS (has 2 columns: Date and RepID)
ORDERS (has 3 columns: Date, RepID, and OrderNum)
I want to see all OrderNum(s) for each Date and RepID where a claim was made.
Example: RepID 123A had a Claim charge to them on 5/10/11
I need to see all OrderNum(s) worked by 123A on 5/10/11
(of course, I need to repeat this for 10,000 unique Claims based on Date and RepID)
A million thanks in advance for help teaching me!
I don't know what is so wrong with me that I can't understand how to do a recursive query. It's just something that I cannot get my head around. Here's what I'm hoping to do and maybe someone can help?
I have 2 tables.
CLAIMS (has 2 columns: Date and RepID)
ORDERS (has 3 columns: Date, RepID, and OrderNum)
I want to see all OrderNum(s) for each Date and RepID where a claim was made.
Example: RepID 123A had a Claim charge to them on 5/10/11
I need to see all OrderNum(s) worked by 123A on 5/10/11
(of course, I need to repeat this for 10,000 unique Claims based on Date and RepID)
A million thanks in advance for help teaching me!