Unit 3 Dbms Extra Questions
Unit 3 Dbms Extra Questions
1) It enables users to view, enter, and change data directly in database objects.
Form
2) There are _______ types of Relationships in a table of a database.
3
3) A Relational database uses _____________ commands which is a standard user application that
provides an easy programming interface for database interaction
SQL
4) Suraj wants to create a database for his clients. For this purpose, she needs to store the Email IDs of
his clients. Which datatype should he use to accomplish this purpose?
VARCHAR
5) Geet has written a SQL query in SQL view. But he doesn’t know how to execute the query using
keyboard keys. Suggest him the shortcut key to complete the task.
F5
6) A table can have only _________ primary key in a database.
7) Differentiate between a Primary key and Foreign key
A primary key is a unique value that identifies a row in a table, whereas a foreign key identifies a
column or set of columns in one (referencing) table that refers to a column or set of column in
another (referenced. table. A table can have only Primary Key but a table can have multiple foreign
keys.
8) Explain the term “Referential Integrity”. Why is it important in a database?
Referential Integrity is used to maintain the accuracy and consistency of data in a relationship. In
Base, data can be linked between two or more tables with the help of primary key and foreign key
constrains. Referential Integrity is important in DBMS as:
• It prevents the entry of duplicate data.
• It prevents one table from pointing to a nonexistent field in another table.
• It prevents consistency between “Partnered” tables.
• It prevents the deletion of a record that contains a value referred to by a foreign key in another table.
• It prevents the addition of a record to a table that contains a foreign key unless key unless there is
primary key in the linked table.
9) Table Datesheet
I. Write a SQL command to display the records in ascending order by date of exam.
ii. Write a query to display the above date sheet.
iii. Write a query to display the subject name and date of the exam held on ‘Monday
iv. Write a SQL command to display the date of exam and Sub_Name of Science subject.
i. Select*from Datesheet order by DateofExam
ii. Select*from Datesheet
iii. Select Sub_Name, DateofExam from Datesheet where Days= ‘Monday’
iv. Select Sub_Name, Date of Exam from Datesheet where Sub_Name = ‘Science’
10) Identify the mode, where we can modify in the structure of table?
Design view
11) ___ store data in a single table which is suitable to store less amount of Data.
Flat File
12) List Numeric and Alphanumeric Datatypes in OpenOffice Base
Numeric datatypes are: , Integer, Decimal, Float, Double
Alphanumeric Datatypes are: Char, Varchar, Varchar
i. Display Sales ID and price of all products whose discount is more than 1000.
iii. Display product name and sales price after deducting the discount from the price. Note: Sales
price can be calculated as (price-discount)
2. SQL commands: