About 122,000 results
Open links in new tab
  1. 'MOD' is not a recognized built-in function name - Stack Overflow

    Apr 26, 2014 · 45 I wanted to use MOD function in SQL Server 2008R2 and followed this link but still got the message: 'MOD' is not a recognized built-in function name.

  2. sql - What is the difference between MOD and REMAINDER in oracle ...

    Jun 27, 2014 · The documentation is pretty clear on the difference: NOTE The REMAINDER function uses the round function in its formula, whereas the MOD function uses the floor function in its …

  3. SQL Server MOD equivalent - Stack Overflow

    Jun 10, 2016 · Simple question in regards to MOD alternative in SQL Server. I know SQL Server MOD is written as % but that usually requires a number % number. My question is how can I use the % when …

  4. sql - MOD operator in where clause - Stack Overflow

    Oct 7, 2013 · I am getting an invalid number exception. How do you use MOD in WHERE clause? I am wanting to update even or odd rows based on ID. update employee set respstr1 = 'EP' where mid = …

  5. How to select odd or even items from a row in SQL?

    I need only even or odd items, so I find modulus operation and this doesn't works SELECT * FROM table ORDER BY id WHERE MOD (num, 2) = 1 ASC; Please help me, I'm noob in sql, as I haven't …

  6. sql server - How to compute the modulus of a float in TSQL? - Stack ...

    The modulus function in Microsoft SQL Server only works on certain data types. According to the MSDN Article [1] on the modulus operator, you normally would use modulus like this... dividend % di...

  7. SQL query - mod function - how can I use it to group results?

    Mar 27, 2013 · Thanks - I shall have a read and note for future use. You can blame MS Query for the bad joins - thats the code it generates when you link the tables using the drag and drop relationship …

  8. sql - Selecting rows where remainder (modulo) is 1 after division by 2 ...

    Aug 13, 2017 · There is a column in options that hold an integer. I want to select the row only if that value % 2 = 1. I know this can be done in 2 queries but is it possible to do it in 1?

  9. How to get the quotient and remainder of division - Stack Overflow

    I have one employee table which contains: emp id Sum ------ --- 1 7 2 6 I want a SQL query for getting the quotient and remainder when dividing the Sum with 8.

  10. Mod negative numbers in SQL just like excel - Stack Overflow

    May 6, 2012 · I'm having trouble replicating the mod function in SQL sever. In excel, mod (-3, 7) = 4. But in SQL, -3 % 7 = -3 Am I using % wrong, or does SQL do mod differently?