I need some help in mysql statement Ive table1 with 7 column and table 2 with 8 column the extra column named ranking , my statement should be like select all from table 1
You need to do something like this:
SELECT * FROM `table1` INNER JOIN `table2` USING ([a common filed name here]) ORDER BY table2.[the filed name here]