Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

SQL query for table with redundant data

$
0
0
I have a table having redundant data in the attribute ItemNo.

How do I make a distinct query, where all fields are picked where only the distincts are shown for ItemNo?

Then attributes that I need from the file are:

ItemNo, ECMNo, isDocument, DMSRev, ProposedActions

I filter on the attribute isDocument.

My query I have tried is:
Code:

SELECT Distinct ItemNo,IsDocument,DMSRev,ProposedActions From [Affected materials$] WHERE IsDocument=FALSE
But this code returns all. How can I get all these and only have the distincts of the itemNo?

Viewing all articles
Browse latest Browse all 42225

Trending Articles