10. Retrieving data with select statements Flashcards

1
Q

SQL

A

is a language specifically designed for use with relational database systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQL three main components

A

Data manipulation language (DML), data definition language (DDL) and data control language (DCL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Data manipulation language

A

For retrieving and updating information in the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data Definition Language (DDL)

A

For defining database objects and specifying the structure of the data in the database. In SAP, these functions are handled primarily by the ABAP Dictionary and the Database Utility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data Control Language (DCL)

A

For controlling access to DML and DDL functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data Control Language (DCL)

A

For controlling access to DML and DDL functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The DML provides the four basic data operations

A
  1. Select (retrieve)
    2. Insert
    3. Update
    4. Delete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Open SQL

A

Open SQL is a subset of standard SQL with a specific syntax recognised by ABAP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SELECT STATEMENT

A

is used to read records from a database table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Tables statement

A

Serves two purposes: It declares to the program which ABAP Dictionary tables will be accessed.
and
It creates a work area where individual records from the table can be stored. The work area is an area in memory, just like a program variable, and it is sized so that it can hold exactly one record from the specified table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

WHERE clause

A

The WHERE clause restricts the records that are retrieved from the database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SY-SUBRC

A

is set after each SELECT from the database. If at least one record was found that matched the selection criteria, SY-SUBRC is set to zero. Otherwise, SY-SUBRC is set to a non-zero value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

INTO

A

When selecting individual columns from a database table, an INTO clause is required. Data is not automatically placed into the corresponding fields of the table work area.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

INTO CORRESPONDING-FIELDS

A

The SELECT … INTO CORRESPONDING-FIELDS OF replaces coding the individual fields that the values are selected into from the database table and results in code that is easier to read without any performance losses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly