chris-uk-lad
Registered User.
- Local time
- Yesterday, 17:57
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
Im having trouble with a database query, i have a table that has a large list of Reference numbers, sometimes duplicates. These are indicated by another column that counts the number of duplicates (sequence of the numbers).
Ive been trying to create a quey that will retrieve the highest SEQNUM of each REFNUM. I tried a Max(SEQNUM) but got the below error.
"You tried to execute a query that does not include the specified expression 'REFNUM' as part of an aggregate function"
Can someone translate? I recreated the query on a simple 3 record 2 column database and same error
Im having trouble with a database query, i have a table that has a large list of Reference numbers, sometimes duplicates. These are indicated by another column that counts the number of duplicates (sequence of the numbers).
Ive been trying to create a quey that will retrieve the highest SEQNUM of each REFNUM. I tried a Max(SEQNUM) but got the below error.
"You tried to execute a query that does not include the specified expression 'REFNUM' as part of an aggregate function"
Can someone translate? I recreated the query on a simple 3 record 2 column database and same error