The document contains 8 SQL queries:
1) Selects job names, product names from related tables where product weight is in top 2.
2) Selects row numbers and supplier names from supplier table limited to first 10 rows ordered by name.
3) Counts number of products per job and finds jobs with over 5 products.
4) Finds jobs where supplier city doesn't match job city.
5) Finds jobs where city starts with '_o'.
6) Compares average and maximum quantities for products and jobs.
7) Finds jobs not associated with suppliers in London supplying red products.
8) Finds suppliers with no products through job-product-supplier relationship table.
The document contains 8 SQL queries:
1) Selects job names, product names from related tables where product weight is in top 2.
2) Selects row numbers and supplier names from supplier table limited to first 10 rows ordered by name.
3) Counts number of products per job and finds jobs with over 5 products.
4) Finds jobs where supplier city doesn't match job city.
5) Finds jobs where city starts with '_o'.
6) Compares average and maximum quantities for products and jobs.
7) Finds jobs not associated with suppliers in London supplying red products.
8) Finds suppliers with no products through job-product-supplier relationship table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
The document contains 8 SQL queries:
1) Selects job names, product names from related tables where product weight is in top 2.
2) Selects row numbers and supplier names from supplier table limited to first 10 rows ordered by name.
3) Counts number of products per job and finds jobs with over 5 products.
4) Finds jobs where supplier city doesn't match job city.
5) Finds jobs where city starts with '_o'.
6) Compares average and maximum quantities for products and jobs.
7) Finds jobs not associated with suppliers in London supplying red products.
8) Finds suppliers with no products through job-product-supplier relationship table.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd