m***@gmail.com
2013-10-30 17:36:52 UTC
I have a table sector that has a relation with a table category.
Sector can have many categories so category has a foreign key sector_id that references sector.
If I do select * from category I can have the content of sector_id, for example 1, 2 and so on.
I want all categories and the sector name of the sector associated not the sector id.
Sorry for my english hope I've explained my problem well.
Sector can have many categories so category has a foreign key sector_id that references sector.
If I do select * from category I can have the content of sector_id, for example 1, 2 and so on.
I want all categories and the sector name of the sector associated not the sector id.
Sorry for my english hope I've explained my problem well.