Question: How to query this in SQL? Use a subquery in the FROM clause to only retrieve invoices from chamber 'H' and the invoice amount of
How to query this in SQL?
Use a subquery in the FROM clause to only retrieve invoices from chamber 'H' and the invoice amount of larger than 10000 and join the result with the voyages table using the number column. Project to only retrieve the boatname and the invoice amount of the join result. Order by invoice amount.
This is the chambers table:
| # | chamber | name |
|---|---|---|
| 1 | A | Amsterdam |
This is the invoices table:
| # | number | invoice | chamber |
|---|---|---|---|
| 1 | 8300 | 9189 | A |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
