Database Management System_Question and Answers
Database Management System_Question and Answers
1 Data is stored in a single table. Data is stored in multiple tables and the tables are
linked using a common field.
2 Usually suitable for less amount of Relational is suitable for medium to large amount
data. of data.
Page 1 of 7
Database Management System_Question and Answers
2 A table can have only Primary 2. A table can have multiple Foreign Keys.
Key.
Page 2 of 7
Database Management System_Question and Answers
22. What is Date time data type? List and explain its different data types.
23. What are the field properties/ properties of fields according to the data type set for each
field?
AutoValue – if set to yes then the field will get the auto numeric values.
Length – By default length of the field is 10 but the size of the field can be set to
maximum length.
Default Value – A default value can be set for a field if the user doesn't provide any value
while entering the values in the table.
Format example – This property helps to set the format of the data entered in the field
such as 91-222-333.
Page 3 of 7
Database Management System_Question and Answers
Page 4 of 7
Database Management System_Question and Answers
32. Filtering means that the query uses criteria you provide to hide some data and present
only what you want to see.
33. Update statement is used for modifying records in a database.
34. By default, data is arranged in ASC order using ORDER BY clause.
35. 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 view, enter, and change data
directly in database objects such as tables.
36. A report helps to display the data in a summarized manner. It is used to generate the
overall work outcome in a clear format.
37. A query helps to join information from different tables and filter that information.
38. Data Manipulation Language (DML) consist of the following:
SELECT statement – Retrieve information from the database
INSERT statement - Inserts new information into the database
DELETE statement - Deletes information from the database
UPDATE statement - Modifies information in the database
39. Data Definition Language(DDL) is used to define data structures.
40. DCL stands for Data Control Language.
41. TCL stands for Truncate Control Language.
42. Consider the following Vendor table and write the queries for the following:
Datesheet
Page 5 of 7
Database Management System_Question and Answers
6. Write a SQL command to display the records in ascending order by date of exam.
Select*from Datesheet order by DateofExam;
7. Write a query to display the subject name and date of the exam held on
‘Monday’.
Select Sub_Name, DateofExam from Datesheet where Days= ‘Monday’;
8. Write a SQL command to display the date of exam and Sub_Name of Science
subject.
Select Sub_Name, Date of Exam from Datesheet where Sub_Name =
‘Science’ ;
9. Is it possible to make more than one field as a primary key in your table?
(Yes/No). Justify your answer.
No, it is not possible to make more than one field as a primary key in the table
because a table can have only one Primary Key.
10. Write a query to delete the subject Science from the above table.
DELETE FROM Datesheet WHERE Sub_Name =”Science”;
43. Consider the following table Sales:
Answer:
1 There are 4 fields and 4 records in the Sales table.
2. i. select Sale_Id, Price from Sales where Discount > 1000;
ii. select * from Sales order by Prod_Name ASC;
iii. select Prod_Name, Price- Discount from Sales;
Page 6 of 7
Database Management System_Question and Answers
Page 7 of 7