Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

Int

Example

Return the whole number part of a decimal value:

SELECT Int(756.43AS IntNum;

Definition and Usage

The Int() function returns the integer part of a number. If the number is negative, it returns the largest integer less than or equal to the number.

Syntax

Int(number)

Parameter Values

Parameter

Description

number

Required: A numeric value

Technical Details

Works in:

 From Access 2000

More Examples

Example

Retrieve the integer component of values in the “Price” column.

SELECT Int(Price) AS IntNum FROM Products;