ms access - SQL Join operation error -
i trying write sql code in ms access 2010
follows:-
select wowperformancedata_tbl.style, wowperformancedata_tbl.fy, wowperformancedata_tbl.month, printpromotions.[type of offer], printpromotions.start, printpromotions.end wowperformancedata_tbl right join printpromtions on wowperformancedata_tbl.style=printpromotions.style (wowperformancedata_tbl.style=[enter style nr:]);
upon running code, access returns error in join operation pointing fourth line , selects printpromotions
any feedback appreciated..
thank you.
this fine clause evaluation on entire set.
select wowperformancedata_tbl.style, wowperformancedata_tbl.fy, wowperformancedata_tbl.month, printpromotions.[type of offer], printpromotions.start, printpromotions.end wowperformancedata_tbl left join printpromtions on wowperformancedata_tbl.style=printpromotions.style (wowperformancedata_tbl.style=[enter style nr:]);
this exclude records printpromotions not in wowperformancedata_tbl, negates right join.:
select wowperformancedata_tbl.style, wowperformancedata_tbl.fy, wowperformancedata_tbl.month, printpromotions.[type of offer], printpromotions.start, printpromotions.end wowperformancedata_tbl right join printpromtions on wowperformancedata_tbl.style=printpromotions.style (wowperformancedata_tbl.style=[enter style nr:]);
this how keep records printpromotions , matched in wowperofrmancedata_tbl.
select wowperformancedata_tbl.style, wowperformancedata_tbl.fy, wowperformancedata_tbl.month, printpromotions.[type of offer], printpromotions.start, printpromotions.end wowperformancedata_tbl right join printpromtions on wowperformancedata_tbl.style=printpromotions.style , (wowperformancedata_tbl.style=[enter style nr:]);
Comments
Post a Comment