SELECT COUNT(p.artID) AS LCNT FROM pages p WHERE p.siteID = 1 -----Original Message----- From: Nick Stewart [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 8:20 AM To: [EMAIL PROTECTED] Subject: Quick SQL querie on count and embedded SELECT
Hi all, I want to do this, SELECT COUNT (a.artID) AS LCNT FROM (SELECT DISTINCT a.artID FROM pages p WHERE p.siteID = 1) Any ideas how to make this MySQL friendly? Cheers, Nick _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php