Lesson 3 Flashcards

(36 cards)

1
Q

What are the Data languages

A

Data Query Language (DQL)
Data Control Language (DCL)
Data Definition Language (DDL)
Data Manipulation Language (DML)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Used to query the database for information.

A

Data Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Get information that is already stored.

A

Data Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used in DQL

A

Select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It Retrieves certain records from one or more tables in DQL

A

Select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Used for defining database schemas

A

Data Definition Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the commands used in DDL

A

Create
Alter
Drop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Creates a new table, a view of a table, or other object in database in DDL

A

Create

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Modifies an existing database object, such as a table in DDL

A

Alter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Deletes an entire table, a view of a table or other object in the database in DDL

A

Drop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Use to create (completely define) a database, modify its structure, and destroy it when you no longer need it.

A

Data Definition Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Create, alter, and drop schema objects and other database structures, including the database itself and database users. Most ______ statements start with the keywords CREATE, ALTER, or DROP.

A

Data Definition Language (DDL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Use to create, change, or destroy the basic elements of a relational database. Basic elements include tables, views, schemas, catalogs, clusters, and possibly other things as well.

A

Data Definition Language (DDL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Delete all the data in schema objects without removing the structure of these objects (___________) in DDL

A

TRUNCATE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Used for controlling access to the data in database.

A

Data Control Language (DCL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

User & permission management

A

Data Control Language (DCL)

17
Q

Commands or Statements in DCL?

A

Grant
Revoke
Commit
Rollback

18
Q

Gives a privilege to user in DCL

19
Q

Takes back privileges granted from user in DCL

20
Q

provides security for your database; the amount of protection depends on the implementation.

A

Data Control Language (DCL)

21
Q

These commands protect the database from harm, both accidental and intentional.

A

DCL Statements or Commit, Rollback, Grant, and Revoke

22
Q

manage the changes made by DML statements and group DML statements into transactions.

A

Transaction control statements

23
Q

Used for inserting, updating and deleting data from the database

A

Data Manipulation Language (DML)

24
Q

Statements you can use in DML are?

A

INSERT
UPDATE
DELETE
MERGE
SELECT

25
Creates a record in DML
Insert
26
Modifies records in DML
Update
27
Deletes records in DML
Delete
28
These statements can consist of a variety of parts, including multiple clauses.
DML Statements
29
changes the structure of a table in DML
ALTER TABLE
30
adds one or more rows to the table.
Insert
31
enable you to query or change the contents.
DML Statements
32
Add new rows of data into a table or view by specifying a list of column values or using a sub query to select and manipulate existing data.
Insert
33
Change column values in existing rows of a table or view
Update
34
Update or insert rows conditionally into a table or view
Merge
35
Remove rows from tables or views
Delete
36
Retrieve or fetch data from one or more tables or views
Select