You are on page 1of 7

ONLINE ASSIGNMENT

STUDENT’S Roll – RD2107A56 STUDENT’s Reg.no-12115118


NAME– YASH KUMAR COURSE NAME— Bsc.IT
SUBJECT– Database Management. System Section:- D2107

2.For designing a database for a school website, which approach would


you prefer, databases or file systems? Give examples to support your
answer.

For designing a database for a school website I would prefer Record


Based DataModel and specifically in Record Based Data Model I would
prefer Relational
Data Model because :
• This model is more simpler as compared to the network and
hierarchical
model.
• Also this model can be easily scaled as we can add as many rows and
columns
we want.
• We can make changes in database structure without changing the way
to
access the data.
• Relational Data Model is structural independence as we can make
changes to
the database structure without affecting the capability to DBMS to
access the
data
• In this model, the data is maintained in the form of a two-dimensional
table
and all the information is stored in the form of row and columns.
The basic structure of a relational model is tables. So, the tables are also
called relations in the relational model.

3.You are the DBA for the database designed for a shopping website.
What
are the various roles and responsibilities which you need to take care
of?
Mention in points with relevant examples.
Answers:--

If I am a Database Administrator Of shopping website database that


means I have central
control over the system and My Responsibilities will be :
Schema definition: I as a DBA of shopping website have to creates the
original database schema by executing a set of Data Definition
statements in the DDL. For example I
have to Create Schema for Various category product, Schema for Alumni
of , customer , product , etc.
Storage structure and access-method definition: As a DBA of shopping
website I have
to specify someparameters pertaining to the physical organization of the
data and
the indices to be created
Schema and physical -organization modification: Also as a DBA I have to
carries out changes to the schema and physical organization to reflect
the changing needs of the organization, or to alter the physical
organization to improve performance
Granting of authorization for data access: By granting different types of
authorization, As a database administrator of shopping website I can
regulate which parts of the University database various users can
access. The authorization information is kept in a special system
structure that the database system consults whenever a
user tries to access the data in the system.
Routine maintenance: I as a DBA of University have to take care of
Maintenance
of Databases with regular interval of time .For Examples : Periodically
backing up the databases onto remote servers, to
prevent loss of data in case of disasters such as flooding , Ensuring that
enough free disk space is available for normal operations, and upgrading
disk space as required. And also Monitoring jobs running on the
database and ensuring that
performance is not degraded by very expensive tasks submitted by
some users.
Shopping website design models
4. For storing information about inventories, customers and orders in
local grocery store, which approach between files systems and
databases will be most suitable and why? State reasons.

Answer :
For Storing information about inventories , customers and orders in a local
grocery store Databases System is most suitable because if you use File
System you may
face many problems such as :
• In File System Data redundancy can occurs when the same piece
of data exists in multiple files
• In File System Data inconsistency can occurs between file when
similar data is kept in different format in two different files.
• In File System Multiple users can not access data concurrently
• In File System we should know the physical details of the file before
accessing
• Integrity problems are there in file system
• Searching is difficult in file System
• In file system since your files can be saved in a folder where you
should
have provided write permissions, it is prone to safety issues and invites
trouble, like hacking.
And Database System Solves all these Problems , So Database System
would
be most preferable for storing these kind of information.

5.For a database of Movie ticket booking system, what kinds of users


can be present? List and explain their role.

Answers:-
. A basic ticket booking system will work as below:

A user will go to that ticket booking website and book a ticket. The booking website will go to the
theatre database and books the ticket and return the status message to the user.

Basic flow:
system Design Example 3: System design for Online movie ticket booking system
So how does the ticket booking website know about the tickets availability and the status of the
tickets?

This can be done by using any one of two methods explained below:

Method 1: Connect to Theaters DB


In this method, you can directly connect to theater database.

Method 2: Use Theatre API

In this method, the theatre will expose the API like “get_total_ticket_count()”, “book_ticket()”. You
can use those API for ticket booking.

Some of the characteristics of a ticket booking platform is discussed below:


● Highly concurrent
● ResponsiveUI
● Distributed across multiple cities
● Payment Integration
● Movie Suggestions
● Comments and Ratings
● Movie Info
Send confirmed tickets my sms, email and whatsapp

Highly concurrent:

A highly successful ticket booking system will book around one hundred thousand tickets a day.
Along with that it will also be users visiting the website for checking out the reviews and scanning
for seats. Hence there will be too many reads and writes, hence there is a need for highly
concurrent syste

ResponsiveUI:
As users will be coming from different platform, like mobile, PC, laptop etc. The UI should be
responsive to make user experience better. You can build a responsive UI for website and multiple
mobile applications for multiple platforms.

Distributed across multiple cities

As there are multiple cities, the booking system should scale to support multiple cities.

Payment Integration
Now a day there are multiple ways to pay for a service, like debit card, credit card, wallets etc. The
service should be able to support all these platforms. A easy way to integrate with a 3rd party
service that supports all the payment system.

Movie Suggestions

Here by looking at the movie taste of the user, platform has to suggest up coming movies according
to user taste.

Comments and Ratings

The user should be able to comment and rate the movie.

Movie Info

This section should give the information about the movie cast, crew and additional info about that
particular movie.

Send confirmed tickets my SMS, email and WhatsApp

Once the user successfully books a ticket, the system should send a copy of the ticket via SMS,
email or WhatsApp.

Below is the basic system design for online movie ticket booking platform.
Let us understand how all these systems will work together:
system Design Example 3: System design for Online movie ticket booking system

You might also like