talkiechick
Registered User.
- Local time
- Today, 09:09
- Joined
- Apr 15, 2010
- Messages
- 59
So I guess this is my final attempt to see if I can create certain results with a query without having to actually program.
My query basically has a large amount of data. Each quarter we have to submit information from the data within six different date ranges:
Less than 3 M
3M - 1 Y
1 Y - 3 Y
3Y - 5 Y
5 Y-15 Y
greater than 15 Y
The problem isn't pulling the date ranges, I have two date fields that i need to have the dates come from. I need the data to pull the most current date and allocate that row of data to one date range. However i cannot have the data duplicate, if it has been used in one date range, I cannot have it used again in another.
i've tried create date range query for each date field and then union the two fields together. My problem is really is i am getting duplicate data in the date ranges, and I can't figure out a way to put a clause in to pull the data for the most current date.
Can anyone help, or at least tell me it's too complicated?
(FYI the type of data in the query is an ID,Type, Name, Currency, Date1, Date2, & Status. Type, Status and Date1 and Date2 have criterias.)
My query basically has a large amount of data. Each quarter we have to submit information from the data within six different date ranges:
Less than 3 M
3M - 1 Y
1 Y - 3 Y
3Y - 5 Y
5 Y-15 Y
greater than 15 Y
The problem isn't pulling the date ranges, I have two date fields that i need to have the dates come from. I need the data to pull the most current date and allocate that row of data to one date range. However i cannot have the data duplicate, if it has been used in one date range, I cannot have it used again in another.
i've tried create date range query for each date field and then union the two fields together. My problem is really is i am getting duplicate data in the date ranges, and I can't figure out a way to put a clause in to pull the data for the most current date.
Can anyone help, or at least tell me it's too complicated?
(FYI the type of data in the query is an ID,Type, Name, Currency, Date1, Date2, & Status. Type, Status and Date1 and Date2 have criterias.)