losdamianos
New member
- Local time
- Today, 10:44
- Joined
- Sep 10, 2010
- Messages
- 3
Hi all!
Im trying to run a query which will find some DISTINCT (unique fields) and I want to add other fields to them as well
when I run
SELECT DISTINCT Find_Items.Sku
FROM Find_Items;
It work well but I want to add some other fields to the query such as
SKU Location and quantity,
so when I run
SELECT DISTINCT Find_Items.Sku, Find_Items.Location_id
FROM Find_Items;
DISTINCT expression doesnt work and I get duplicates in return
Basically what I want from this query is to match all SKU from ORDER table with SKU from Location Table BUT it should be one SKU each and now I get many duplicates. Ive tried to run a query to match all SKU from ORDER table with the locations and then run another query with DISTINCT formula to reduce all duplications but I dont know how to add other fields such as Location to this query
Stock Control Database attached
any help will be appriciated
Im trying to run a query which will find some DISTINCT (unique fields) and I want to add other fields to them as well
when I run
SELECT DISTINCT Find_Items.Sku
FROM Find_Items;
It work well but I want to add some other fields to the query such as
SKU Location and quantity,
so when I run
SELECT DISTINCT Find_Items.Sku, Find_Items.Location_id
FROM Find_Items;
DISTINCT expression doesnt work and I get duplicates in return
Basically what I want from this query is to match all SKU from ORDER table with SKU from Location Table BUT it should be one SKU each and now I get many duplicates. Ive tried to run a query to match all SKU from ORDER table with the locations and then run another query with DISTINCT formula to reduce all duplications but I dont know how to add other fields such as Location to this query
Stock Control Database attached
any help will be appriciated

Attachments
Last edited: