Documente Academic
Documente Profesional
Documente Cultură
pg 50. Review Questions 1. 2. 3. 4. 5. 6. 7. Data dictionary - is a collection of objects the DBMS manages to maintain information about the database. The only clauses required for the SELECT statement are SELECT and FROM. SELECT statement enable users to retrieve data from tables. Return all data, all columns from a specific table. To better describe the data displayed in the output, we used a column alias. When you want change a heading of the data column in output. When you want change, a heading and you need add AS between the select column and your new name of the column, do not use comma. 8. If the column alias contains spaces or specific symbol, or if you do not want it to appear in all uppercase letters, you must enclose it in quotation marks. 9. I can use two vertical bars "||" between the fields, which I combining, in SELECT statement. 10. The NULL value indicates the field is empty.
pg 51. Multiple Choice 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) 12) 13) 14) 15) 16) 17) 18) 19) 20) C D D B B C C C D D C C D D C A A B D C
To easy understanding, open the second part. It was same, but columns do not change. pg 54. Hands-On Assigments 1.
ISBN
TITLE
PUBDATE
PUBID
COST
---------- ------------------------------ --------- ---------- ---------- ---------- ---------- -----------1059831198 BODYBUILD IN 10 MINUTES A DAY 21-JAN-05 0401140733 REVENGE OF MICKEY 14-DEC-05 1 4 14.2 2 3 4 18.75 22 37.8 31.4 12.5 30.95 FITNESS
4981341710 BUILDING A CAR WITH TOOTHPICKS 18-MAR-06 8843172113 DATABASE IMPLEMENTATION 3437212490 COOKING WITH MUSHROOMS 04-JUN-03 28-FEB-04
14 rows selected
2.
TITLE -----------------------------BODYBUILD IN 10 MINUTES A DAY REVENGE OF MICKEY BUILDING A CAR WITH TOOTHPICKS DATABASE IMPLEMENTATION COOKING WITH MUSHROOMS
14 rows selected
3.
TITLE
Publication Date
BUILDING A CAR WITH TOOTHPICKS 18-MAR-06 DATABASE IMPLEMENTATION COOKING WITH MUSHROOMS 04-JUN-03 28-FEB-04
14 rows selected
4.
STATE
1001 EASTPOINT FL 1002 SANTA MONICA CA 1003 TALLAHASSEE FL 1004 BOISE 1005 SEATTLE ID WA
20 rows selected
5.
JANE TOMLIN
010-410-0010
5 rows selected
6.
8 rows selected
7.
1007
14 rows selected
8.
CATEGORY
TITLE
FAMILY LIFE REVENGE OF MICKEY CHILDREN COMPUTER COOKING BUILDING A CAR WITH TOOTHPICKS DATABASE IMPLEMENTATION COOKING WITH MUSHROOMS
14 rows selected
9.
LNAME||','||FNAME ---------------------SMITH, SAM JONES, JANICE AUSTIN, JAMES MARTINEZ, SHEILA KZOCHSKY, TAMARA
14 rows selected
10.
SELECT order#, item#, isbn, quantity, paideach, quantity*paideach "Item Total" FROM orderitems;
ORDER#
ITEM# ISBN
---------- ---------- ---------- ---------- ---------- ---------1000 1001 1001 1002 1003 1 3437212490 1 9247381001 2 2491748320 1 8843172113 1 8843172113 1 1 1 2 1 19.95 31.95 85.45 55.95 55.95 19.95 31.95 85.45 111.9 55.95
32 rows selected