|
-
Nov 14th, 1999, 07:34 AM
#1
Thread Starter
Member
Hi guys, I had this database which consists of duplicate invoices no. My question is how do i view those duplicate invoices no. only??
I'm using access. What is the SQL command to use.
Thks.
-
Nov 14th, 1999, 09:42 AM
#2
Hyperactive Member
Assuming a table named YourInvoiceTable with an invoice number field named inv_num, the SQL query in Access/DAO could look something like this:
SELECT DISTINCTROW
First(inv_num)
, Count(inv_num)
FROM YourInvoiceTable
GROUP BY inv_num
HAVING Count(inv_num)>1;
-
Nov 14th, 1999, 10:06 AM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|