I have two tables in my system, and I need to do a two-column count on the tables. I currently do through a VIEW as follows:
CREATE VIEW totais AS
(SELECT (SELECT COUNT(publications.id) FROM publications) AS total1,
(SELECT COUNT(deejays.id) FROM deejays) AS total2)
I need to do this through a SELECT but I can not do it.