L
Lloyd Dupont
I have some simple data like that
Product
--------
PR_Id (PK), Name
--------
1 Wall Clock
2 Nails
Invoice
-------
IN_id (PK)
-------
1
2
InvoiceLine
------------
LI_Id (PK), IN_id (FK in Invoice), PR_id (FK in Product)
------------
1 1 1
2 2 1
3 2 1
Now I'm trying to write some SQL that will get the Invoice with WallClock
and no Nails.
Any tips?
I'm stuck....
Product
--------
PR_Id (PK), Name
--------
1 Wall Clock
2 Nails
Invoice
-------
IN_id (PK)
-------
1
2
InvoiceLine
------------
LI_Id (PK), IN_id (FK in Invoice), PR_id (FK in Product)
------------
1 1 1
2 2 1
3 2 1
Now I'm trying to write some SQL that will get the Invoice with WallClock
and no Nails.
Any tips?
I'm stuck....