SQL 1
SQL 1
1. What is SQL
It stands for Structured Query Language. A programming language used for interaction with
relational database management systems (RDBMS).
2. What is a database?
A structured storage space where the data is kept in organized format in the form of many
tables .
3. What is the full form of RDBMS. Give some examples ? Which one you are using .
It stands for relational database Management system . Some examples of RDBMS are MySQL,
PostgreSQL, SQLserver Oracle etc. we used oracle 10g in our lab.
Data Definition Language (DDL) – to define and modify the structure of a database.
Data Manipulation Language (DML) – to access, manipulate, and modify data in a database.
Data Control Language (DCL) – to control user access to the data in the database and give or
revoke privileges to a specific user or a group of users.
Transaction Control Language (TCL) – to control transactions in a database.
Data Query Language (DQL) – to perform queries on the data in a database to retrieve the
necessary information from it.
6. Give some examples of common SQL commands of each type.
It stands for Database Management System, a software package used to perform various
operations on the data stored in a database, such as accessing, updating, wrangling, inserting,
and removing data.
There are various types of DBMS, such as
relational,
hierarchical,
object-oriented.
UPDATE table_name
SET col_1 = value_1, column_2 = value_2
WHERE condition;
11. How to delete a table from a database?
An entity is a real-world object, creature, place, or phenomenon for which the data can be
gathered and stored in a database table.
SUBSTR()
LENGTH()
REPLACE()
One-to-many – each record in one table corresponds to several records in another table
Many-to-many – each record in both tables corresponds to several records in another table
A data warehouse is a large store of accumulated data, from a wide range of sources, within an
organization.