T
tsluu
tblItem
Item Code | Desc |
tblTran
Tran_ID | Date | Item Code | Qty |
I need a query to show the following:
tblItem.Item Code | tblTran.Date | tblTran.Qty
1. All rows in tblItem whether there are corresponding foreign keys in
tblTran or not
2. Filter by required Date
3. Sum on tblTran.Qty
so as an example
tblItem
1 | One
2 | Two
3 | Three
tblTran
1 | 1/01/2010 | 1 | 2
2 | 2/01/2010 | 2 | 2
3 | 3/01/2010 | 3 | 2
4 | 3/01/2010 | 3 | 2
5 | 4/01/2010 | 1 | 2
results: filter on date (3/01/2010)
tblItem.Item Code | tblTran.Date | tblTran.Qty
1 | Null | Null
2 | Null | Null
3 | 3/01/2010 | 4
Item Code | Desc |
tblTran
Tran_ID | Date | Item Code | Qty |
I need a query to show the following:
tblItem.Item Code | tblTran.Date | tblTran.Qty
1. All rows in tblItem whether there are corresponding foreign keys in
tblTran or not
2. Filter by required Date
3. Sum on tblTran.Qty
so as an example
tblItem
1 | One
2 | Two
3 | Three
tblTran
1 | 1/01/2010 | 1 | 2
2 | 2/01/2010 | 2 | 2
3 | 3/01/2010 | 3 | 2
4 | 3/01/2010 | 3 | 2
5 | 4/01/2010 | 1 | 2
results: filter on date (3/01/2010)
tblItem.Item Code | tblTran.Date | tblTran.Qty
1 | Null | Null
2 | Null | Null
3 | 3/01/2010 | 4