I need to create a view in MySQL where I get the following result.
Col1 | Col2 Total Tab1 | Total Tab2
I'm using UNION as follows, but the result comes as follows:
col1 Page 201 Page 5699
CREATE VIEW 'dashboards' AS (
select
count('clientes'.'id') AS 'col1'
from
'clientes') union all (
select
count('titulos'.'id') AS 'col2'
from
'titulos');
But I need it to return as columns and not as lines.
Can anyone help me?