»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-29-2003, 09:48 AM   #1 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 2
WrathOfThunder is on a distinguished road
help...i've never had this happen

I am using access and I have 2 tables
One table has 28 records and the other has 122 records.
When I do a normal inner join on my 2 fields my query gives me 224 records. What the hell is going on? I do this all the time and never have I had this happen before. Shouldn't it just give me what records are equal?
Please help?
Thanks

WrathOfThunder is offline   Reply With Quote
Old 07-29-2003, 11:01 AM   #2 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
Show us the query.
omalleytrading is offline   Reply With Quote
Old 07-29-2003, 11:03 AM   #3 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 2
WrathOfThunder is on a distinguished road
none of these fields are primary or keyed. There may be duplicate info in both tables.
i don't know why I get 224 records returned.

SELECT PLUG_PORT.KEY, PLUG_PORT.FLOOR, PLUG_PORT.BAY_NODE, PLUG_PORT.SHELF, EQUIPMENT_PORT.PARTITION_FROM, EQUIPMENT_PORT.STATUS_TYPE
FROM PLUG_PORT INNER JOIN EQUIPMENT_PORT ON PLUG_PORT.KEY = EQUIPMENT_PORT.KEY;
WrathOfThunder is offline   Reply With Quote
Old 07-29-2003, 12:08 PM   #4 (permalink)
Registered User
 
omalleytrading's Avatar
 
Join Date: Apr 2003
Location: Albany, NY
Posts: 425
omalleytrading is on a distinguished road
Try this:

SELECT p.KEY, p.FLOOR, p.BAY_NODE, p.SHELF, e.PARTITION_FORM, e.STATUS_TYPE
FROM PLUG_PORT p LEFT JOIN EQUIPMENT_PORT e
ON p.KEY = e.KEY;
omalleytrading is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:41 AM.