Question

I need a response in your opinion, from this answer Q1. Any user accessing the database is more i...

I need a response in your opinion, from this answer

Q1.

Any user accessing the database is more interested in quick and correct result than how a database is designed. Hence if we introduce redundancy in the table and if the performance of the query increases, then we can ignore 3NF. This is known as denormalization. In this process, a normalized table will be rejoined to have the redundancy in the table to increase the performance of the query. Denormalization need not be true in all cases. It all depends on the data. In addition, it also depends on the redundant column which we are re-introducing into the table and frequency of this column update.

Advantages:

1.The data is present in the same table so there is no need for any joins, hence the selects are very fast.

2.A single table with all the required data allows much more efficient index usage. If the columns are indexed properly, then results can be filtered and sorted by utilizing the same index. While in the case of a normalized table, since the data would be spread out in different tables, this would not be possible.

Disadvantages:

1.It usually speeds retrieval but can slow updates

2.It is always application-specific and needs to be re-evaluated if the application changes

3.Cost of disk space will be more as we are keeping duplicate records

4.In some instances, denormalization simplifies coding; in others, it makes it more complex.

5.Data anomalies, as It allows duplicate data, so at any modification of data, it should modification of every piece of its duplicate data which led to large computation and complex report.

Q2.

First let's see what is materialized view :

The concrete view is a chart object, where you store query results in a separate chart object (for example, occupy storage space and contain data). This indicates that the concrete view returns a physically separate copy of the table data.

materialized view is good when you want to aggregate data and get this summary information from large tables frequently and quickly. This thing can be also achieved by denormalization where deonormalize some of your tables and maintain the aggregates via code or repeatedly scan large sets of rows. If you keep the results in a separate tables, you complicate your application code, you will be in charge of making sure that the manually aggregated data is in synch with the original table's data.

An example would be if you need to answer the question "how many employees are in departements ( x, y, z )" frequently. You could have a table of DEPT's and EMP's and join them and count. OR -- you could store in the DEPT table a count of the number of employees in that department -- an EMP_COUNT column -- and every time you added/removed an employee detail record, you would have to maintain this column. Here materialized view can be used for such an operation.

Denormalization TYPICALLY involves "pre-joining" frequently joined data to avoid having to do that at runtime. This typically results in redudant data they either the system (via materialized views) or you must remember to maintain in addition to the raw detail data.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q:1

/* Any user accessing the database is more interested in quick and correct result than how a database is designed. Hence if we introduce redundancy in the table and if the performance of the query increases, then we can ignore 3NF */

instead of above sentence you can write, Denormalization is a database optimization technique in which we add redundant data to one or more tables .Which will decrease the cost of query which was due to heavy joins between tables. This is done to speed up database access by moving from higher to lower form of normalization.

Other part of answer is Ok.

Q.2

in Materialized view you can write definition as following .

we can the frequently used query and store it under some name! This is similar to view but here we are executing the query and storing the results of query under name. This type of view is called materialized view .

Add a comment
Know the answer?
Add Answer to:
I need a response in your opinion, from this answer Q1. Any user accessing the database is more i...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

  • erms Matching Match the key terms with their definitions. Write the key term letter by the...

    erms Matching Match the key terms with their definitions. Write the key term letter by the appropriate numbered definition k. Foreign key 1. Multitable query m. Nul a. AND condition b. Auto Number c. Caption property d. Cascade Delete Related Records e. Cascade Update Related fields f. Comparison Operator 8. Criteria row h. Data redundancy i. Data type 1. Field property o. OR condition p. Query q. Referential Integrity r. Simple Query Wizard 5. Wildcard Special character that can represent...

  • I need help with the following problem: Using the classicmodels database you installed from Module 1,...

    I need help with the following problem: Using the classicmodels database you installed from Module 1, provide an example query using both a group by clause and a having clause. Show no more than ten rows of your query result. Discuss if the query you wrote can be rewritten without those clauses. I have come up with the following for the first part of the question: mysql> select offices.city, count(employees.employeenumber) as NumberOfEmployees from Employees -> inner join offices on offices.officecode...

  • SUBJECT: INFORMATION TECHNOLOGY, CLASS: ADVANCE DATABASE MANAGEMENT Hello Everyone, I need help on a project for...

    SUBJECT: INFORMATION TECHNOLOGY, CLASS: ADVANCE DATABASE MANAGEMENT Hello Everyone, I need help on a project for my ITD 256 Class. These are the questions I am suppose to answer: Project: The project should include designing a database deals with making a proposal for the database implementation. You can either try to fix an existing problem in your business or create a new database for the new projects or new clients. Please define the objective, scope, and time frame of your...

  • Someone please answer all of these. I need these badly. The submission date is knocking at...

    Someone please answer all of these. I need these badly. The submission date is knocking at the door. Experiment 1: SQL data definition and data insertion 46 hours) 1. CREATE TABLE. The database schema consists of the three relations, whose schemas are: S (Spa, Sname. Sgender, Sage, Sdert? // students(SID, name, gender, age, department) SC (Spa, Cne. Grade) //Course(SID, CID, grade) C (One Cname Crno. Ceredit) l/courses (CID, course name, prerequisite courses, credit) 2. DROP TABLE, ALTER TABLE, CREATE INDEX,...

  • 6. With respect to database systems, which of the following statement(s) is (are) true? a. The...

    6. With respect to database systems, which of the following statement(s) is (are) true? a. The physical view of data is how people conceptually organize and understand the relationships among data items. b. The DML builds the data dictionary, creates the database, describes logical views for each user, and specifies security constraints. c. A record layout shows the items stored in a file, including the type of data stored and both the order and length of the data fields. d....

  • Using mySQL, tables at the end... This assignment uses the tables from the vets database. The goa...

    Using mySQL, tables at the end... This assignment uses the tables from the vets database. The goal of the assignment is to get you to think about joins- inner join and outer joins.  If you do a join, where you have the names of two or more tables in the From clause, then you must use the condition join syntax or the column name join. Take care that you do not accidentally do a Cartesian product. If your result set...

  • If the focus in a form moves from left to right and you want the focus...

    If the focus in a form moves from left to right and you want the focus to move from top to bottom, change the _____. . a. . sort order . b. . tab order . c. . form layout . d. . focus grouping    What do you change when you drag the right border of a form in Form Design view? . a. . the layout of the form . b. . the width of the form ....

  • Overview: Database management plays an integral role in nearly every area of business. Databases house customer, accoun...

    Overview: Database management plays an integral role in nearly every area of business. Databases house customer, accounting, and employee data, and these different data sets must all be efficiently managed in order to make the data accessible. Companies rely on database engineers to ensure that their records are accurate, updated, and tracked in real time. This course covers structured query language (SQL) and how it can be used to manage database schemas, manipulate data, and analyze data. For your final...

  • Rationale The focus of the project is to develop your database programming skills. This project will...

    Rationale The focus of the project is to develop your database programming skills. This project will help you get a fair idea of the sales and distribution system in any organization that has a chain of Carrying and Forwarding Agents (CFAs) or super stockists and stockists. You will be able to implement database programming concepts of ADO.NET in VB.NET and ASP.NET to create a real-life, web-based database application. (VB stands for Visual Basic.) Scenario Smooth Pen, Inc., a pen manufacturing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT