---
title: "* (asterisk sign) operator"
description: Learn the syntax of the \* (asterisk sign) operator of the SQL language in Databricks SQL.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/asterisksign
---

# `*` (asterisk sign) operator

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns `multiplier` multiplied by `multiplicand`.

## Syntax

```
multiplier * multiplicand
```

## Arguments

* `multiplier`: A numeric or `INTERVAL` expression.
* `multiplicand`: A numeric expression or `INTERVAL` expression.

You may not specify an `INTERVAL` for both arguments.

## Returns

* If both `multiplier` and `multiplicand` are `DECIMAL`, the result is `DECIMAL`.
* If `multiplier` or `multiplicand` is an `INTERVAL`, the result is of the same type.
* If both `multiplier` and `multiplicand` are integral numeric types, the result is the larger of the two types.
* In all other cases the result is a `DOUBLE`.

If either the `multiplier` or the `multiplicand` is 0, the operator returns 0.

If the result of the multiplication overflows the result type, Databricks raises an [ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/arithmetic-overflow-error-class.md) or [INTERVAL\_ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/interval-arithmetic-overflow-error-class.md) error.

Use [try\_multiply](https://docs.databricks.com/aws/en/sql/language-manual/functions/try_multiply.md) to return `NULL` on overflow.

> [!WARNING]
>
> In Databricks Runtime, if [spark.sql.ansi.enabled](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md) is `false`, the result "wraps" if it is out of bounds for integral types, and the result is `NULL` for fractional types.

## Common error conditions

* [ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/arithmetic-overflow-error-class.md)
* [INTERVAL\_ARITHMETIC\_OVERFLOW](https://docs.databricks.com/aws/en/error-messages/interval-arithmetic-overflow-error-class.md)

## Examples

```sql
> SELECT 3 * 2;
 6

> SELECT 2L * 2L;
 4L

> SELECT INTERVAL '3' YEAR * 3;
 9-0

> SELECT 100Y * 100Y;
 Error: ARITHMETIC_OVERFLOW
```

## Related functions

* [`div` operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/div.md)
* [`-` (minus sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/minussign.md)
* [`+` (plus sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/plussign.md)
* [`/` (slash sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/slashsign.md)
* [`sum` aggregate function](https://docs.databricks.com/aws/en/sql/language-manual/functions/sum.md)
* [`try_multiply` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/try_multiply.md)
