sorry i am a sql noob.
I have 2 tables:
Customer:
customerid - int, pri-key,auto
fname - varchar
sname -varchar
housenum - varchar
streetname -varchar
items
itemid - int,pri-key,auto
type - varchar
collectiondate - date
releasedate - date
customerid - int
I need a sql query which will get me all items for a given customer including some customer details, specifically: fname + sname + type + collectiondate + releasedate + housenum + streetname.
for example, if joe bloggs has 5 items then 5 rows will be returned and the columns will be as described above
thanks in advance.
Update #1