0% found this document useful (0 votes)
72 views5 pages

Class X Information Technology Code402 - Unit3 - Important - QA

This document provides information about relational database management systems (RDBMS) including basic concepts like tables, rows, columns, primary keys, and relationships. It also describes data definition language (DDL) and data manipulation language (DML) where DDL is used to define the database schema and DML allows users to query and manipulate data. Examples are given of SQL commands for creating tables, inserting data, updating records, and deleting rows from tables. Key terms like datatypes, primary keys, and one-to-one, one-to-many, and many-to-many relationships are also defined.

Uploaded by

chkanika61
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views5 pages

Class X Information Technology Code402 - Unit3 - Important - QA

This document provides information about relational database management systems (RDBMS) including basic concepts like tables, rows, columns, primary keys, and relationships. It also describes data definition language (DDL) and data manipulation language (DML) where DDL is used to define the database schema and DML allows users to query and manipulate data. Examples are given of SQL commands for creating tables, inserting data, updating records, and deleting rows from tables. Key terms like datatypes, primary keys, and one-to-one, one-to-many, and many-to-many relationships are also defined.

Uploaded by

chkanika61
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Class X Information Technology Code(402)

UNIT-3: Relational Database Management System(Basic) (Important Questions)

Fill in the blanks:


1. A database is an organized collection of data.
2. A database management system is a software package that can be used for
creating and managing databases.
3. A RDBMS is a database management system that is based on the relational
model.
4.Three popular DBMS software are SQL Server, Sybase & MySQL.
5. A primary key is a unique value that identifies a row in a table.
6. Composite Key is a combination of ____two____ columns.
Short Answer Questions
1. What does DBMS stands for?
Ans : Database Management System
2. What does RDBMS stands for?
Ans: Relational Database Management System.
3. How is data organized in a RDBMS?
Ans: In RDBMS data organized into tables.

Fill in the blanks:


1. A table is a set of data elements that is organized using a model of vertical
columns and horizontal rows.
2. A column is a set of data values of a particular type, one for each row of the
table.
3. A tuple represents a single, data item in a table.
4. Datatype are used to identify which type of data we are going to store in the
database.
WWW.STUDYKEEDA.IN 1
5. There are two ways to create a table.
Short Answer Questions
1. Why are data types used in DBMS /RDBMS?
Ans : Datatypes are used to identify which type of data (value) we are going to
store in the database. Fields themselves can be of different types depending
on the data they contain.
Data types in OpenOffice base are broadly classified into five categories listed
below.
• Numeric Types
• Alphanumeric Types
• Binary Types
• Date time
• Other Variable type
2. List datatypes available in Numeric Datatype?
Ans : Numeric data types are used for describing numeric values for the field
used in the table of a database. Numeric data types in a database can be used
for storing information such as mobile number, roll number, door number,
year of school admission, true or false statements, statistical values, etc. The
different types of numeric data types available are listed here.
1. BOOLEAN
2. TINYINT
3. SMALLINT
4. INTEGER
5. BIGINT
6. NUMERIC
7. DECIMAL
8. REAL
9. FLOAT
10. DOUBLE
Q. How many types of relationships can created in tables?
Ans : There are three types of relationships which can be created in tables:

WWW.STUDYKEEDA.IN 2
1. ONE to ONE
2. ONE to MANY OR MANY to ONE
3. MANY to MANY
Fill in the blanks :
1. The types of languages used for creating and manipulating the data in the
Database are DDL & DML
2. A Queries is a standard for commands that define the different structures in
a database.
3. A DML is a language that enables users to access and manipulate data in a
database.
4. A SELECT is a part of DML involving information retrieval only.
5. A popular data manipulation language is SQL.

Q. Difference between DDL and DML.


Ans : DDL stands for Data Definition Language. DML stands for Data
Manipulation Language. DDL statements are used to create database,
schema, constraints, users, tables etc. DML statement is used to insert,
update or delete the records.
Q. Difference between RDBMS and DBMS.
Ans: DBMS stores data as a file whereas in RDBMS, data is stored in
the form of tables. DBMS supports single users, while RDBMS supports
multiple users. DBMS does not support client-server architecture
but RDBMS supports client-server architecture.

Important Notes
The DDL commands in SQL are used to create database schema and to
define the type and structure of the data that will be stored in a
database.

WWW.STUDYKEEDA.IN 3
SQL DDL commands are further divided into the following major
categories:
1. CREATE.
2. ALTER.
3. DROP.
4. TRUNCATE.

Simple Create table sql query is below:


CREATE TABLE [Employees](
[EmployeeID] int,
[FullName] nvarchar(30),
[Birthdate] date,
[E-mail] nvarchar(30),
[Position] nvarchar(30),
[Department] nvarchar(30)
)

Drop table query is below


DROP TABLE [Employees]

Alter table query is below


ALTER TABLE Employees ALTER COLUMN ID int NOT NULL

DML – Data Manipulation Language, which includes the following


constructions:

 SELECT – data selection


 INSERT – new data insertion
 UPDATE – data update
 DELETE – data deletion

SELECT QUERY is below

WWW.STUDYKEEDA.IN 4
SELECT * from employee;
Select Query with condition:

SELECT * FROM employee WHERE mobile=”999041341”;

Select Query with some fields not all data from table;

SELECT name, emp_id, mobile FROM employee;

INSERT Query

INSERT Employees(ID,Position,Department,Name) VALUES (1000


,N'CEO',N'Administration',N'John'),
(1001,N'Programmer',N'IT',N'Daniel'),
(1002,N'Accountant',N'Accounts dept',N'Mike'),
(1003,N'Senior Programmer',N'IT',N'Jordan’)

Delete single row from table Query

Delete from employee where mobile=”999041341”;

Update record of the table Query

UPDATE employee set name=”Yashvi”, emp_id=”1234” where


mobile=”9250566452”;

WWW.STUDYKEEDA.IN 5

You might also like