Jump to content

Recommended Posts

Posted

I would like to run a query in Access that selects 10 random records per group from a table.I have many different customers but their flight numbers are simalar. I want to select random 10 customers per flight number.

Posted

select COLUMNS from YOUR_TABLE_NAMEwhere mod(SOME_ID_OR_NUMBER_COLUMN, to_number(substr(to_char(sysdate,'ddmmyyyyHHMISS'), 13, 2))) = 0and rownum < 11 :) This work in ORACLE database. You can try in Access!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...