join - Joining Two or More Views in MySQL -


i have 2 views,

view one: company_id, company_name,counta view two: company_id, company_name, countb 

i want join 2 views new view result set needed follows:

company_id, company_name, counta,countb. 

i did research , tried joins , merges cannot figure out. appreciated.

thank you

you may try this:

select view1.company_id, view1.company_name, view1.counta,view2.countb view1 inner join view2 on view1.company_id = view2.company_id 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -