лабораторная работа 2

Download лабораторная работа 2

Post on 07-Jul-2015

123 views

Category:

Education

0 download

Embed Size (px)

TRANSCRIPT

  • 1. 2 DQL: Copyright Avdeyev V.A. 2008

2. 2 : SQL DQL : 3- . SQL PL/SQL Developer SELECT 2Copyright Avdeyev V.A. 2008 3. SQL (1/2) SQL, , 70- . ( 1974 .) IBM System R. SEQUEL (Structured English Query Language). : ; ; ; , ; ; , . 2Copyright Avdeyev V.A. 2008 4. SQL (2/2) 1982 . - SQL (ANSI) 1985 . - 1987 . (ISO) SQL/86. 1989 . SQL/86 - ANSI/ISO SQL/89 1992 . - SQL/92 , ( ) ( , ), 1995 . - SQL/CLI - 1996 . - SQL/PSM - 1999 . - SQL:1999 (SQL/Framework, SQL/Foundation) 2003 . - SQL:2003 2Copyright Avdeyev V.A. 2008 5. (1/3) DEPARTMENT 2Copyright Avdeyev V.A. 2008 6. (2/3) EQUIPMENT 2Copyright Avdeyev V.A. 2008 7. (3/3) TP 2Copyright Avdeyev V.A. 2008 8. , . , , . 30 . , (_); ; ; ; , ; , a , . 2Copyright Avdeyev V.A. 2008 9. (1/3) DEPARTMENT 2Copyright Avdeyev V.A. 2008 10. (2/3) EQUIPMENT 2Copyright Avdeyev V.A. 2008 11. (3/3) TP 2Copyright Avdeyev V.A. 2008 12. SQL SQL " ". , SQL ? , , , . ? SQL . , , . SELECT 2Copyright Avdeyev V.A. 2008 13. SELECT (Department) SELECT DEP_DESC, DEP_NAME SELECT DEP_NAME, DEP_DESC SELECT * FROM Department FROM Department FROM Department SELECT , , . , DEP_NAME, DEP_DESC , . , , FROM Department , SELECT, . 2Copyright Avdeyev V.A. 2008 14. DISTINCT () , SELECTSELECT EQ_ID FROM TP 2SELECT DISTINCT EQ_ID FROM TPCopyright Avdeyev V.A. 2008 15. WHERE SELECT, , . , SELECT * FROM TP WHERE EQ_ID =87' 2Copyright Avdeyev V.A. 2008 16. , EQUIPMENT, 7. , DEPARTMENT : DEP_NAME, DEP_DESC DEP_RATING. , EQ_RATING, EQ_MODEL 7. , TP. 2Copyright Avdeyev V.A. 2008