Comparing two columns in Access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ragulan84
    New Member
    • Jan 2010
    • 1

    Comparing two columns in Access

    I have to compare columns in MS acces. Please see below the sample
    Code:
    LAST_NEWSLETTER_OPENED_DATE    LAST_LOGIN_DATE
    07/21/09                       06/26/09
    07/21/09
    12/29/09                       12/31/08
    12/08/09                       12/15/09
    There are hundreds of field in each column. I want to filer out the fields where login date and newsletter opened dates are same. How to do that? Pls help me.
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Just a
    Code:
    SELECT * FROM tblYours WHERE LAST_NEWSLETTER_OPENED = DATE LAST_LOGIN_DATE;
    This is really elementary, I would advise you to get a basic SQL book to get an idea of the possibilities.

    Nic;o)

    Comment

    Working...