MySQL Forums
Forum List  »  Portuguese

COUNT em mais de uma tabela
Posted by: Fabiano Magno Pechibella
Date: June 13, 2008 09:32AM

Dae galera, bele? Estou com a seguinte duvida como faço para contar o numero de regstros de 2 tabelas e soma-los? Isso é possivel?

Ex.
SELECT COUNT(*) FROM tabela1
UNION ALL
SELECT COUNT(*) FROM tabela2

Até ai tudo bem mais eu quero somar os registros....é possivel?

[ ]'s

Fabiano Magno Pechibella

Options: ReplyQuote


Subject
Views
Written By
Posted
COUNT em mais de uma tabela
8962
June 13, 2008 09:32AM
4812
July 06, 2008 06:10PM


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.