Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pull records out that are different

Status
Not open for further replies.

CuteGeek

MIS
Nov 20, 2002
12
US
Hello,

I have a report that I need to only select the below records. How do I do this when there is nothing in the database that make them distinct.

Group 1 14987

Acount Number Company

14987 100
14987 300
14987 200
14987 100


Group 1 23444

Acount Number Company

23444 100
23444 100
23444 100


I need only to see the Group 14987 on this report because they have different companies for the same account number.

I tried to do a group by but got stuck with how to pull those records out.


Thank you,
Cute Geek
 
hi
if you have access to ms query design a view and
used the distinct select

Durango122
 
Go to report->selection formula->GROUP and enter:

distinctcount({table.company},{table.accountnumber}) > 1

-LB
 
Thanks you guys:)

I was taking the long way around trying to write a stored procedure:) I figured it out yesterday evening.

Have a good one...and thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top