K
Kristen
I'm trying to write a query that will Select all records from a table
where at least 5 out of 7 fields match certain criteria. In SQL Server
I believe it can be done like this
SELECT * FROM clients where first_name='Ann' OR last_name = 'White' OR
ssn ='111-11-1111' OR dob ='#01/01/1999#' OR area_code ='415' OR
phone='222-2222' OR gender='F' as Results WHERE Results.first_name +
Results.last_name + Results.ssn + Results.dob + Results.area_code +
Results.phone + Results.gender >=5
Access isn't allowing me to do that. Is there another way to only
return the records where at least X number of fields match the criteria
in the query?
Thanks!
where at least 5 out of 7 fields match certain criteria. In SQL Server
I believe it can be done like this
SELECT * FROM clients where first_name='Ann' OR last_name = 'White' OR
ssn ='111-11-1111' OR dob ='#01/01/1999#' OR area_code ='415' OR
phone='222-2222' OR gender='F' as Results WHERE Results.first_name +
Results.last_name + Results.ssn + Results.dob + Results.area_code +
Results.phone + Results.gender >=5
Access isn't allowing me to do that. Is there another way to only
return the records where at least X number of fields match the criteria
in the query?
Thanks!