What are the Data languages
Data Query Language (DQL)
Data Control Language (DCL)
Data Definition Language (DDL)
Data Manipulation Language (DML)
Used to query the database for information.
Data Query Language
Get information that is already stored.
Data Query Language
What command is used in DQL
Select
It Retrieves certain records from one or more tables in DQL
Select
Used for defining database schemas
Data Definition Language
What are the commands used in DDL
Create
Alter
Drop
Creates a new table, a view of a table, or other object in database in DDL
Create
Modifies an existing database object, such as a table in DDL
Alter
Deletes an entire table, a view of a table or other object in the database in DDL
Drop
Use to create (completely define) a database, modify its structure, and destroy it when you no longer need it.
Data Definition Language
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.
Data Definition Language (DDL)
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.
Data Definition Language (DDL)
Delete all the data in schema objects without removing the structure of these objects (___________) in DDL
TRUNCATE
Used for controlling access to the data in database.
Data Control Language (DCL)
User & permission management
Data Control Language (DCL)
Commands or Statements in DCL?
Grant
Revoke
Commit
Rollback
Gives a privilege to user in DCL
Grant
Takes back privileges granted from user in DCL
Revoke
provides security for your database; the amount of protection depends on the implementation.
Data Control Language (DCL)
These commands protect the database from harm, both accidental and intentional.
DCL Statements or Commit, Rollback, Grant, and Revoke
manage the changes made by DML statements and group DML statements into transactions.
Transaction control statements
Used for inserting, updating and deleting data from the database
Data Manipulation Language (DML)
Statements you can use in DML are?
INSERT
UPDATE
DELETE
MERGE
SELECT