|
|

|
#22. Click on the EXHIBIT button and examine the structure of the BOOK_TITLE, COPY, and CHECK_OUT tables. You need to create the BOOKS_AVAILABLE view. These are the desired results: 1.Include the title of each book. 2.Include the availability of each book. 3.Order the results by the author. Evaluate this SQL statement CREATE VIEW books_available AS SELECT b.title, c.availability FROMbook_title b, copy c WHEREB.id = c.title_id ORDER BY b.author
What does the statement provide?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#26. Examine the table structures: EMP Table Name Null? Type
EMPNO NOT NULL NUMBER(4)
NAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SALARY NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NOT NULL NUMBER(2) TAX Table Name Null? Type
TAXGRADE NUMBER
LOWSAL NUMBER
HIGHSAL NUMBER You want to create a report that displays the employee details along with the tax category of each employee. The tax category is determined by comparing the salary of the employee from the EMP table to the lower and upper salary values in the TAX table. Which SELECT statement produces the required results?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#27. The PLAYER table contains these columns: ID NUMBER(9)
NAME VARCHAR(2)
MANAGER_ID NUMBER(9) In this instance, managers are players and you need to display a list of players. Evaluate these two SQL statements: SELECT p.name, m.name FROMplayer p, player m WHEREm.id = p.manager_id; SELECT p.name, m.name FROMplayer p, player m WHEREm.manager_id = p.id;
How will the results differ?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
|
|
ген. 0.072
|
Дата сервера 09:24 09-01-2009
|
Разработал Zip © 2006
|
|
 |
|
|