HI,
I am having trouble with a report. I am selecting from 1 database.
Equipment Table
phone#
equipcode
I want all rows that have the same equipcode for one phone #. For example
equipment table
phone # equipcode
404-234-1232 DSL
404-234-1232 DSL
404-234-1232 XVU
I should get 404-234-1232 because that # has DSL twice. I have tried the following query:
select phone# from equipment eq1, equipment eq2
where
eq1.phone = eq2.phone and eq1.equipcode = eq2.equipcode
I of course am matching on the same record in the 2nd table. I don't have any unique field to clear out the exact same record in the other table.
Thanks for any help!
Barb
I am having trouble with a report. I am selecting from 1 database.
Equipment Table
phone#
equipcode
I want all rows that have the same equipcode for one phone #. For example
equipment table
phone # equipcode
404-234-1232 DSL
404-234-1232 DSL
404-234-1232 XVU
I should get 404-234-1232 because that # has DSL twice. I have tried the following query:
select phone# from equipment eq1, equipment eq2
where
eq1.phone = eq2.phone and eq1.equipcode = eq2.equipcode
I of course am matching on the same record in the 2nd table. I don't have any unique field to clear out the exact same record in the other table.
Thanks for any help!
Barb