Given two Tables that are Linked together
tbl_Gasoline
--------------
ID | Type
-------------
1 | Diesel
2 | Kerosene
and
tbl_Expense
-----------------------------
ID | Price | GasolineType (tbl_Gasoline foreign key)
-----------------------------
1 | 5000 | 1
2 | 4000 | 2
3 | 3000 | 1
I want to have an Output like this
tbl_GasolineExpense
----------------------------
ID | Price | Type
----------------------------
1 | 8000 | Diesel
2 | 4000 | Kerosene
I have tried to use a DISTINCT and SUM clauses but I can't seem to make a good query. It's been long since I have used SQL so some help would really be appreciated.