DBMS Questions-Answers
DBMS Questions-Answers
Boolean
Tinyint
Smallint
Integer
Bigint
Numeric
Decimal
Real
Float
Double
Teacher table has fields T_id, Admno, Tname, Tsal (T_id is primary key
and Admno is Foreign Key)
Both the above tables can be linked by Common Fields ie Admno
Q17. Name DML commands.
Ans. DML stands for Data Manipulation Language. DML Commands
are :
SELECT – retrieve data from a database.
INSERT – insert data into a table.
UPDATE – updates existing data within a table.
DELETE – deletes all or specific records from a table.
Q18. What is the purpose of using queries?
Ans. The purpose of using query is to collect specific information
from the pool of data(TABLE). A query also helps us to extract
information from different tables.
Q19. Which clause of the Select statement helps
to display specific data?
Ans. „Where‟ clause of the Select statement helps to display specific
data.
Q20. Differentiate between Where and Orderby
clause of SQL statements.
Ans. Where clause helps to retrieve specific row from the table and
ORDER BY clause specifies an order in which to return the rows.
Q21. State the purpose of Update Command with
the help of an example.
Ans. Update statement is used for modifying records in a table. for
example the following command will increase the salary of all
employees by Rs 2000.
Update emp set sal = sal + 2000;
Q22. Why is there a need to create Forms?
Ans. A form provides the user a systematic way of storing information
into the database. It is an interface in a user specified layout that lets
users to view, enter, and change data directly in database objects
such as tables.
Q23. What is the purpose of creating Reports?
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. We can create reports in
OpenOffice Base using wizard.
We can make changes to data. We can not make changes to the data.
Q26. Can a form display data from queries?
Ans. Yes
Q27. In how many ways Forms and Reports can
be created in a database?
Ans. Forms and Reports can be created in two ways:
1. Create Form in design View
2. Create Form using wizard
Q30. 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 :
1. Create query in Design view
2. Create query using Wizard
3. Create query in SQL view
1 Suman 20000
2 Sanjay 32000
3 Ravi 30000
12 Pen 10 17
13 Eraser 5 15
14 Notebook 15 20
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 can not be modified.
a. Static Report
b. Dynamic Report