I have a requirement where i need to filter data for previous calendar quarter. How can we use "Previous Calendar Quarter" in soql(Not using any custom coding).
SELECT Id FROM Account WHERE CreatedDate = LAST_QUARTER
Full reference for these special
constants
literals is here . Or you can look at SOQL date functions .
The n value should be a negative integer representing the number of quarters you want to go back.
SELECT Id, Name, ClosingDate FROM Opportunity WHERE ClosingDate = NEXT_N_QUARTERS:-1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.