M
Marios
I have two tables, TableA and tables, which have a 1-to-many relationship on
TableA.ID and TableB.TableA_ID. What I want is to get a query which has all
the values from TableB into a cloumn in a query.
SQL Statement:
SELECT TableA.ID, TableA.Field, (SELECT TableB.TableA_ID FROM TableB WHERE
TableA.ID = TableB.TableA_ID)
FROM TableA;
gives errors because subquery cannot return more than one row. Is there a
way to do it with an SQL query?
TableA.ID and TableB.TableA_ID. What I want is to get a query which has all
the values from TableB into a cloumn in a query.
SQL Statement:
SELECT TableA.ID, TableA.Field, (SELECT TableB.TableA_ID FROM TableB WHERE
TableA.ID = TableB.TableA_ID)
FROM TableA;
gives errors because subquery cannot return more than one row. Is there a
way to do it with an SQL query?