Re: distinct clause issue for 600000 records
Posted by:
Ra Nala
Date: November 13, 2015 05:56AM
Thank you very much, below are my updates for your queries.
@ Øystein Grøvlen : 1. LEFT JOIN: Don't use it if you do not mean it.
Ra Nala : I should use Left join only why because i want each and every records from left table i.e main table: prdsl even though null records retrieve if the join condition is not matched from right table in my scenario.
@ Øystein Grøvlen : 2. ON clause is for join conditions
Ra Nala : yes i want records for "ea2.address_type='Bil' and for other records will get null values if not matched. If i placed this condition in where clause i will get limited records, i want total records from i.e main table: prdsl
@ Øystein Grøvlen :3. Do not include tables that are not used in query.
Ra Nala : Yes Sir, you are 100% correct. I am using tables beship, beinv, and reginv in my joins but not retrieving any columns from these. i need to modify query. actually, previously we used few columns from these tables and few days back we removed columns but we forgot to remove tables in Joins.
Thank you very much for your valuable inputs.
Subject
Views
Written By
Posted
1652
November 10, 2015 08:57AM
878
November 11, 2015 12:33PM
725
November 12, 2015 12:49AM
872
November 12, 2015 03:20AM
824
November 12, 2015 07:24PM
949
November 12, 2015 07:08AM
829
November 12, 2015 07:18AM
808
November 12, 2015 07:43AM
876
November 13, 2015 12:37AM
804
November 13, 2015 12:45AM
845
November 13, 2015 02:42AM
Re: distinct clause issue for 600000 records
874
November 13, 2015 05:56AM
868
November 13, 2015 06:38AM
894
November 13, 2015 07:15AM
930
November 13, 2015 08:11AM
873
November 13, 2015 11:35AM
931
November 16, 2015 03:04AM
858
November 16, 2015 04:12AM
776
November 16, 2015 05:54AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.