TAW_11 Chapter 4, ABAP open SQL Flashcards
What are the two components of the SAP database interface (DBSS)
ABAP Open SQL interface and native SQL interface
What are the tasks of the ABAP OPEN SQL interface?
Convert OPEN SSQL to native sql
Client handling
Managing the table buffer
What tcode is used for sql tracing
ST05
There are two types of database optimizers. What are they?
Rule based and Cost based
What is the recommended maximum size of a buffered table?
Less than 10mb
Will secondary indexes use the table buffers?
Nope
What table stores info for possible buffered table changes?
DDLOG
What transaction contains the buffer trace?
ST05
When can ORDER BY not be used?
Cluster and Pooled tables
What are the prereqs for ORDER BY PRIMARY KEY?
All primary key fields including MANDT must be in the field list. Only a single transparent table can be in the FROM
When using DISTINCT on pooled and cluster tables what syntax must be used?
SELECT DISTINCT *
You cannot select individual columns
What are the 5 aggregate expressions for open SQL
MAX( col ) MIN( col ) COUNT( * ) RETURNED AS TYPE I AVG( col ) RETURNED AS TYPE F SUM
Which aggregate expressions can be combined with DISTINCT?
All of them, but min, max, avg , and sum make little sense primarily it is used with count
Can a GROUP BY be used with SELECT *?
No, a field list must exist
Can group by be used with POOL or CLUSTER tables
no