Hi,
How do i create a construct for several ON clauses in a JOINT statement? I have tried to follow the sample presented in sqljet3 help file but could not make it run. Please see sample code below i been trying to work out.
How do i create a construct for several ON clauses in a JOINT statement? I have tried to follow the sample presented in sqljet3 help file but could not make it run. Please see sample code below i been trying to work out.
Code:
PARAMETERS iMonth INTEGER;
SELECT tblRanking.Branch_Code,tblRanking.Raw, tblRanking.Wt,tblRanking.Overall_Rank,tblSales_Budget.Rank, tblSales_Budget.iValue,tblSales_Budget.Wt FROM tblRanking INNER JOIN tblSales_Budget ON tblRanking.Branch_Code= tblSales_Budget.Branch_Code [COLOR=red]AND ON tblRanking.Month_ID= tblSales_Budget.Month_ID[/color]