Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Subtraction Operator

-- returns new column named offer_price which is 
-- 20 subtracted to the amount field
SELECT item, amount, amount-20 AS offer_price
FROM Orders;
 
PREVIOUS NEXT
Tagged: #SQL #Subtraction #Operator
ADD COMMENT
Topic
Name
3+7 =