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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Query help

Query help

Scheduled Pinned Locked Moved Database
databasehelp
4 Posts 4 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.
  • S Offline
    S Offline
    sarang_k
    wrote on last edited by
    #1

    Hi all, I want to write a query in such a way to find the list of records which are between two dates i.e., consider the two dates are StartDate and EndDate. Thanks in advance.

    N A M 3 Replies Last reply
    0
    • S sarang_k

      Hi all, I want to write a query in such a way to find the list of records which are between two dates i.e., consider the two dates are StartDate and EndDate. Thanks in advance.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      This is an extremely simple query that is well documented. Have you even attempted to look?


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • S sarang_k

        Hi all, I want to write a query in such a way to find the list of records which are between two dates i.e., consider the two dates are StartDate and EndDate. Thanks in advance.

        A Offline
        A Offline
        Andy_L_J
        wrote on last edited by
        #3

        Look at the

        BETWEEN

        keyword. As Mark said, this is very basic T-SQL. What have you researched?

        I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

        1 Reply Last reply
        0
        • S sarang_k

          Hi all, I want to write a query in such a way to find the list of records which are between two dates i.e., consider the two dates are StartDate and EndDate. Thanks in advance.

          M Offline
          M Offline
          Md Marufuzzaman
          wrote on last edited by
          #4

          Just one more think that i would like to add is the datatype/format of your datetime variables, you may need to convert.

          Thanks Md. Marufuzzaman


          I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.

          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