Brug underforespørgsler, og tilføj FROM DUAL
, hvis det er nødvendigt :
SELECT
(SELECT COUNT(*) FROM TABLE1) As Table1Count,
(SELECT COUNT(*) FROM TABLE2) As Table2Count
[FROM DUAL]
Brug underforespørgsler, og tilføj FROM DUAL
, hvis det er nødvendigt :
SELECT
(SELECT COUNT(*) FROM TABLE1) As Table1Count,
(SELECT COUNT(*) FROM TABLE2) As Table2Count
[FROM DUAL]