Given tblA
id | xxx | key
1 | 111 | 747
2 | 222 | 747
tblB
id | xxx | foobar
400 | 111 | a
401 | 111 | b
402 | 111 | c
How do I say for all records in tblA that share the same key please JOIN on tblB and if you find a match duplicate the results out.
So we'd get a resultset
tblA.xxx | id | xxx | foobar
111 400 | 111 | a
111 401 | 111 | b
111 402 | 111 | c
222 400 | 111 | a
222 401 | 111 | b
222 402 | 111 | c
Thanks for replies
id | xxx | key
1 | 111 | 747
2 | 222 | 747
tblB
id | xxx | foobar
400 | 111 | a
401 | 111 | b
402 | 111 | c
How do I say for all records in tblA that share the same key please JOIN on tblB and if you find a match duplicate the results out.
So we'd get a resultset
tblA.xxx | id | xxx | foobar
111 400 | 111 | a
111 401 | 111 | b
111 402 | 111 | c
222 400 | 111 | a
222 401 | 111 | b
222 402 | 111 | c
Thanks for replies