This is the MS Access
related query.
I have a table with three columns: FName, FValue and VDate
in MS Access.(The actual table is quite big but the following example is for reference.)
!http://postimg.org/image/bx0grwoa3/
Now I want to get a following kind of query output: Get the minimum quarterly values for each unique name. For example: !http://postimg.org/image/je1w7gdi1/
So far I am able to get the output for one quarter by hardcoded criteria, by using the following (In MS Access)
SQL string is:
SELECT Table.FName, Min(Table.FValue) AS MinOfFValue, First(Table.VDate) AS FirstOfVDate
FROM [Table] LEFT JOIN [Table] AS Table_1 ON Table.FValue = Table_1.FValue
WHERE (((Table.VDate)>#3/31/2014# And (Table.VDate)<#7/1/2014#))
GROUP BY Table.FName;
Now instead of the putting date hard coded, I want the dates to be part of a table where Quarter name, from date and to dates are there and Access takes them one by one and give the desired output.
Thanks in advance.