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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -