F
Francesco
Hi everybody.
I have a master table
Table: PROJECTS
ID_PROJECT
PROJECT
And two detail tables
Table: PLEDGED_FUNDS
ID_ PLEDGED _FUND
ID_PROJECT
YEAR
PLEDGED _FUND
Table: GIVEN_FUNDS
ID_ GIVEN _FUND
ID_PROJECT
YEAR
GIVEN _FUND
I need a report such as
Project1 | Total Pledge (all the years) | Total given year_2004 | Total
given year_2005 …
Project2 | Total Pledge (all the years) | Total given year_2004 | Total
given year_2005 …
Etc.
Which kind of SQL statement could I use?
Thank you for any suggestion
I have a master table
Table: PROJECTS
ID_PROJECT
PROJECT
And two detail tables
Table: PLEDGED_FUNDS
ID_ PLEDGED _FUND
ID_PROJECT
YEAR
PLEDGED _FUND
Table: GIVEN_FUNDS
ID_ GIVEN _FUND
ID_PROJECT
YEAR
GIVEN _FUND
I need a report such as
Project1 | Total Pledge (all the years) | Total given year_2004 | Total
given year_2005 …
Project2 | Total Pledge (all the years) | Total given year_2004 | Total
given year_2005 …
Etc.
Which kind of SQL statement could I use?
Thank you for any suggestion