Results 1 to 4 of 4

Thread: SQL Query

  1. #1
    Join Date
    May 2009
    Posts
    1

    SQL Query

    Hello, I am looking for some help with creating an update query.

    Hopefully you guys can help.

    It is one single table that needs updated.

    I have table "Years" where the data is currently

    2003 thru 2006
    or
    1999 thru 2002
    or
    2005 thru 2008

    and so on

    I would like it to be IF...

    2003 thru 2006 then update it to 2003,2004,2005,2006
    1999 thru 2002 then update it to 1999,2000,2001,2002

    and so on.

    Help please

    Thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    86
    pc porter, need some more information as I really don't understand what it is you want to do.

    Do you mean the table YEARS has rows with a column of data like:

    2003
    2004
    2005

    or a column that contains the text:

    '2003 thru 2006'
    '1999 thru 2002'

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  4. #4
    Join Date
    Jun 2004
    Location
    Atlanta and Manhattan
    Posts
    607

    Should be simple ...

    The solution would be straightforward, depending upon your answers to the above ... we just have to know more about the data ...

    Bill

Posting Permissions

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