<p>SELECT DISTINCT id, heading_title, opening_day, opening_time, opening_id FROM heading_openinghour CROSS JOIN timetble WHERE heading_openinghour.id=timetble.heading_id order by heading_openinghour.id, timetble.opening_id;</p>
when run in mysql it shows this result , u can see here,
http://www.whatahome.co.uk/test.html
Hello I am using this query to generate the result. This is ok but I come across other issue, which if rows in first table do not match to 2nd table then it do not show those rows
do someone know that if I can get same result but also those rows which are only in table1 and have no relation with table 2
thanks for help??