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
1938
November 10, 2015 08:57AM
1072
November 11, 2015 12:33PM
939
November 12, 2015 12:49AM
1082
November 12, 2015 03:20AM
981
November 12, 2015 07:24PM
1150
November 12, 2015 07:08AM
1017
November 12, 2015 07:18AM
1009
November 12, 2015 07:43AM
1088
November 13, 2015 12:37AM
1013
November 13, 2015 12:45AM
1066
November 13, 2015 02:42AM
Re: distinct clause issue for 600000 records
1082
November 13, 2015 05:56AM
1055
November 13, 2015 06:38AM
1143
November 13, 2015 07:15AM
1111
November 13, 2015 08:11AM
1064
November 13, 2015 11:35AM
1131
November 16, 2015 03:04AM
1058
November 16, 2015 04:12AM
1002
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.