I use Oracle 11g and I want to divide 2 result from my SQL query :
SELECT ((SELECT COUNT(PK_id) FROM TAB1) / SELECT COUNT(TAB1.PK_id)
FROM TAB1
INNER JOIN TAB2 ON TAB2.PK_id = TAB1.FK_id
FROM TAB2;
I want to divide, with 2 SQL query result, the result from COUNT. On the first query, I count the number of ID I had, and in second, I make an inner join to count ID that I had in my TAB1 and on my TAB2..
Tancks. Alex
Remove the select before the 2nd count