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. Database & SysAdmin
  3. Database
  4. how to calculate age from given DOB in sql 2000

how to calculate age from given DOB in sql 2000

Scheduled Pinned Locked Moved Database
databasehelptutorial
2 Posts 2 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.
  • R Offline
    R Offline
    ramyasangeet
    wrote on last edited by
    #1

    hi all i need to find members whose age is greater 75 yrs.how to calculate age from the give DOB. I used the following code. DOB <= Dateadd(yy,-75,getdate()) Plz help me to find out the correct way thanks in advance

    cheers sangeet

    J 1 Reply Last reply
    0
    • R ramyasangeet

      hi all i need to find members whose age is greater 75 yrs.how to calculate age from the give DOB. I used the following code. DOB <= Dateadd(yy,-75,getdate()) Plz help me to find out the correct way thanks in advance

      cheers sangeet

      J Offline
      J Offline
      joemonvarghese
      wrote on last edited by
      #2

      select * FROM WHERE datediff(year,convert(datetime,DATEOFBIRTH),getdate())>75 -- modified at 8:17 Wednesday 19th September, 2007

      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