Pipe2Path
Programmer
- Aug 28, 2001
- 60
Here's my situation:
TableA --> TableB - 1-Many relationship
for the following query:
select * from tableA inner join TableB
on tableA.ID = TableB.ID
and my result brings back 2 records in TableB that match 1
record in TableA, how do I limit the query to output only 1 record from TableB?
e.g. ID nAME
1 John Smith
1 John Adams
So, I only want the first record from TableB to show up.
Thanks.
TableA --> TableB - 1-Many relationship
for the following query:
select * from tableA inner join TableB
on tableA.ID = TableB.ID
and my result brings back 2 records in TableB that match 1
record in TableA, how do I limit the query to output only 1 record from TableB?
e.g. ID nAME
1 John Smith
1 John Adams
So, I only want the first record from TableB to show up.
Thanks.