This is not running , I could do for 2 tables but the problem is when I add the 3rd table
SHIPTO . Please let me know what is the complete SQL as this is not running

regards