0% found this document useful (0 votes)
8 views

Database Interview Material

almost all IMP Quetions

Uploaded by

Ruchi Binayake
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Database Interview Material

almost all IMP Quetions

Uploaded by

Ruchi Binayake
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Database:

A database is a collection of data that is organized, which is also called structured data.
Databases can contain any type of data, such as numbers, words, images, videos, and files.

A Database Management System (DBMS) :


is a software system that is designed to manage and organize data in a structured manner. It
allows users to create, modify, and query a database

Database Languages
 Data Definition Language
 Data Manipulation Language
 Data Control Language
 Transactional Control Language
1. Data Definition Language

DDL is the short name for Data Definition Language, which deals with database schemas and
descriptions, of how the data should reside in the database.

SQL statements:
 CREATE: to create a database and its objects like (table, index, views, store
procedure, function, and triggers)
 ALTER: alters the structure of the existing database
 DROP: delete objects from the database
 TRUNCATE: remove all records from a table, including all spaces allocated for the
records are removed
 COMMENT: add comments to the data dictionary
 RENAME: rename an object

2.Data Manipulation Language:


DML is the short name for Data Manipulation Language which deals with data manipulation
 SELECT: retrieve data from a database
 INSERT: insert data into a table
 UPDATE: updates existing data within a table
 DELETE: Delete all records from a database table

3.Data Control Language


DCL is short for Data Control Language which acts as an access specifier to the database.
 GRANT: grant permissions to the user for running DML(SELECT, INSERT, DELETE,…)
commands on the table
 REVOKE: revoke permissions to the user for running DML(SELECT, INSERT, DELETE,…)
command on the specified table

4.Transactional Control Language


TCL is short for Transactional Control Language which acts as an manager for all types of
transactional data and all transactions.
 Roll Back: Used to cancel or Undo changes made in the database
 Commit: It is used to apply or save changes in the database
 Save Point: It is used to save the data on the temporary basis in the database
SQL is a programming language used to interact with relational database.
Perform CRUD:
Create
Read
Update
Delete

You might also like