Hi
i have a quite big sql statement and i would like to ask u if its possible to use aliases in the Where clause and if it is how to use it.
What i'm trying to do is:
SELECT
(SELECT sum(amount) From invoiceDB WHERE Invoice_CustomerID = CustomerID) AS P1
FRom CustomerDB WHERE P1 > 0
Is the above possible?
Thanks
Nick
i have a quite big sql statement and i would like to ask u if its possible to use aliases in the Where clause and if it is how to use it.
What i'm trying to do is:
SELECT
(SELECT sum(amount) From invoiceDB WHERE Invoice_CustomerID = CustomerID) AS P1
FRom CustomerDB WHERE P1 > 0
Is the above possible?
Thanks
Nick