SELECT TOP 10 [FINAL_FOR_DB].[Indemnity_Paid]/[FINAL_FOR_DB].[Claim_Count] AS Indemnity_Cost,
final_for_db.Claimant_Name,
final_for_db.Account_Name,
final_for_db.Claim_ID,
final_for_db.File_Date,
final_for_db.Resolution_Date,
final_for_db.Claim_Status,
final_for_db.State_Filed, final_for_db.Expense_Amount,
final_for_db.Claim_Count,
final_for_db.Indemnity_Paid AS [Total Indemnity]
FROM final_for_db
WHERE (((final_for_db.Account_Name)="Exxon"))
ORDER BY [FINAL_FOR_DB].[Indemnity_Paid]/[FINAL_FOR_DB].[Claim_Count] DESC;
這樣做只會給我埃克森前10項,但我不知道是否有一種方式來獲得前10項的每個帳戶從最大的賠償成本最低的名字。我相信需要子查詢。我將不勝感激任何幫助。謝謝十大子查詢中訪問SQL
什麼dbserver miseur?可能Softie先生 – Drew
Access,Mysql和Sql-Server是三種截然不同的RDBMS。如果您使用「Access」,那麼請丟失Mysql和sql-server標籤。 – JNevill
@JNEvill我指的是Access。我的錯誤 – krnactry