Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Combining Three Tables (MSACCESS)

Author  Topic 

Mr.WiL
Starting Member

1 Post

Posted - 2002-09-07 : 14:03:22
Hi,

I'm trying to put the values of three tables together to form a HitCount page.

I have three tables:
PageList
pageID
ID

counter
location
ID
hits
status
pageDesc

tracks
location
ID
hits
status
pageDesc
trackname
mc
dj

I need to display the top five 'hits' from both tracks and counter

Here's my SQL

select *
from (pagelist INNER JOIN counter ON pagelist.ID=counter.ID)INNER JOIN tracks ON pagelist.ID=tracks.ID

I keep getting no data.

please help

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2002-09-09 : 12:18:49
post sample values from each table....it'll help.
suspect that values in the ID field don't match up in each table....

Go to Top of Page
   

- Advertisement -