I have two tables First is tbcategory 
Second is tbcompany 
I want to retrieve from both tables in such a way that common image from tbcompany and all data from tbcategory according to the foreign key
here is an example that i want

here my query in sql server
select cat.category, comp.imagename from tb_category as cat inner join tb_company as comp on cat.companyid=comp.id ///////
i am getting result like this 
and want result like this 