- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Selecting data for last year using date column
Hello,
I'm in the process of getting only previous year data(i.e., from Jan 2021 till Dec 2021) and am having trouble selecting the data I need.
I would like the script to select all dates from January 2021 to December 2021 and nothing else.
Thanks in advance.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Selecting data for last year using date column
Created:
Aug 4, 2022 03:51 PM
| Last Modified: Aug 4, 2022 1:13 PM
(647 views)
| Posted in reply to message from penalah 08-04-2022
dt << select where(:date >= date mdy(01,01,2021) & :date <= datemdy(12,31,2021 ));
Jim