I am designing a system to track which pages logged in users have browsed within a site.
The first table (users) has the users unique ID, username, password, etc.
The 2nd table (usage) records the page each user loaded... userID, pageloaded, date.
I am trying to select which users have browsed the entire site.... the pages are recorded in the 2nd table as page01, page02, page03, etc...
how can I query the database to give me back a list of users who have browsed all of the pages at least once.....?
this is what I have so far:
=============
SELECT DISTINCT
usage.userID,
users.fname
FROM usage
LEFT JOIN users on usage.userID = users.ID
WHERE usage.page = 'pag01' AND 'page02' AND 'page03'
=============
what I'm putting in the WHERE clause isn't working...
thanks for any help or guidence...