Oracle SQL

Oracle SQL for OCA 1z-052

Oracle SQL for OCA 1z-052


S. F.
This flashcard set delves into Oracle SQL, covering essential concepts like operators, datatypes, and record management. It focuses on querying techniques, including the use of the BETWEEN operator for filtering data within specified ranges, and explores the structure of tables like EMP, with columns such as ENAME, SALARY, and DEPTNO. The flashcards are particularly useful for database administrators and developers looking to enhance their SQL querying skills and understand the intricacies of data manipulation in Oracle databases.
Karten
64
Lernende
1
Sprache
Englisch
Kategorie
Informatik
Stufe
Andere
Erstellt / Aktualisiert
20.02.2017 / 20.02.2017

Lernkarten

EMPNO ENAME SALARY COMM DEPTNO
----------- ----------- ----------- ---------- -------------
 7369     SMITH           800                          20
 7499     ALLEN        1600       300            30
 7521     WARD        1250        500            30
 7566     JONES       2975                           20
 7654     MARTIN     1250      1400            30
 7698     BLAKE       2850                            30
 7782     CLARK       2450    24500            10
 7788     SCOTT       3000                            20
 7839     KING           5000    50000            10
 7844     TURNER   1500              0            30
 7876     ADAMS      1100                            20
 7900     JAMES         950                            30
 7902     FORD         3000                            20
 7934     MILLER      1300    13000            10

Refer to the listing of records in the EMP table in question 9. How many rows will the following
query return?

SELECT * FROM emp WHERE ename BETWEEN 'A' AND 'C'

A) 4

B) 2

C) A character column cannot be used in the BETWEEN operator

D) 3

D) Here, a character column is compared against a string using the BETWEEN operator, which is equivalent to
     ename >= 'A' AND ename <= 'C'

Column Datatype Length
------ ---------- -------
EMPNO      NUMBER       4
ENAME      VARCHAR2   30
SALARY    NUMBER        14,2
COMM       NUMBER        10,2
DEPTNO   NUMBER        2

Étudier