About 149,000 results
Open links in new tab
  1. MySQL MOD() Function - W3Schools

    The MOD() function returns the remainder of a number divided by another number. Syntax

  2. SQL MOD: Returns Modulus of a Number Divided by Another - SQL Tutorial

    Here’s the syntax of the MOD function: The MOD function accepts two arguments. a is a number or numeric expression to divide. b is the divisor which is also a number or expression by which to divide the dividend. If b is 0, most database systems will issue a division by zero error except for Oracle database.

  3. SQL MOD() function - w3resource

    Apr 20, 2024 · The SQL DISTINCT command along with the SQL MOD() function is used to retrieve only unique records depending on the specified column or expression. Syntax: MOD( dividend, divider )

  4. MOD() Function in MySQL - GeeksforGeeks

    Apr 24, 2023 · The MOD() function in MySQL is used to find the remainder of one number divided by another. The MOD() function returns the remainder of dividend divided by divisor. if the divisor is zero, it returns NULL. Syntax: MOD(N, M) or N % M or N MOD M. Parameter : MOD() function accepts two parameter as mentioned above and described below.

  5. MySQL MOD Function - MySQL Tutorial

    The MOD() function returns the remainder of one number divided by another number. Here’s the basic syntax of the MOD() function: MOD(dividend,divisor) Code language: SQL (Structured Query Language) ( sql )

  6. MOD () in SQL: Examples, Use Cases & Error Handling

    What is MOD() in SQL? The MOD() function in SQL returns the remainder after dividing one number by another. It is commonly used for checking divisibility, cyclic operations, and mathematical computations. Many databases also support the % operator as an alternative to MOD(), though syntax may vary.

  7. SQL MOD() | A Quick Glance of SQL MOD() with Examples

    Mar 15, 2023 · The basic syntax for writing the MOD() function is as follows: MOD(argument_1,argument_2); We can even use the following syntax in some databases where MOD is not a built-in function.

  8. Mastering the MOD Function in SQL: A Comprehensive Guide to …

    Jun 12, 2024 · The basic syntax for the MOD function in SQL is straightforward: Where number is the dividend and divisor is the divisor. The function will return the remainder of the division of number by divisor. The MOD function typically requires two parameters: Number (dividend): The number that is to be divided.

  9. How MOD works in SQL? Best MOD examples - KajoData

    What Is the MOD Function? The MOD function in SQL returns the remainder of a division operation between two numbers. The syntax is quite simple: MOD(dividend, divisor) Here’s how it works in practice: MOD(10, 3) returns 1 because 10 divided by 3 leaves a remainder of 1. MOD(15, 4) returns 3 since 15 divided by 4 gives a remainder of 3.

  10. SQL MOD and REMAINDER Function Guide, FAQ, and Examples

    Jul 26, 2023 · In SQL Server, you can use the % operator. The SQL MOD syntax is below: The return type is a numeric data type, and the exact type depends on the input parameters. The parameters of the MOD function are: numerator (mandatory): This is the numerator in the division, or the “number on the top”. In a division such as 15/4, this would be 15.

  11. Some results have been removed
Refresh