Database independent code to data Flashcards
Name the 3 parts of SQL
DML - Data manipulation
DDL - Data definition
DCL - Data Control
What parts of SQL does Open SQL cover?
A small part of DML.
What part of SQL is handled in SAP by the data dictionary
Only a small part of DDL
How much of DCL is implemented in SAP prior to NW 7.4 sp05?
Almost nothing. The DCL would normally be used for user control but in SAP the database only knows one user
What is the single database user of an SAP system
The user is SAP{sid} or SAPR3. All data is stored in this accounts schema
What are two examples of differences in new Open SQL
Fields must be comma separated, Host variables must be used
In new Open SQL mathematical operations are available on all operand types?
False, there are many limitations. For example, MOD is only allowed on types I and P without decimals. I believe AVG must always be cast to type F
The CDS consist of what three things?
DDL
QL (from the ABAP code)
DCL
In comparison to ABAP DICTIONARY views, what additional functions do CDS views
Outer joins and unions are supported
Calculation expressions, aggregations, and groupings are supported
Nested views are supported
From least to most advanced, list the ways views can be created
SE11
CDS
SQL92
HANA Column views
CDS views support all facets of SQL92 and HANA specific features?
That’s a big “NO” on both accounts
What is the path in eclipse to create a CDS
From the ABAP project
New->Other ABAP object->Dictionary->Data Definition
It is not possible to see the CDS view in the ABAP dictionary?
False, the CDS view shows up in the dictionary as a DDL SQL View with the name given in the CDS definition as the sqlViewName.
The sqlViewName is always the same as the name given in the “define view” statement?
It is never the same. Both names must be unique across the system
There are two ways to see the native SQL used to create the CDS view on the database. What are they?
From the ABAP dictionary extras->create
From the CDS definition press F3 while on the sqlViewName. Click on the presented link
CDS views cannot be buffered!
Of course they can
buffering. status
buffering. type
How can reference information, such as currency and unit of measure info be added to a CDS definition?
Using annotations such as
@semantics.amount.currencyCode: ‘CURRENCY’
@semantics.currencyCode: true
By default, CDS views are client dependent?
True, but this can be changed on each individual CDS by setting
@ClientDependent: ‘false’
In a CDS can CAST expressions be nested?
No