Can anyone help me with proofs and details ?
I was taught that count(*) and count (1) are not the same because count( * ) selects all the columns in a table however count (1) select only 1 column from a table.
But asktom
explain that they are the same.
such information mad me confused so i wrote this query
select * from ( select count(1) from tab1 union select count(1) from tab2 )
gave me faster results than
select * from ( select count(*) from tab1 union select count( * ) from tab2 )