I want to do a join of four tables and get the data
eg
SELECT
A.notice_id,
B.wss_tid ,
D.deal_number,
D.trade_date,
D.value_date
FROM
notice A,
xref_notice_customer B ,
favorite_notice C ,
ord_fx D
WHERE A.notice_id = B.notice_id
and A.notice_id = C.notice_id
and D.wss_tid = B.wss_tid
and C.siteminder_id = 'johndoe'
order by notice_id
In order to achieve this objective , would it be advisable to go in for hibernate query or a plain select using normal jdbc connection.
If hibernate is advisable can someone advice me how to do this.
If someone can explain me with a example , say in terms of emp and dept table. I want to select empno, ename , deptno and deptname by doing a join.
|