mdwilliam
07-16-2003, 04:07 PM
I've just taken over the duties of reporting on a rather sloppy inventory system with missing chunks of data here and there. This missing data has brought a loop hole to my queries.....
I have two tables:
Workstat Table
WS_NUM
NAME
TYPE
Items Table
WS_NUM
ASSET
PUR_PRICE
WARRANTY
KIND
The two tables are inner joined @ WS_NUM and I need to query 'WS_NUM', 'NAME', 'TYPE', 'ASSET', 'PUR_PRICE', 'WARRANTY', & 'KIND' It is a one to many relationship with Workstat being 1 and Items being many. I need to see all of this data only for Items of 'Kind' = Computer. Here's where the problem occurs: some entries in 'Workstat' do not have corresponding entries in Items of 'Kind' = Computer, so how do I only display the 'WS_NUM' and 'NAME' for these special cases as opposed to what my query does now - not display any entry that does not have an associated Item of 'KIND' = computer. Any help would be extremely helpful. Thanks
I have two tables:
Workstat Table
WS_NUM
NAME
TYPE
Items Table
WS_NUM
ASSET
PUR_PRICE
WARRANTY
KIND
The two tables are inner joined @ WS_NUM and I need to query 'WS_NUM', 'NAME', 'TYPE', 'ASSET', 'PUR_PRICE', 'WARRANTY', & 'KIND' It is a one to many relationship with Workstat being 1 and Items being many. I need to see all of this data only for Items of 'Kind' = Computer. Here's where the problem occurs: some entries in 'Workstat' do not have corresponding entries in Items of 'Kind' = Computer, so how do I only display the 'WS_NUM' and 'NAME' for these special cases as opposed to what my query does now - not display any entry that does not have an associated Item of 'KIND' = computer. Any help would be extremely helpful. Thanks