J
jb62307
I have the following 3 tables
Parts1-------*PartStyle*----------1 Style
PartNo PartNo StyleNo
Price StyleNo Description
I am trying to write a SQL statement that would return a record with the
columns below:
PartNo Price Description.
For every record in the Style table there would be a coulm in the result
set. Also in the description column I would like to put a Y, if there is a
partstyle record for it.
Parts PartStyle Style
1 1.00 1 1 1 Style1
2 2.00 1 3 2 Style2
2 2 3 Style3
If I run a query to select all Parts, from the above data, the output should
be:
Part No Price Desc1 Decs2 Desc3
1 1.00 Y Y
2 2.00 Y
I know how to do this in code, but would like to do as much as possible with
SQL. I am using Access 2007.
Thanks
Parts1-------*PartStyle*----------1 Style
PartNo PartNo StyleNo
Price StyleNo Description
I am trying to write a SQL statement that would return a record with the
columns below:
PartNo Price Description.
For every record in the Style table there would be a coulm in the result
set. Also in the description column I would like to put a Y, if there is a
partstyle record for it.
Parts PartStyle Style
1 1.00 1 1 1 Style1
2 2.00 1 3 2 Style2
2 2 3 Style3
If I run a query to select all Parts, from the above data, the output should
be:
Part No Price Desc1 Decs2 Desc3
1 1.00 Y Y
2 2.00 Y
I know how to do this in code, but would like to do as much as possible with
SQL. I am using Access 2007.
Thanks