Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show all records from current and previous month 1

Status
Not open for further replies.

likelylad

IS-IT--Management
Jul 4, 2002
388
GB
Hi
I was hoping someone could help me.
I would like to run a query that will show me all the records from the current month and the previous month. Account will also have to be taken of the end of the end as in January 2003 I will need to look at the figures in December 2002.

The format is like

select * from mytable where ??????????

The field where the dates are held is called logindate and it is in date/time format.

Thanking in advance for any help received
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top