SQL Intview Ques
SQL Intview Ques
Ans Database management system DBMS is a software that is used to define create and
maintain a database and provide control access to data.
RDBMS is used to store or manage only the data that is in the form of tables .
Example of RDBMS is my SQL, postgre SQL, IBM DB2, SQL Server, Oracle, Microsoft Access,
Amazon redshift etc.
Ans-A primary key is a column or a group of colums that uniquely identifies the rows of data
in that table.
Ans - .A FOREIGN KEY is a column (or a group of columns) in one table that refers to the
PRIMARY KEY in another table.
.The table with foreign key is called the child table,and the table with the primary key is
called the referenced or parent table.
Ans- .SQL constraints are used to specify rules for the data in a table.
.PRIMARY KEY- A combination of a NOT NULL and UNIQUE.Uniquely identifies each row
in a table.
Ans
Once the tables are created and database is generated using DDL
commands, manipulation inside those tables and databases is done using
DML commands. The advantage of using DML commands is, if in case
any wrong changes or values are made, they can be changes and rolled
back easily. DML commands includes :
Data query language consists of only one command over which data
selection in SQL relies. SELECT command in combination with other SQL
clauses is used to retrieve and fetch data from database/tables on the
basis of certain conditions applied by user.
Ans-