Guest_imported
New member
- Jan 1, 1970
- 0
i have a table that contains 10 records each for a distict field(cusip) and am trying to write a query to select the top 4 records for each different cusip.. this is what i have so far and it gives back all ten records for each cusip.... is it possible to add a "top4" and distinct somewhere to fix my problem
existing query:
SELECT tblSecHoldings.Cusip, tblSecHoldings.DecDate, tblSecHoldings.ExDate, tblSecHoldings.RecDate, tblSecHoldings.PayDate, tblSecHoldings.Rate, tblSecHoldings.Freq, tblSecHoldings.CorpType
FROM tblSecHoldings
WHERE (((tblSecHoldings.CorpType)="regular cash");
existing query:
SELECT tblSecHoldings.Cusip, tblSecHoldings.DecDate, tblSecHoldings.ExDate, tblSecHoldings.RecDate, tblSecHoldings.PayDate, tblSecHoldings.Rate, tblSecHoldings.Freq, tblSecHoldings.CorpType
FROM tblSecHoldings
WHERE (((tblSecHoldings.CorpType)="regular cash");