jacktripper
Programmer
I created this inner join query in SQL server, and it seems to work just fine. But, when I try the same thing in mySQL (duplicate database) it gives me an error. I've never tried join statements with mySQL... any help would be nice! Also, is there any free software out there for building relationships and creating queries for mySQL?
SELECT orders.*, orderscart.*, company.*, accounts.*, company.companyid AS Expr1, orders.ordernum AS Expr2 FROM orderscart INNER JOIN orders ON orderscart.ordernum = orders.ordernum INNER JOIN accounts INNER JOIN company ON accounts.companyid = company.companyid ON orders.companyid = company.companyid WHERE (company.companyid = 'bctcom') AND (orders.ordernum = '8975')