I need to create a query to return 5% of all items matching a certain critera. e.g.
5% of records for Joe on 10/16
5% of records for Jane on 10/16
5% of records for Bob on 10/16
I'm fairly green when it comes to sql. I know how to use TOP N PERCENT and I know how to create temp tables in a stored procedure. I just don't know how to get 5% of each user for that date. (Rather than 5% of all the records for that date.)
Please help!! Thank you!!
5% of records for Joe on 10/16
5% of records for Jane on 10/16
5% of records for Bob on 10/16
I'm fairly green when it comes to sql. I know how to use TOP N PERCENT and I know how to create temp tables in a stored procedure. I just don't know how to get 5% of each user for that date. (Rather than 5% of all the records for that date.)
Please help!! Thank you!!