TAW_10_1 chapter 16, ABAP openSQL Flashcards

1
Q

What table types cannot be used with the ORDER BY clause?

A

Cluster and Pooled tables

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

Where does the ORDER BY clause occur?

A

After the where clause

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

Using ORDER BY PRIMARY KEY requires that what?

A

All of the fields in the primary key must be in the select list
Only single tables, no views or joins

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

Does MANDT need to be part of the SELECT clause if ORDER BY PRIMARY KEY is used?

A

Yes…at least that what it says

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

Could I use SELECT DISTINCT on BSEG?

A

No, it is a cluster table

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

What are the 5 aggregate functions that can be used in a select clause?

A
MIN (same type as field)
MAX (same type as field)
COUNT (same type as field)
AVG (float)
SUM (type  i)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can DISTINCT be used with the 5 aggregate functions?

A

Yes, for example Select SUM( DISTINCT

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

What are the restrictions of using the HAVING clause?

A

Must either use fields from the group by cluse or an aggregate function from the select

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

What are the two characters used in the LIKE clause

A

_ and %

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

What is the maximum number of tables in a join

A

50

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

What is the maximum number of subqueries in a select?

A

50

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