Intro to ABAP - Chapter 05_V1.ppt
Transcript of Intro to ABAP - Chapter 05_V1.ppt
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
1/8
IBM Global Services
© Copyright IBM Corporation 2003
DB
Retrieving Information From the Database
Data
J o h n S m i t h M a
r y
S t i l e s
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
2/8
IBM Global Services
© Copyright IBM Corporation 2003
Open SQL
!rta"le a#r!ss vari!us data"ases
$%en S&L ' a su"set !( standard S&L
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
3/8
IBM Global Services
© Copyright IBM Corporation 2003
The Basic SL!T Statement
DB
MaryStiles
John Smith
Work Area
SELECT *!"M #table na$e% &'(()
E+SELECT(
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
4/8
IBM Global Services
© Copyright IBM Corporation 2003
"ample #sing the SL!T Statement
T,BLES- .,/(
SELECT *
!"M .,/(
!ITE- 1 .,/.!4 .,/,ME/(
E+SELECT(
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
5/8
IBM Global Services
© Copyright IBM Corporation 2003
The SL!T Statement $ith a %&R !la'se
T,BLES- .,/(
SELECT *
!"M .,/
5E!E .T".+ 6 7000/8(
!ITE- 1 .,/.!4 .,/,ME/(
E+SELECT(
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
6/8
IBM Global Services
© Copyright IBM Corporation 2003
S()S#BR!
T,BLES- .,/(
SELECT *
!"M .,/
5E!E .T".+ 6 7000/8(
!ITE- 1 .,/.!4 .,/,ME/(
E+SELECT(
I S9SB!C #% 0(
!ITE- 1 7o recor:s ;o
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
7/8
IBM Global Services
© Copyright IBM Corporation 2003
The I*TO !la'se
T,BLES- .,/(
SELECT .!
,ME/
!"M .,/
IT" =.,/.!4
.,/,ME/>(
!ITE - 1 .,/.!4 .,/,ME/(
E+SELECT(
I S9SB!C #% 0(
!ITE- 1 7o recor:s ;o
-
8/17/2019 Intro to ABAP - Chapter 05_V1.ppt
8/8
IBM Global Services
© Copyright IBM Corporation 2003
I*TO !ORRS+O*DI*,)FILDS
T,BLES- .,/(
SELECT .!
,ME/
!"M .,/
IT" C"!!ES?"+IGIEL+S
" .,/(
!ITE - 1 .,/.!4 .,/,ME/(
E+SELECT(
I S9SB!C #% 0(
!ITE- 1 7o recor:s ;o