MySQL Forums
Forum List  »  Newbie

Re: Specifying multiple WHERE options within a group?
Posted by: Jay Pipes
Date: June 27, 2005 01:49PM

SELECT COUNT(DISTINCT ua.UserID)
FROM UserActions ua
INNER JOIN (
SELECT UserID FROM UserActions
WHERE Action = 'Request Download'
) AS uad
ON ua.UserID = aud.UserID
INNER JOIN (
SELECT UserID FROM UserActions
WHERE Action = 'Page View'
) AS uap
ON ua.UserID = aup.UserID;

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.