Export (0) Print
Expand All
ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
3 out of 6 rated this helpful - Rate this topic

* (Multiply)

SQL Server 2000

Multiplies two expressions (an arithmetic multiplication operator).

Syntax

expression * expression

Arguments

expression

Is any valid Microsoft® SQL Server™ expression of any of the data types of the numeric data type category except the datetime or smalldatetime data types.

Result Types

Returns the data type of the argument with the higher precedence. For more information, see Data Type Precedence.

Examples

This example retrieves the title identification number and the price of modern cookbooks, and uses the * arithmetic operator to multiply the price by 1.15.

USE pubs
SELECT title_id, price * 1.15 AS NewPrice
FROM titles
WHERE type = 'mod_cook'
ORDER BY title_id ASC

See Also

Data Types

Expressions

Functions

Operators

SELECT

WHERE

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.