Sql Selecting Records

  • How to select Records between two dates '06-06-2010' and '06-06-2011' in sql

  • usharani.t (6/28/2011)


    How to select Records between two dates '06-06-2010' and '06-06-2011' in sql

    Here is how you would select rows from a table where a column named date_column had a value between two date specific values:

    SELECT *

    FROM my_schema_name.my_table_name

    WHERE my_date_column BETWEEN '06-06-2010' AND '06-06-2011' ;

    Is that what you were looking for?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Ya thanks i got the answer...........

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply