HP Neoview SQL Reference Manual page 180

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

2.
Drop rows with unequal job codes.
EMPLOYEE Table
EMPNUM ...
1
. . .
75
. . .
178
. . .
207
. . .
568
3.
Drop rows with job codes not equal to 900, 300, or 420.
EMPLOYEE Table
EMPNUM ...
75
. . .
178
. . .
207
. . .
568
4.
Process the select list, leaving only four columns.
JOBDESC
SALESREP
. . .
SECRETARY
. . .
ENGINEER
. . .
SALESREP
The final result is shown in the output:
JOBDESC
------------
SALESREP
...
180
SQL Statements
JOBCODE ...
SALARY
100
175500
. . .
. . .
300
32000
. . .
. . .
900
28000
. . .
. . .
420
33000
. . .
. . .
300
39500
JOBCODE ...
SALARY
300
32000
. . .
. . .
900
28000
. . .
. . .
420
33000
. . .
. . .
300
39500
FIRST_NAME
TIM
. . .
JOHN
. . .
MARK
. . .
JESSICA
FIRST_NAME
LAST_NAME
------------
---------------
TIM
WALKER
JOB Table
JOBCODE
100
. . .
300
. . .
900
. . .
420
. . .
300
JOB Table
JOBCODE
300
. . .
900
. . .
420
. . .
300
LAST_NAME
SALARY
WALKER
32000
. . .
. . .
CHOU
28000
. . .
. . .
FOLEY
33000
. . .
. . .
CRINER
39500
SALARY
-----------
32000.00
JOBDESC
MANAGER
. . .
SALESREP
. . .
SECRETARY
. . .
ENGINEER
. . .
SALESREP
JOBDESC
SALESREP
. . .
SECRETARY
. . .
ENGINEER
. . .
SALESREP

Advertisement

Table of Contents
loading

Table of Contents