Hi,
Are there any advantages of using JOIN instead of where clause and does that improves speed or performance of sql queries?
Would like to have some input into this aspect.
Thanks and regards
Moderator: Tim...
Tim... wrote:Hi.
Kinda difficult to know what you are asking. Can you give me an example of two statements that display what you are talking about.
Cheers
Tim...
SELECT product_id, product_no,product_extension
FROM products
WHERE product_no IN ( SELECT DISTINCT product_no
FROM products
GROUP BY product_no
HAVING COUNT ( * ) > 1)SELECT a.product_id, a.product_no,a.product_extension
FROM products a inner join (select distinct product_no from products
group by
product_no
HAVING COUNT ( * ) > 1) b on a.product_no = b.product_noWHERE INJOINSELECT a.product_id, a.product_no, a.product_extension
FROM products a
WHERE EXISTS (SELECT 1
FROM products b
WHERE b.product_no = a.product_no);Return to Oracle PL/SQL Development
Users browsing this forum: No registered users and 2 guests