M
mabond
Hi
I have a SQL query.....but I've posted here cos I'm using SQL in a VB.net
app to interrogate records in an Access table. I apologise in advance if I've
posted in the wrong forum and would welcome a pointer to the correct forum to
use....
I have a table containing records that include a name field. A particular
name can occur more than once in the table. I want to be able to view the
full record where the field name contains a value that occurs more than a
given number of times in the table (e.g. => 3)
So if my table contains as follows
RecordID Points Name
1 10 Alan
2 5 Joe
3 10 Joe
4 6 Henry
5 6 Alan
7 10 Joe
I want the query to show the following result
RecordID Points Name
2 5 Joe
3 10 Joe
7 10 Joe
.....and if there were more than records for Alan then they too would
display....
.....my table also contains considerably more fields than the sample I've
given and I need to be able to see the full record with all the fields
I cannot get my head round the syntax of the query despite the use of group
by clause. all that gives me is either a distinct count for the name field or
a count of the name field
Would appreciate any help you can offer.
Regards
Michael Bond
I have a SQL query.....but I've posted here cos I'm using SQL in a VB.net
app to interrogate records in an Access table. I apologise in advance if I've
posted in the wrong forum and would welcome a pointer to the correct forum to
use....
I have a table containing records that include a name field. A particular
name can occur more than once in the table. I want to be able to view the
full record where the field name contains a value that occurs more than a
given number of times in the table (e.g. => 3)
So if my table contains as follows
RecordID Points Name
1 10 Alan
2 5 Joe
3 10 Joe
4 6 Henry
5 6 Alan
7 10 Joe
I want the query to show the following result
RecordID Points Name
2 5 Joe
3 10 Joe
7 10 Joe
.....and if there were more than records for Alan then they too would
display....
.....my table also contains considerably more fields than the sample I've
given and I need to be able to see the full record with all the fields
I cannot get my head round the syntax of the query despite the use of group
by clause. all that gives me is either a distinct count for the name field or
a count of the name field
Would appreciate any help you can offer.
Regards
Michael Bond