sql - how To select fields from two tables -


i need select these fields-----

user_id, sales_vertical, partner_id, category, sub_category, stage_id, exp_revenue, action, action_date, title_action, date_action, details opportunity_history table 

and

tri_title, tri_subtitle  res_partner table  res_partner.partner_id = opportunity_history.partner_id  

in single query. how can that?

thanks adil

why many downvotes , no comments?

try with:

select      oh.ser_id,     oh.sales_vertical,     oh.partner_id,     oh.category,     oh.sub_category,     oh.stage_id,     oh.exp_revenue,     oh.action,     oh.action_date,     oh.title_action,     oh.date_action,     oh.details,      rp.tri_title,     rp.tri_subtitle  opportunity_history oh   inner join res_partner rp     on rp.partner_id = oh.partner_id  

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -