My primary key for the NAV_Tbl is the ending date of each quarter, and it has a NetAssetValue (dollar amount) associated with it, which determines a units' value during each quarter. (Units * NetAssetValue = Value).
(NAV_Date = 12/31/2013 | NetAssetValue = $2,000)
The AwardTbl has a field (AwardNAV) that is the quarter end date of when the awards were given (AwardDate).
(AwardDate = 1/20/2014 -> AwardNAV = 3/31/2014)
I am trying to build a query that returns the value of each award based on the AwardDate, however when I join the AwardTbl and the NAV_Tbl on AwardNAV and NAV_Date, it returns no records. When I don't join them, it works fine, however I don't get the value of each award.
Here is my SQL:
Anyone have any ideas or see something that jumps out at them as wrong? Thanks.
(NAV_Date = 12/31/2013 | NetAssetValue = $2,000)
The AwardTbl has a field (AwardNAV) that is the quarter end date of when the awards were given (AwardDate).
(AwardDate = 1/20/2014 -> AwardNAV = 3/31/2014)
I am trying to build a query that returns the value of each award based on the AwardDate, however when I join the AwardTbl and the NAV_Tbl on AwardNAV and NAV_Date, it returns no records. When I don't join them, it works fine, however I don't get the value of each award.
Here is my SQL:
Code:
SELECT AwardTbl.EmployeeID, AwardTbl.PlanID, PlanTbl.PlanDesc, AwardTbl.AwardDate, AwardTbl.AwardUnits, AwardTbl.AwardNAV FROM PlanTbl INNER JOIN (NAV_Tbl INNER JOIN AwardTbl ON NAV_Tbl.NAV_Date = AwardTbl.AwardNAV) ON PlanTbl.PlanID = AwardTbl.PlanID;
Comment