how to write an optimized query

India
June 8, 2007 5:50am CST
i have started learning oracle,writing simple queries i dont know how to write an optimized query.is there anyone who could help me to this....... thanks
5 responses
@mathss1 (1181)
• United States
10 Dec 09
with a keyboard, i guess
@ashu2077 (88)
• United States
13 Jun 07
Read about Functional indexes. These are great for resolving tuning issues. I think it was introduced in 8i database version. Ashutosh
• India
11 Jun 07
When you say you want to write optimized query that means that you are looking for perfect query which executes in less time. By default oracle has CBO cost based optimization. Still you can use hits to write optimized SQL. There are some plsql resource provided in the following link. http://easyapps.blogspot.com Its good that you are learning Oracle, its future for any techie.
@ashu2077 (88)
• United States
13 Jun 07
Also get a book on tuning from oracle press. ash
@ashu2077 (88)
• United States
13 Jun 07
Read about explain plan. Cost and rule based optimizers Indexes Internet is your best resource to learn Tuning. Regards Ashutosh Parekh (Oracle DBA)