Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------
- Post Title 'DBMS Assignment-1 Answers'
- Post by user 'Adusumilli-Uday-Kumar'
- Post encryped with secure 256-bit MD5 Encryption
- Post accesable only VIA link
- Post will Expire on '3-OCT-2017'
- --------------------------
- ----
- 1. List the charecterristics of Database Approach.
- Ans.
- In traditional file processing, each user defines and implements the files needed for a specific software application as part of programming the application.
- In the database approach, a single repository maintains data that is defined once and then accessed by various users. In file systems, each application is free to name data elements independently. In contrast, in a database, the names or labels of data are defined once, and used repeatedly by queries, transactions, and applications.
- The main characteristics of the database approach versus the file-processing
- approach are the following:
- - Self-describing nature of a database system
- - Insulation between programs and data, and data abstraction
- - Support of multiple views of the data
- - Sharing of data and multiuser transaction processing
- ----
- 2. Discuss the advantages of using DBMS Approach.
- Ans.
- 1) Controlling Redundancy:
- In traditional software development utilizing file processing, every user group maintains its own files for handling its data-processing applications. Other groups may further duplicate some or all of the same data in their own files. This redundancy in storing the same data multiple times leads to several problems.
- In the database approach, the views of different user groups are integrated during database design. This is known as data normalization, and it ensures consistency and saves storage space. However, in practice, it is sometimes necessary to use controlled redundancy to improve the performance of queries.
- 2) Restricting Unauthorized Access:
- When multiple users share a large database, it is likely that most users will not be authorized to access all information in the database.
- 3) Providing Persistent Storage for Program Objects:
- Databases can be used to provide persistent storage for program objects and data structures. This is one of the main reasons for object-oriented database systems.
- 4) Providing Storage Structures and Search:
- Techniques for Efficient Query Processing
- Database systems provide capabilities for efficiently executing queries and updates. Because the database is typically stored on disk, the DBMS must provide specialized data structures and search techniques to speed up disk search for the desired records.
- 5) Providing Backup and Recovery:
- A DBMS provides facilities for recovering from hardware or software failures. The backup and recovery subsystem of the DBMS is responsible for recovery.
- 6) Providing Multiple User Interfaces:
- Because many types of users with varying levels of technical knowledge use a database, a DBMS provides a variety of user interfaces. These include query languages for casual users, programming language interfaces for application programmers, forms and command codes for parametric users.
- 7) Representing Complex Relationships among Data
- A database may include numerous varieties of data that are interrelated in many ways.
- 8) Enforcing Integrity Constraints
- Most database applications have certain integrity constraints that must hold for the data. A DBMS provides capabilities for defining and enforcing these con-1.6 Advantages of Using the DBMS Approach straints.
- ----
- 3. With a neat diagram, explain the 3 Schema Architechure.
- Ans. The goal of the three-schema architecture is to separate the user applications from the physical database. In this architecture, schemas can be defined at the following three levels:
- 1) The internal level has an internal schema, which describes the physical storage structure of the database. The internal schema uses a physical data model and describes the complete details of data storage and access paths for the database.
- 2) The conceptual level has a conceptual schema, which describes the structure of the whole database for a community of users. The conceptual schema hides the details of physical storage structures and concentrates on describing entities, data types, relationships, user operations, and constraints.
- 3) The external or view level includes a number of external schemas or user views. Each external schema describes the part of the database that a particular user group is interested in and hides the rest of the database from that user group.
- Image Link: http://bit.ly/2iNBkgI
- ----
- 4. With a neat diagram, explain the different phases of Database Design.
- Ans. We can identify six main phases of the overall database design and implementation process:
- 1) Requirements collection and analysis
- 2) Conceptual database design
- 3) Choice of a DBMS
- 4) Data model mapping (also called logical database design)
- 5) Physical database design
- 6) Database system implementation and tuning
- The heart of the database design process comprises Phases 2, 4, and 5; we briefly summarize these phases:
- - Conceptual database design (Phase 2):
- The goal of this phase is to produce a conceptual schema for the database that is independent of a specific DBMS. We often use a high-level data model such as the ER or EER model during this phase.
- - Data model mapping (Phase 4):
- During this phase, which is also called logical database design, we map (or transform) the conceptual schema from the high-level data model used in Phase 2 into the data model of the chosen DBMS.
- - Physical database design (Phase 5):
- During this phase, we design the specifications for the stored database in terms of physical file storage structures, record placement, and indexes. This corresponds to designing the internal schema in the terminology of the three-level DBMS architecture.
- - Database system implementation and tuning (Phase 6):
- During this phase, the database and application programs are implemented, tested, and eventually deployed for service. Various transactions and applications are tested individually and then in conjunction with each other.
- Image Link: http://bit.ly/2wve6PG
- ----
- 5. Write an ER Diagram for the following:
- - Company
- - Order
- - Library
- - Movie
- - Bank
- Ans.
- ER Diagram for Company,
- Image Link: http://bit.ly/2wvgLsA
- ER Diagram for Order,
- Image Link: http://bit.ly/2ewOTjF
- ER Diagram for LIbrary,
- Image Link: http://bit.ly/2vS3IQm
- ER Diagram for Movie,
- Image Link: http://bit.ly/2iPd7Xq
- ER Diagram for Bank,
- Image Link: http://bit.ly/2ewtbMA
- ----
Advertisement
Add Comment
Please, Sign In to add comment