query to make a list of products based on delivery history

T

tsison7

I have a table which lists all deliveries made of our product. From this
table, I'd like to make a list of all products. My problem is the products
will have many duplicates as they can be ordered multiple times and I just
want a list showing all the individual products that we offer.
 
D

Duane Hookom

Try something like:

SELECT DISTINCT [our product]
FROM [which list all deliveries made];

If you can't figure this out, come back with table and field names.
 
T

tsison7

Duane,

I tried that but that only generates a single column list showing the one
field. How can I add additional fields for each of the unique records....for
instance (product description, price)
--
TIA


Duane Hookom said:
Try something like:

SELECT DISTINCT [our product]
FROM [which list all deliveries made];

If you can't figure this out, come back with table and field names.

--
Duane Hookom
Microsoft Access MVP
If I have helped you, please help me by donating to UCP
http://www.access.hookom.net/UCP/Default.htm


tsison7 said:
I have a table which lists all deliveries made of our product. From this
table, I'd like to make a list of all products. My problem is the products
will have many duplicates as they can be ordered multiple times and I just
want a list showing all the individual products that we offer.
 
T

tsison7

Duane,

Nevermind, I used the following to solve my problem:

SELECT [our product], last(description), last(customer)
FROM [which list all deliveries made]
GROUP BY [our product]

--
TIA


tsison7 said:
Duane,

I tried that but that only generates a single column list showing the one
field. How can I add additional fields for each of the unique records....for
instance (product description, price)
--
TIA


Duane Hookom said:
Try something like:

SELECT DISTINCT [our product]
FROM [which list all deliveries made];

If you can't figure this out, come back with table and field names.

--
Duane Hookom
Microsoft Access MVP
If I have helped you, please help me by donating to UCP
http://www.access.hookom.net/UCP/Default.htm


tsison7 said:
I have a table which lists all deliveries made of our product. From this
table, I'd like to make a list of all products. My problem is the products
will have many duplicates as they can be ordered multiple times and I just
want a list showing all the individual products that we offer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top