Save
Computer Science
Databases
SQL
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
willow
Visit profile
Cards (19)
What is SQL used for?
To manage data in a
relational database
View source
What can you do with SQL in relation to data?
Retrieve
,
update
,
insert
, and
delete
data
View source
What does VARCHAR(n) represent in SQL?
Variable length
string
of
max
length n
View source
What does CHAR(n) represent in SQL?
Fixed
length
string
of n characters
View source
What data type is used for dates in SQL?
DATE
View source
What data type is used for floating point decimal numbers in SQL?
DOUBLE
View source
What does BLOB stand for in SQL?
Binary Large Object
View source
What is the purpose of the CREATE TABLE command?
To define a
database
table
View source
How would you insert a new student record in SQL?
Using
INSERT INTO
command
View source
What SQL command updates a student's first name and age?
UPDATE
student
SET
firstName = "India", age = 14
View source
What does the SELECT command do in SQL?
Retrieves
data from a database
View source
How do you terminate SQL commands?
With a
semi-colon
View source
What type of language is SQL?
Declarative
language
View source
What are the types of SQL languages and their purposes?
Data
Definition
Language (DDL):
Define
and
modify
database
Data
Query
Language (DQL): Retrieve data from database
Data
Manipulation
Language (DML):
Insert
,
update
,
delete
data
Data
Control
Language (DCL):
Grant
and
revoke
permissions
Data
Transmission
Language (DTL): Manage
transactions
View source
What is the purpose of Data Definition Language (DDL)?
To define and modify a
database
View source
What does Data Query Language (DQL) allow you to do?
Retrieve data from a
database
View source
What is the function of Data Manipulation Language (DML)?
Insert
,
update
, and delete data
View source
What does Data Control Language (DCL) manage?
Access permissions for
database
View source
What is the purpose of Data Transmission Language (DTL)?
Manage
transactions
View source