I've got an assignment to run some SQL queries on a table looking like this:
T1
C1| C2 | C3
x1| y1 | z1
x2| y2 | z2
But I'm not sure how to create the table in SQL.
I've got an assignment to run some SQL queries on a table looking like this:
T1
C1| C2 | C3
x1| y1 | z1
x2| y2 | z2
But I'm not sure how to create the table in SQL.
Are you sure is the right way to design the tables?
It look like a simple Master/Detail model
Probably your T1 table is the master
On the second table (C) put a column with reference ID to the main table
The do the query with a simple Join or Left Join