TAILIEUCHUNG - Lecture Database concepts (3rd Edition): Chapter 3 - David M. Kroenke, David J. Auer

Chapter 3 - Structured Query Language. After completing this unit, you should be able to: Learn basic SQL statements for creating database structures, learn SQL statements to add data to a database, learn basic SQL SELECT statements and options for processing a single table, learn basic SQL SELECT statements for processing multiple tables with subqueries,. | Structured Query Language Chapter Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3rd Edition Chapter Objectives Learn basic SQL statements for creating database structures Learn SQL statements to add data to a database Learn basic SQL SELECT statements and options for processing a single table Learn basic SQL SELECT statements for processing multiple tables with subqueries Learn basic SQL SELECT statements for processing multiple tables with joins Learn SQL statements to modify and delete data from a database Learn SQL statements to modify and delete database tables and constraints 3- Structured Query Language Structured Query Language Acronym: SQL Pronounced as “S-Q-L” [“Ess-Que-El”] Also pronounced as “Sequel” Originally developed by IBM as the SEQUEL language in the 1970s SQL-92 is an ANSI national standard adopted in 1992 3- SQL Defined SQL is not a programming language, but rather a data sub-language SQL is comprised of: A data definition language (DDL) Used to define database structures A data manipulation language (DML) Data definition and updating Data retrieval (Queries) There are other SQL functions not covered in this chapter Concurrency control [See Chapter 6] Transaction control [See Chapter 6] 3- SQL for Data Definition The SQL data definition statements include CREATE To create database objects ALTER To modify the structure and/or characteristics of database objects DROP To delete database objects 3- SQL for Data Definition: CREATE Creating database tables The SQL CREATE TABLE statement CREATE TABLE EMPLOYEE( EmpID Integer PRIMARY KEY, EmpName Char(25) NOT NULL ); 3- SQL for Data Definition: CREATE with CONSTRAINT I Creating database tables with PRIMARY KEY constraints The SQL CREATE TABLE statement The SQL CONSTRAINT keyword CREATE TABLE EMPLOYEE( EmpID Integer NOT NULL, EmpName Char(25) NOT NULL CONSTRAINT Emp_PK PRIMARY KEY(EmpID) ); 3- SQL for Data Definition: CREATE with CONSTRAINT II Creating database tables

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.