I have the following tables:
Unit
Unit ID
Unit code
Unit description
System
System ID
System code
System description
Business ID ~ Joined to Business table
Cover ID ~ Joined to Cover table
Business
Business ID
Business code
Business description
Unit ID ~ Joined to Unit table
Logo ID ~ Joined to Logo table
On a web page I want to group all the System code(s) in the System table by the Unit code in the Unit table.
Please can some help me code the SQL statement to do this? Is it possible to do this via two tables?
Thanks.
Unit
Unit ID
Unit code
Unit description
System
System ID
System code
System description
Business ID ~ Joined to Business table
Cover ID ~ Joined to Cover table
Business
Business ID
Business code
Business description
Unit ID ~ Joined to Unit table
Logo ID ~ Joined to Logo table
On a web page I want to group all the System code(s) in the System table by the Unit code in the Unit table.
Please can some help me code the SQL statement to do this? Is it possible to do this via two tables?
Thanks.