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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random query selecting two records

Status
Not open for further replies.

tedmillerx

Programmer
Jan 6, 2001
52
US
I need to write a query that randomly selects two records for each customer service rep of an order history table for one day.

In other words, if Joe and Keith each enter about 30 orders today, I want to randomly choose two orders from Keith and two orders from Joe in the same query.

How do I do it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top