Can we use joins, where & subquery using streams [message #268702] |
Wed, 19 September 2007 07:35 |
carthik7
Messages: 5 Registered: September 2007
|
Junior Member |
|
|
SELECT
MAX(t2.id) AS ids,
t1.id,
t1.no
FROM
table1 t1
INNER JOIN table2 t2
ON t1.no = t2.no
AND t1.id > 0
AND t2.loc IN
(SELECT value FROM table3 WHERE
no=220)
AND t1.ind = 1
GROUP BY t1.id, t1.no
Can we optimize this query using streams. i.e can we use the subquery,join and where condition of the above query in the source tables and insert the result set into a target table using streams
|
|
|
|
|
|
|
|
|