I have 2 tables, both tables have a common field "First Name"
the left table has thousands of records and the right table has the "First Name field" grupped so there is only a dozen first names
I want to select 5 Records from the left table per each "First Name" in the Right Table
another words the right table has first names
Peter
John
Arthur
I wana select 5 records with "First Name" Peter , 5 Johns and 5 Arthurs from the left table
Can this be done in one query or I have to run the query many times with different where clause ?
any help appreciated
the left table has thousands of records and the right table has the "First Name field" grupped so there is only a dozen first names
I want to select 5 Records from the left table per each "First Name" in the Right Table
another words the right table has first names
Peter
John
Arthur
I wana select 5 records with "First Name" Peter , 5 Johns and 5 Arthurs from the left table
Can this be done in one query or I have to run the query many times with different where clause ?
any help appreciated