Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Div Mod SQL

Div Mod SQL

Scheduled Pinned Locked Moved C#
database
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TAREQ F ABUZUHRI
    wrote on last edited by
    #1

    i want to make sql statment that use mod % Div / i have tow colum tt | time --------- 1 | 1 2 | 2 3 | 9 i want to make list for all record if (time % 5 = 0) * how can make this

    Palestine

    M J 2 Replies Last reply
    0
    • T TAREQ F ABUZUHRI

      i want to make sql statment that use mod % Div / i have tow colum tt | time --------- 1 | 1 2 | 2 3 | 9 i want to make list for all record if (time % 5 = 0) * how can make this

      Palestine

      M Offline
      M Offline
      mikone
      wrote on last edited by
      #2

      you could make this by typing the query and executing it. the query has to be written according to your database rules (most likely sql 92 standard). the modulus operator is available too (and its the %-char). as a special hint: use the where clause (where x % 5 = 0)...

      1 Reply Last reply
      0
      • T TAREQ F ABUZUHRI

        i want to make sql statment that use mod % Div / i have tow colum tt | time --------- 1 | 1 2 | 2 3 | 9 i want to make list for all record if (time % 5 = 0) * how can make this

        Palestine

        J Offline
        J Offline
        John Petersen
        wrote on last edited by
        #3

        select * from [TableName] where time % 5 = 0 Kind Regards, John Petersen

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups