on 05-10-2009 12:39 AM
Hi,
I have 3 tables:
Sales with fields {Sales_Key,Date_Key,ValidData_Key, TotalSales}
Date with fields {Date_Key, CalendarDate}
ValidData with fields {ValidData_Key,ValidEffDate, ValidEndDate}
I'm trying to create the following join in Designer between the three tables without creating a loop.
SELECT * FROM
Sales S,
Date D,
ValidData V
WHERE
S.Date_Key = D.Date_Key and
S.ValidData_Key = V.ValidData_Key and
D.CalendarDate between V.ValidEffDate and V.ValidEndDate
Essentially, I want to be able to use fields from table(s) other than the two tables involve in the join within the join condition. How can this be achieve?
Thanks,
Jimmy
Hi,
have you considered using a derived table for this?
Regards,
Stratos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.