pavelushakov
09-13-2005, 12:22 AM
Example Table1 Results
URLID URL
--- -------------
27 www.site1.com
28 www.site2.com
29 www.site3.com
Example Table2 Results
ID URLIDD AID
--- -------- ---
55 28 1
56 28 3
57 28 2
Example Table3 Results
UID Username
--- --------
11 boss1
12 boss2
20 boss3
Example Table4 Results
ID2 AIDD UIDD
--- ------ ---
24 3 20
25 1 20
26 1 20
Table1 and Table2 share value "28" in common.
Table3 and Table4 share value "20" in common.
Table2 and Table4 share value "3" in common.
My question:
How can I write a query that will loop through the Table results until it finds a matching record set between Table2 and Table3 to Table4?
Hope this helps with my question:
If UID = UIDD And AID = AIDD Then
Do Nothing
Else
Response.Redirect "gosomewhere.asp"
End If
URLID URL
--- -------------
27 www.site1.com
28 www.site2.com
29 www.site3.com
Example Table2 Results
ID URLIDD AID
--- -------- ---
55 28 1
56 28 3
57 28 2
Example Table3 Results
UID Username
--- --------
11 boss1
12 boss2
20 boss3
Example Table4 Results
ID2 AIDD UIDD
--- ------ ---
24 3 20
25 1 20
26 1 20
Table1 and Table2 share value "28" in common.
Table3 and Table4 share value "20" in common.
Table2 and Table4 share value "3" in common.
My question:
How can I write a query that will loop through the Table results until it finds a matching record set between Table2 and Table3 to Table4?
Hope this helps with my question:
If UID = UIDD And AID = AIDD Then
Do Nothing
Else
Response.Redirect "gosomewhere.asp"
End If