I have some data in a table in an MDB and I am building a query in MS Access. Seems simple but so am I :)
I have a structure that is essentially always like this for all my records (A-F in this simplified sample):
SPU1 SPU2
A 1 NULL
B 1 NULL
C 1 2
D...
My database is named "pugetsound." What I want to do, conceptually:
1. Select all records with PLACE = XYZ.
2. Count how many of those selected records have XWALK = A or B or C.
3. If that is 2 or more, update the EPU_Flag field with a '1' for all those records where PLACE = XYZ.
This almost...
I know I have the syntax totally wrong.
I want to do something like:
UPDATE Flag = 1
FROM Dataset WHERE
("Label" = 'XYZ' AND
COUNT ("Type" = 'A' OR
"Type" = 'B' OR
"Type" = 'C' OR) >= 2)
What I want, conceptually:
1. Select all records with Label = XYZ.
2. Count how many of those selected...
SQL newbie. Can't think how to search for this so I'll just ask in hopes that someone is patient enough to answer:
In a table called "products" I have 2 fields:
item_code menu_name
1 chairs
2 chairs
3 tables
4...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.