0% found this document useful (0 votes)
19 views

Unit 3 Dbms Extra Questions

Uploaded by

rishita369.k
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Unit 3 Dbms Extra Questions

Uploaded by

rishita369.k
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIT :III(DBMS)

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

13) Consider the following table: Sales

1. How many fields and records are there in Sales table?

2. Write SQL commands for the following:

i. Display Sales ID and price of all products whose discount is more than 1000.

ii. Display the details alphabetically by product name.

iii. Display product name and sales price after deducting the discount from the price. Note: Sales
price can be calculated as (price-discount)

1. Four fields and four records are there in table Sales.

2. SQL commands:

i. select Sale_Id, Price from Sales where Discount > 1000;

ii. select * from Sales order by Prod_Name;

iii. select Prod_Name, Price- Discount from Sales;

You might also like