|
-
Oct 26th, 1999, 05:50 PM
#1
Thread Starter
Member
Hai,
I have a Access MDB and a table "Customer"
Fields are like this...
Cust_type, Invo_Number, Cust_number
The data in the table is like this....
3,1010001987,1000006
4,1010001987,1000006
3,1010001988,1000007
4,1010001988,1000007
Now I want to select distinct Invo_number and all the other fields in that record.
This will look like this....
3,1010001987,1000006
3,1010001988,1000007
Can anybody tell me How do I accomplish this with a SQL Statement?
------------------
ganraj.
-
Oct 26th, 1999, 08:23 PM
#2
Select Distinct Cust_type, Invo_Number, Cust_number From Customer
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
-
Oct 27th, 1999, 11:31 AM
#3
Thread Starter
Member
Hello Serge,
That doesn't fulfil my need.
I have multiple entries of same invo_number and cust_number. How do I pick only one record related to a invo_number?
------------------
ganraj.
-
Oct 28th, 1999, 01:44 AM
#4
Guru
I think it's SELECT DISTINCTROW, not just DISTINCT....??
-
Oct 29th, 1999, 11:23 AM
#5
Frenzied Member
DISTINCTROW is going to omit the details he (?) wants. You need to give more details on what you're trying to do.
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
|