www.webdeveloper.com
Results 1 to 4 of 4

Thread: Sql Query Help

  1. #1
    Join Date
    Sep 2006
    Posts
    643

    Question Sql Query Help

    Hello,

    I am developing a simple calender in my site which will display the next upcoming birthday of my member.

    I have a table which has 2 column


    cname | dob
    -------------------
    Joe | 9/12/1982
    Mathew | 2/17/1997
    Pat | 8/23/1880
    -------------------

    What SQL Query should I use to get the name of that person?

  2. #2
    Join Date
    Feb 2003
    Posts
    2,745
    what dbms?

  3. #3
    Join Date
    Sep 2006
    Posts
    643

    Exclamation

    Currently Access

    but I need the query for both Access and SQL Server 2000



    Thanx

  4. #4
    Join Date
    Nov 2006
    Posts
    6
    select cname from table where dob =
    (select min(dob) from table where dob >= current_date)


    Charles
    _____________________________
    www.cikzlabs.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles