On 11/12/02 5:36 PM, "Alan McDonald" <[EMAIL PROTECTED]> wrote:
> You can't count the join? > Alan >> >> Hello all, >> >> Does anybody have a SQL string to count the rows in two different >> tables and >> give you a total number of rows? I have been trying to find an >> answer for a >> couple of days and seems like a simple string. >> >> Thank you >> >> Rick I guess he wants something like: SELECT SUM(COUNT(t1.*) , COUNT(t2.*)) FROM table1 t1, table2; Which obviously doesn't work. Maybe once we have subselects we can do it in one query: /h --------------------------------------------------------------------- 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