Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit rows returned in nested subquery

Status
Not open for further replies.

Karin3

Technical User
May 15, 2001
7
CA
This is the error msg:
.&quot;Subquery returned more than 1 value. This is illegal when the subquery follows =, !=, <, <= , >, >=, or
when the subquery is used as an expression.
Command has been aborted. &quot;
Example: I want a list of peoples phone numbers that fall in certain criteria, and a few people have more than one number that falls in the parameters. I only want one of these numbers per person and don't care which. How can I code this without another nested query or long case statement. There is a large number of records and performance is an issue.
Thank you in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top