How would I select from two table where the category_id value is the same and number them? Thanks
| SitePoint Sponsor |





How would I select from two table where the category_id value is the same and number them? Thanks
Have a good day.





Hi,
You should be able to solve this using a JOIN.
Yours, Erik.
ERIK RIKLUND :: Yes, I've been gone quite a while.

select t1.col1, t1.col2, t2.col1, t2.col2 from table1 t1, table2 t2 where t1.category_id = t2.matching_col
is that what you mean?





Thanks guys all I needed was SELECT * FROM table1,table2
Have a good day.





NM
Have a good day.
Bookmarks