Class X Important Questions-RDBMS
Class X Important Questions-RDBMS
RDBMS
Session 1 : Appreciate the concept of Database Management System
Q1. What is database?
Ans. A database is an organized collection of data.
Q2. What is DBMS?
Ans. DBMS stands for Database Management system. It is a software that controls the creation, maintenance and
use of a database.
Q3. Name two DBMS Software.
Ans. Two DBMS Software are :
1 MySQL
2. Oracle
3. Microsoft SQL Server
4. Microsoft Access.
Q4. What is the difference between Flat file and Relational ?
Flat File Relational
1 Aman IX 3000
2 Anil X 3200
Table :Teacher
T_id T_name T_Sal Stud_id
3210 Mr. Kumar 60000 1
3211 Mr. Sethi 70000 2
1. Identify the primary key in Student and Teacher table.
2. Identify the foreign key in Teacher table.
Ans. 1. Primary Key in Student table : Stud_id
Primary key in Teacher table is : T_id
2. Foreign key in Teacher table is : Stud_id
It stands for Data Definition Language It stands for Data Manipulation Language
1 Suman 20000
2 Sanjay 32000
3 Ravi 30000
a. Display the salary of all the employees after incrementing by Rs 1000.
Ans. Select Salary +1000 from Emp;
b. Display the Employee id and salary of all the employees after decreasing by Rs 500.
Ans. Select Emp_id, Salary – 500 from Emp;
c. Display the Name and salary of all the employees after incrementing it as thrice the amount
of present salary.
Ans. Select Ename, Salary * 3 from Emp;
d. Display the Employee id, Name and salary of all the employees after decrementing it as half
the amount of present salary.
Ans. Select Emp_id, Ename, Salary/2 from Emp;
e. Display the Employee id and Name of all the employees.
Ans. Select Emp_id, Ename from Emp;
Q15. Write the queries for the following table : Student
Admno Name Class House
12 Pen 10 17
13 Eraser 5 15
14 Notebook 15 20
a. Write a query to insert a new record of following details
15, “Pencil”, 20, 10
Ans. Insert into Item values(15, “Pencil”, 20, 10)
b. Write a query to display detail of items whose quantity is more than 10.
Ans. Select * from Item where Qty > 10
c. Write a query to change the quantity of Item number 13 to 25.
Ans. Update Item set Qty = 25 where Itemno = 13
d. Display the total amount of each item. The amount must be calculated as the price
multiplied by quantity for each item
Ans. Select Price * Qty from Item.
e. Display the name of item whose price is 10.
Ans. Select Iname from Item where price = 10
f. Display all the records in ascending order of price.
Ans. Select * from Item order by Price asc.
g. Identify the Primary key from table Item.
Ans. Itemno
h. Write the suitable data type of field “Iname”.
Ans. Char or Varchar
i. Write a query to increase the price of all items by Rs 2.
Ans. Update Item set Price = Price + 2;
j. Write a query to decrease the price of all items by Rs2 whose price is less than 20.
Ans. Update Item set Price = Price – 2 where Price < 20;
Q18. By default, data is arranged in _________ order using ORDER BY clause.
Ans. Ascending Order
Q19. Which clause is used for the following:
a. To display specific record.
b. To display records in a particular order.
Ans.
1. Where Clause
2. Order by Clause
Session: 05 Reports in DBMS
Q1. What is Form in OpenOffice Base?
Ans. A form provides the user a systematic way of storing information into the database.
Q2. Name the interface which lets users to view, enter, and change data directly in database.
Ans. Form
Q3. Write two ways of creating form in Open Office Base.
Ans. Two ways of creating form in Open Office Base are :
a. Create form in design view
b. Use Wizard to create form
Q4. Can we enter the data in table using forms?
Ans. Yes
Q5. What do you mean by Report in Open Office Base?
Ans. A report helps to display the data in a summarized manner. It is used to generate the overall work outcome in
a clear format.
Q6. Differentiate between Forms and Report.
Ans.
Form Report
1. It is a way of storing data into a database It is a way to display data in a printed form.
2. Values entered in the form can be modified Values in the report cannot be modified.
Q7. Name the two types of report created in OpenOffice Base.
Ans. Two types of report created in OpenOffice Base are:
a. Static Report
b. Dynamic Report
Q8. What do you mean by static report?
Ans. A report which do not show any change if we make any changes in the data of the table.
Q9. What do you mean by dynamic report?
Ans. A report which shows the corresponding changes which we make in the data of the table.
Q10. Can we enter records by report?
Ans. No