Functions and operators : Operators : Operators in computed column expressions

Operators in computed column expressions

Table 8-2 lists the operators you can use when you write expressions for a computed column.

[OrderAmount] - [Discount]
IF([ProductName] = "1919 Ford Falcon", "Discontinued Item", [ProductName])
IF([SalePrice] < [MSRP] , "Below MSRP" , "Above MSRP")
IF([Total] >= 5000, [Total]*15% , [Total]*10%)
IF([SalePrice] <= [MSRP] , "Below or equal to MSRP" , "Above MSRP")
IF([Country] <> "USA", "Imported product", "Domestic product")
IF(([Gender] = "Male" AND [Salary] >= 150000 AND [Age] < 50), "Match found", "No match")
IF(([City] = "Boston") OR ([City] = "San Francisco"), "U.S." , "Europe and Asia")