This document provides an introduction to SQL and covers topics like SQL data types, data definition language (DDL), data manipulation language (DML), and data control language (DCL). It includes examples of creating tables for DVDs, customers, directors, actors, and relationship tables. It concludes with a quiz on SQL fundamentals.
Handwritten Text Recognition for manuscripts and early printed texts
4 summary
1. WEEK 4 Introduction to SQL:
summary
Real-life example
Concept of SQL:
SQL Data Types:
String types/ Numeric types/ Date-Time types
Characteristic of DDL:
Characteristic of DML :
Characteristic of DCL :
quiz
2. WEEK 4 Introduction to SQL:
summary
Real-life example
CREATE TABLE Dvd
(
DVDId int NOT NULL,
Title varchar(100) NOT NULL,
YearPublished int NOT NULL
PRIMARY KEY (DVDId)
);
CREATE TABLE Customer
(
CustomerId int NOT NULL,
LastName varchar(25),
FirstName varchar(25),
Address varchar(50),
PhoneNo varchar(10)
PRIMARY KEY (CustomerId)
);
quiz
3. WEEK 4 Introduction to SQL:
summary
CREATE TABLE Director
(
DirectorId int NOT NULL,
LastName varchar(25),
FirstName varchar(25),
Address varchar(50),
PhoneNo varchar(10)
PRIMARY KEY (DirectorId )
);
CREATE TABLE Actor
(
ActorId int NOT NULL,
LastName varchar(25),
FirstName varchar(25),
Address varchar(50),
PhoneNo varchar(10)
PRIMARY KEY (ActorId )
);
Real-life example
quiz
4. WEEK 4 Introduction to SQL:
summary
Real-life example
CREATE TABLE Requests
(
DVDId int NOT NULL,
CustomerId int NOT NULL,
DateRequest datetime NOT NULL
);
CREATE TABLE Directed
(
DVDId int NOT NULL,
DiretorId int NOT NULL,
YearDirected int NOT NULL
);
CREATE TABLE PlaysIn
(
DVDId int NOT NULL,
ActorId int NOT NULL,
YearPlaysIn int NOT NULL
);
quiz
5. WEEK 4 Introduction to SQL:
summary
Real-life example
quiz
1. SQL stands for? :
A. Static Query language
B. Simplified query language
C. Standard Query Language
D. Structured Query Language
E. Simplex Query Language
2. The company that created SQzL is:
A. Microsoft
B. Oracle
C. IBM
D. Informix
E. Borland
Enter answer,,,.
6. WEEK 4 Introduction to SQL:
summary
Real-life example
quiz
1. SQL stands for? :
A. Static Query language
B. Simplified query language
C. Standard Query Language
D. Structured Query Language
E. Simplex Query Language
2. The company that created SQzL is:
A. Microsoft
B. Oracle
C. IBM
D. Informix
E. Borland
answer is:
1. D
2. C
7. WEEK 3 Relational Data Model Concepts:
summary
Real-life example
quiz
3. Which of the following is not a SQL database manipulation statement?
A. CREATE TABLE
B. UPDATE
C. DELETE
D. INSERT
4. The WHERE clause is used to extract only those records that fulfill a specified
criterion:
A. True
B. False
5. The ORDER BY keyword is used to retrieve records for specified columns:
A. True
B. False
Enter answer,,,.
8. WEEK 3 Relational Data Model Concepts:
summary
Real-life example
quiz
3. Which of the following is not a SQL database manipulation statement?
A. CREATE TABLE
B. UPDATE
C. DELETE
D. INSERT
4. The WHERE clause is used to extract only those records that fulfill a specified
criterion:
A. True
B. False
5. The ORDER BY keyword is used to retrieve records for specified columns:
A. True
B. False
answer is:
3. A
4. A
5. B