Distinct for one column

  • Thread starter Thread starter David
  • Start date Start date
D

David

I have a query that results 2 columns of data. The first column is ticket
numbers and the second column is an expression. I want to only display the
rows where the expression column is distinct. Any ideas?

Thanks,

Dave
 
11 Bill
12 Bill
13 Bill
14 Rex
15 Rex
16 John
17 Steve

11 Bill
14 Rex
16 John
17 Steve

or

13 Bill
15 Rex
16 John
17 Steve
 
I'm sorry I didn't make my last response clear. My boss was flipping out
yesterday.

data in table:
11 Bill
12 Bill
13 Bill
14 Rex
15 Rex
16 John
17 Steve

acceptable output:
11 Bill
14 Rex
16 John
17 Steve

or
acceptable output:
13 Bill
15 Rex
16 John
17 Steve

I basically don't want to display any duplicates in the driver field.
 
Thanks Karl that worked!

I couldn't get it working properly modify the sql code (im a sql coding
newb). I understood what your code was doing and I went to the builder and
first on the tickets column and then group by on the expression column.
Worked like charm. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

distinct records 12
DISTINCT funtion 21
count question 3
Counting Distinct Values 1
Excel Comparing two columns 1
Excel Help to copy information from one row at a time to another sheet 1
Access #Error & Excel Pivot 0
Data Mismatch in Excel 2010 4

Back
Top