Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
7Activity
0 of .
Results for:
No results containing your search query
P. 1
Guidelines and Good Practice for Developing SQL

Guidelines and Good Practice for Developing SQL

Ratings: (0)|Views: 253 |Likes:
Published by api-3814149
GUIDELINES AND GOOD PRACTICE FOR DEVELOPING SQL
GUIDELINES AND GOOD PRACTICE FOR DEVELOPING SQL

More info:

Published by: api-3814149 on Oct 19, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Guidelines and good practice
Guide for developing SQL
Page 1
GUIDELINES AND GOOD PRACTICE GUIDE
FOR DEVELOPING SQL
Page 11.0 Introduction
2.0 SQL Layout
2.1
General layout
2.2
SQL Keywords
2.3
Constants and variables.
2.4
Outer Joins
2.5
Table aliases.
2.6
Ordering of where clauses.
3.0 Database selects.
3.1
Ordering of the from clause.
3.2
Unintentionally disabling indexes.
3.3
Intentionally disabling indexes.
3.4
Investigate Rewriting the Query
3.5
Use of the Exists operator
3.6
Don't perform unnecessary joins.
3.7
Resource intensive operations
3.8
Use realistic test data.
3.9
Use of != operator
3.10
Use Oracle's trace facility.
3.11
Management of oracle cursors.
3.12
The 10,15,20 percent rule
4.0 Insert statements.
5.0 Database updates.
6.0 Optimising oracle queries.
6.1
Table access.
6.2
Indexes and Null.
6.3
Indexes and 'NOT=' predicates.
6.4
Group by and predicate clauses.
6.5
Multiple index queries.
6.6
When indexes cannot be merged
6.7
Suppression of indexes for performance
6.8
Concatenated indexes
6.9
Or optimisation
6.10
Non correlated sub queries
6.11
Correlated sub queries

Appendix A Query Paths Ranked in Order of Speed
Appendix B Tables used in the examples.
Appendix C Correlated updates and PL/SQL.
Appendix D Guidelines for outer join syntax

Page 2Appendix E The ten commandments for fast queries.
Appendix F Oracle trace facility.
Page 31.0Introduction

The purpose of this guide is to present standards
and guideline for the wms development team, which will
ensure that quality SQL is produced. The rules on SQL
layout are important, because, they improve the clarity
of the statements.

Developers should realise that, as in third

generation programming, the first method of writing a
program is not necessarily the best, the same is true
of fourth generation SQL queries.

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
nathan_pfelix liked this
lionkingsr liked this
S Pongsa Metrey liked this
chinmay liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->