Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.25 KB

multiply-entity-sql.md

File metadata and controls

38 lines (24 loc) · 1.25 KB
description title ms.date ms.assetid
Learn more about: * (Multiply) (Entity SQL)
* (Multiply) (Entity SQL)
03/30/2017
508ce246-4e86-47dd-a605-4af4bebb9891

* (Multiply) (Entity SQL)

Multiplies two expressions.

Syntax

expression * expression  

Arguments

expression
Any valid expression of any one of the numeric data types.

Result Types

The data type that results from the implicit type promotion of the two arguments. For more information about implicit type promotion, see Type System.

Example

The following Entity SQL query uses the * arithmetic operator to multiply two numbers. The query is based on the AdventureWorks Sales Model. To compile and run this query, follow these steps:

  1. Follow the procedure in How to: Execute a Query that Returns StructuralType Results.

  2. Pass the following query as an argument to the ExecuteStructuralTypeQuery method:

[!code-sql[DP EntityServices Concepts#MULTIPLY](~/samples/snippets/tsql/VS_Snippets_Data/dp entityservices concepts/tsql/entitysql.sql#multiply)]

See also