Selfstudys Com File
Selfstudys Com File
QUESTION
Graphic
Date
Number
Text
SOLUTION
Graphic
QUESTION
Student wants to create a field pincode in a table, which data type he will choose?
SOLUTION
INT
SOLUTION
QUESTION
None of these
SOLUTION
QUESTION
Observe the field names of a database given below in ‘Column A’ related to Bus
reservation. Write suitable data types for each field in front of the respective field in
‘Column B’
SOLUTION
Exercise | 2 | Page 28
Observe the field names of a database given below in ‘Column A’ related to Bus
reservation. Write suitable data types for each field in front of the respective field in
‘Column B’
SOLUTION
Exercise | 2 | Page 28
QUESTION
Observe the field names of a database given below in ‘Column A’ related to Bus
reservation. Write suitable data types for each field in front of the respective field in
‘Column B’
SOLUTION
Exercise | 2 | Page 28
QUESTION
Observe the field names of a database given below in ‘Column A’ related to Bus
reservation. Write suitable data types for each field in front of the respective field in
‘Column B’
SOLUTION
Exercise | 3 | Page 28
QUESTION
INSERT
SOLUTION
Exercise | 3 | Page 28
QUESTION
UPDATE
SOLUTION
Exercise | 4 | Page 28
QUESTION
Create a table for the information given below by choosing appropriate data types.
Specify proper primary key for the table 1) Movie 2) Actor
1. Movie (Registeration_no, movie_name, Realease_Date)
SOLUTION
QUESTION
Consider the following table Stationary. Write SQL commands for following statement.
SOLUTION
QUESTION
Consider the following table Stationary. Write SQL commands for following statement.
S_ID S_Name C_Name Price Quantity
001 Note Book ABC 20 50
002 Pencil Box XYZ 10 80
003 A4 Pages rim PQR 600 2
SOLUTION
QUESTION
Consider the following table Stationary. Write SQL commands for following statement.
SOLUTION
QUESTION
What is a database?
SOLUTION
A DBMS is a collection of programs (computer based system) that enables the user to
create and maintain a database it is used to define, construct and manipulate the data
in the database for various applications. It provides information storage, organization
and retrieval capabilities. The DBMS also enforces necessary access restrictions and
security measures in order to protect the database. Various types of control systems
within the DBMS make sure that the database continues to function properly.
They Include Integrity system Security system Concurrency control system Recovery
control system Some DBMS enable us to define “views” of the database. A view is how
the database appears to the user. This enables us to show only the relevant information
to different types of users and it increases security, as certain users will not be able to
see data which they are not meant to see.
QUESTION
SOLUTION
Sharing of Data: In a database, the users of the database can share the data among
themselves. There are various levels of authorization to access the data. And
consequently the data can only be shared based on the correct authorization protocols
being followed.
Data Security: Data Security is vital concept in a database. Only authorized users
should be allowed to access the database and their identity should be authenticated
using a username and password. Unauthorized users should not be allowed to access
the database under any circumstances as it violates the integrity constraints.
Enforces integrity constraints: Constraints are used to store accurate data because
there are many users who feed data in database. Data stored in database should always
be correct and accurate. DBMS provides the capability to enforce these constraints on
database.
Provides backup and recovery of data: Data loss is a very big problem for all the
organizations. In traditional tile processing system, a user needs to backup the database
after a regular interval of time that wastes lots of time and resources._If the volume of
data is large then this process may take a very long time.
QUESTION
SOLUTION
A Database model defines the logical design and structure of a database and defines
how data will be stored, accessed and updated in a database management system.
While the Relational Model is the most widely used database model.
Relational Model:
It is the most popular data model in DBMS. Relational model is the primary data model.
Which is widely used for data processing. This model has all properties required to
Process data with storage efficiency.
QUESTION
SOLUTION
Primary Key: A column in the table that uniquely identifies each row in that table is
called a primary key.
QUESTION
SOLUTION
DDL statements or commands are used to define and modify the database structure of
your tables or schema. When you execute a DDL statement, it takes effect immediately
Exercise | 7 | Page 29
QUESTION
In a company the data is stored in a table under the following fields Employee number,
Last name, Date of birth, Address. Which data type will you use for the above field.
SOLUTION
Address: VARCHAR
QUESTION
SOLUTION
REVOKE
QUESTION
SELECT