Click here to Skip to main content
15,900,108 members
Home / Discussions / Database
   

Database

 
GeneralRe: load array data to dataset Pin
jashimu17-Jun-10 3:13
jashimu17-Jun-10 3:13 
GeneralRe: load array data to dataset Pin
Steven J Jowett17-Jun-10 3:40
Steven J Jowett17-Jun-10 3:40 
QuestionHow to avoid same ranks while doing a FULLTEXT Pin
jophinmichael16-Jun-10 7:17
jophinmichael16-Jun-10 7:17 
AnswerRe: How to avoid same ranks while doing a FULLTEXT Pin
Scubapro17-Jun-10 1:38
Scubapro17-Jun-10 1:38 
GeneralRe: How to avoid same ranks while doing a FULLTEXT Pin
jophinmichael18-Jun-10 2:53
jophinmichael18-Jun-10 2:53 
GeneralRe: How to avoid same ranks while doing a FULLTEXT Pin
Scubapro18-Jun-10 3:51
Scubapro18-Jun-10 3:51 
GeneralRe: How to avoid same ranks while doing a FULLTEXT Pin
jophinmichael24-Jun-10 3:58
jophinmichael24-Jun-10 3:58 
QuestionOracle 10g: Does query with no where caluse always do table scan Pin
lswrcmh16-Jun-10 2:16
lswrcmh16-Jun-10 2:16 
Being a SQL Server developer, I am not familiar with Oracle.

We have a third party product using Oracle 10g that uses a dropdown to show the unique values from a field in a table of 2.5 million rows, but with only 50 unique values. There is no index on the field and it takes a minute to run the query 'select distinct field from table order by 1' used to populate the dropdown.
Adding an index on that field should allow the optimiser to scan the index rather than the table, and as the indexed field is 1/50th of the table’s row length I would expect to see a similar decrease in the time taken to run the query. However, it made no difference to the performance.
I have been told that Oracle will ALWAYS do a table scan if there is no where clause in the query. If this is the case without access to the source to change the query, I seem to have no way to optimise this.

Is what I heve been told true?
If not how can I get the optimiser to use the index without being able to chnage the SQL in the query?
AnswerRe: Oracle 10g: Does query with no where caluse always do table scan Pin
David Mujica16-Jun-10 2:34
David Mujica16-Jun-10 2:34 
AnswerRe: Oracle 10g: Does query with no where caluse always do table scan Pin
Chris Meech16-Jun-10 2:35
Chris Meech16-Jun-10 2:35 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
lswrcmh16-Jun-10 2:55
lswrcmh16-Jun-10 2:55 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
Chris Meech16-Jun-10 3:18
Chris Meech16-Jun-10 3:18 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
lswrcmh16-Jun-10 4:03
lswrcmh16-Jun-10 4:03 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
Chris Meech16-Jun-10 4:20
Chris Meech16-Jun-10 4:20 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
lswrcmh16-Jun-10 3:30
lswrcmh16-Jun-10 3:30 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
Bernhard Hiller17-Jun-10 4:56
Bernhard Hiller17-Jun-10 4:56 
GeneralRe: Oracle 10g: Does query with no where caluse always do table scan Pin
Chris Meech17-Jun-10 6:17
Chris Meech17-Jun-10 6:17 
QuestionSQL2000, XML Pin
kaasir_215-Jun-10 3:49
kaasir_215-Jun-10 3:49 
AnswerRe: SQL2000, XML Pin
Eddy Vluggen15-Jun-10 5:41
professionalEddy Vluggen15-Jun-10 5:41 
GeneralRe: SQL2000, XML Pin
kaasir_215-Jun-10 21:45
kaasir_215-Jun-10 21:45 
GeneralRe: SQL2000, XML Pin
Eddy Vluggen15-Jun-10 21:57
professionalEddy Vluggen15-Jun-10 21:57 
GeneralRe: SQL2000, XML Pin
kaasir_215-Jun-10 22:50
kaasir_215-Jun-10 22:50 
GeneralRe: SQL2000, XML Pin
Eddy Vluggen15-Jun-10 23:11
professionalEddy Vluggen15-Jun-10 23:11 
GeneralRe: SQL2000, XML Pin
kaasir_215-Jun-10 23:46
kaasir_215-Jun-10 23:46 
QuestionHelp Me out with this Query Pin
mrkeivan11-Jun-10 20:53
mrkeivan11-Jun-10 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.