Warning: include_once(http://erpgenie.com/_borders/topabap.htm) [function.include-once]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52

Warning: include_once() [function.include]: Failed opening 'http://erpgenie.com/_borders/topabap.htm' for inclusion (include_path='.:') in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52
Home arrow Tips and Tricks arrow ABAP Dictionary arrow SQL Performance DOs and DON'Ts
SQL Performance DOs and DON'Ts PDF Print E-mail
User Rating: / 3
PoorBest 
Written by Anon.   
Sunday, 11 March 2007
DO

DON’T

Select <fields> from <table>.

Select * from <table>.

SELECT <fields> INTO TABLE <internal table>

SELECT <fields> INTO   CORRESPONDING FIELDS OF TABLE <internal table>

Select <field> from <table> Up To 1 Rows <structure>.

Select count(*) from <table>.

Select <fields> from <table> into table <internal table>.

Sort <internal table> By <sort fields>.

Select <fields> from <table> into table <internal table> order by <fields>.

Select <fields> from <table> into table <internal table>.

Sort <internal table>.

Delete Adjacent Duplicates from <internal table>.

Select Distinct <field> from <table> into table <internal table>.

 

Addition CLIENT SPECIFIED in SQL’s

OPEN SQL.

Native SQL.

Joins**

Nested Select / Logical Databases or Selects inside a loop.

 

 

SELECT SINGLE FOR UPDATE**

IS NULL, IS NOT NULL, LIKE or NOT LIKE**

 

Select single**

 

 

Group By or Having** or

Aggregate Functions (AVG, MAX, MIN, SUM)**

Subqueries**

 

Use ‘For All Entries’ technique as a second alternate to JOINs.

 

Use alternate index tables for data access

 


Related Items:

 
< Prev   Next >

Google Search

Google Ads


Warning: include(http://erpgenie.com/_borders/bottom.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/includes/footer.php on line 22

Warning: include() [function.include]: Failed opening 'http://erpgenie.com/_borders/bottom.htm' for inclusion (include_path='.:') in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/includes/footer.php on line 22