Important DBMS Questions and Answers IT 402 Class 10 RDBMS
Important DBMS Questions and Answers IT 402 Class 10 RDBMS
Important DBMS Questions and Answers IT 402 Class 10 RDBMS
It is suitable for less amount of data. It is suitable for large amount of data
Table : Student
Stud_id Stud_name Class Fees
1 Aman IX 3000
2 Anil X 3200
Table Teacher
T_id T_name T_Sal Stud_id
Session 2 : Create and Edit Tables using Wizard and SQL Commands
Ans.
Table : A table is a set of data elements that is organized in vertical columns and horizontal rows.
Fields : A field is a set of data values of a particular simple type, one for each row of the table.
Records : A row also called a Record or Tuple represents a single, data item in a table.
Q3. What are the two ways of creating table in OpenOffice Base.
Ans. Two ways of creating table in OpenOffice Base are :
a. Create table in design view
b. Use Wizard to create table.
Q4. What do you mean by Data type? Give example of two data type used in OpenOffice Base.
Ans. Datatypes are used to identify which type of data (value) we are going to store in the database.
Q5. Identify the data type in which we can store the decimal value :
a. Boolean
b. TinyInt
c. Decimal
d. Real
e. Double
f. Smallint
Ans. Data types in which we can store the decimal value are :
c. Decimal
d. Real
e. Double
Q6. What is the difference between Char and Varchar data type?
Ans. Char is a fixed length data type and Varchar is a variable length data type.
Q7. Write the data type suitable for the following fields.
a. DateofBirth
b. Name
c. Rollno
d. Class
e. Email
f. City
Ans.
a. DateofBirth – Date
b. Name – Char or Varchar
c. Rollno – TinyInt / Smallint / Integer
d. Class – Char / Varchar
e. Email – Char or Varchar
f. City – Char or Varchar
Q11. Write four data types which are used to store numerical value.
Ans. Four data types which are used to store numerical value are
Smallint
Bigint
Integer
Float
Q12. Write four appropriate field names and their data types to store record of student.
Ans. Four appropriate field names and their data types to store record of students are :
1 Name —————— Char / Varchar
2. Admno —————- Integer
3. Fees ——————–Float/Double
4. DOB ——————-Date
Q13. Write four appropriate field names and their data types to store record of book.
Ans. Four appropriate field names and their data types to store record of book are :
a. Author_name ————- Char / Varchar
b. Price ———————– Float / Decimal / Double
c. Class ———————– Char / Varchar
d. Subject ———————Char / Varchar
Q14. What is the default data type of a field while creating table in design view?
Ans. Varchar
Q19. ________________ (Database / Table ) wizard helps you to create a new database.
Ans. Database
Q9. Define the following field properties in reference to Open Office Base.
1. Default Value
2. Format
3. Auto Value
Ans.
1. Default Value : A value which automatically appears when we enter the new record.
2. Format : This property helps to set the format of the data entered in the field.
3. Auto Value : This is the property of Numeric Field type. If this property is set to Yes then numeric
field will get auto numeric value.
Q13. How many types of relationship can be created between tables? Name them.
Ans. Three types of relationship can be created between tables.
One to One
One to Many or Many to One
Many to Many
Q2. In how many ways you can create query in Open Office Base?
Ans. We can create query in Open Office Base by three ways which are :
Create query in Design view
Create query using Wizard
Create query in SQL view
Ans.
DDL DML
Q8. __________ is the most commonly used Data Manipulation Language(DML) command.
Ans. Select
Q9. Name two clauses which can be used with Select Command.
Ans. Two clauses which can be used with Select Command are :
Where Clause
Order By Clause
Q10. Write the Select command to display all the records of table “book”.
Ans. Select * from book;
Q11. Write the shortcut to execute query in “Create query in SQL view” of Base.
Ans. F5
1 Suman 20000
2 Sanjay 32000
3 Ravi 30000
a. Display the salary of all the employees after incrementing by Rs 1000.
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
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.
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;
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.