SELECT count(P.pID)
FROM Department D, Professor P
WHERE D.dID = ? AND P.dID = D.dID;
I would like to subtract '1' from any result for count(P.pID)
. So for instance if value of P.pID is 10, it would output 9... ??
SELECT count(P.pID) - 1 as pID_count
FROM Department D, Professor P
WHERE D.dID = ? AND P.dID = D.dID;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With