techzone12
Technical User
I have T-SQL query,in which I do a calculation as follows:
SELECT CONVERT(int,
Volts * Amps * 0.001732 * PF / 100)
AS KW
FROM Elec_Table
I want the query to check if the number calculated (KW) is higher that say 1000, then to produce a null or zero.
How do I do this?
Thanks
SELECT CONVERT(int,
Volts * Amps * 0.001732 * PF / 100)
AS KW
FROM Elec_Table
I want the query to check if the number calculated (KW) is higher that say 1000, then to produce a null or zero.
How do I do this?
Thanks