Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Question 1 - Normalization

Considering the following example of Invoice, you will design relational database by following the step suggested. Please, answer each step.

130_img1.png

Step1: Identifying all attributes and decide primary key of INVOICE relation.

Step2: Identifying all (minimal) functional dependencies.

Step3: Normalize INVOICE to 3 NF.

Question 2 - Query Optimizer

You are managing the following database system:

• DBMS: Oracle 11g
• OS: Sun Solaris
• System architecture: Web-based application using ASP.Net
• Purpose of Server: HR management
• Total size of database: 120 MB
• Total number of table: 12
• Total number of index including Primary Key: 18
• Daily average number of transactions: 400
• Complexity of SQL: simple
• Update: not frequently

As a database administrator, you need to decide query optimizer, i.e., CBO (Cost-based optimizer) or RBO (Rule-based optimizer).

Which one are you going to select for your system? Any Why?

Question 3 - Query Execution Plan

You are using Oracle 11g DBMS with Cost-Based Optimizer (CBO). In order to perform SQL tuning for a query, you decide to use ‘set autotrace' option of SQ*Plus as below:

SQL> SET AUTOTRACE ON
SQL> select d.department_name, sum(e.salary)
2 from employees e, departments d
3 where e.department_id = d.department_id
4 and e.salary>= 3000
5* group by d.department_name

Execution Plan

Id Operation Name Rows Bytes Cost
0 SELECT STATEMENT
27 567 5
1 HASH GROUP BY
27 567 5
2 NESTED LOOPS
106 2226 4
3 TABLE ACCESS FULL EMPLOYEES 107 535 3
4 TABLE ACCESS BY INDEC ROWID DEPARTMENTS 1 16 1
5 INDEX UNIQUE SCAN DEPT_ID_PK 1
0

Explain about the output (i.e., Execution Plan) including order of execution and statistical data.

Question 4 - Indexing: B+-tree.

Consider constructing a B+-tree of order 3 (i.e. p=3 and p leaf = 2)

Show the each step and resulting trees for inserting keys 8, 5, 1, 7, 3, 12, 9, 6 in this order.

520_img4.png

Step 2: After inserting 3

Step 3: After inserting 12

Step 4: After inserting 9

Step 5: After inserting 6

Consider the B+-tree constructed above, i.e., the result of Step 5, and then assign nodeID (1, 2, 3 ....) from top to bottom, and let to right. For example, root node has nodeID=1.

When you look up the key "8", how many nodes do you need to visit? Also, state the list of nodeID that you need to visit in order.

Question 5 - A bout B+ Tree properties which of the following is FALSE?
A. All the leaf nodes are at the same level
B. Deletion always happens at the leaf level
C. All the data pointers are spread among internal nodes and leaf nodes
D. Insertion always happens at the leaf level

Question 6 - Suppose a data file contains 30,000 records and each record is 200 bytes.The size of the disk block is 2.048 bytes,the length of key field is 9 bytes and the length of data pointer is 6 bytes.How many disk blocks do we need to create a secondary index file?
A. 10 blocks
B. 136 blocks
C. 221 blocks
D. 442 blocks

Question 7 - Which of the following is TRUE?
A. Secondary index provides a logical ordering
B. Primary index provides a physical ordering
C. Cluster index provides physical ordering
D. All of above

Question 8 - Which of the following statement is TRUE?
A. Dense index has an index entry for every search key values
B. Sparse index has an index entry only for some search key values
C. For primary index the total number of index entries is same as the number of disk blocks in the ordered data file
D. All of above

Question 9 - Which of the following statement is TRUE?
A. The index field of primary is on key field hence is dense index
B. The index field of cluster index is on non-key filed hence is dense index
C. We could have multiple primary and secondary indexes on a data file
D. None of above

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91599055
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Assignment -scenario setup a mock phase 3 clinical trial

Assignment - Scenario: Setup a Mock Phase 3 Clinical Trial for evaluating the efficacy of a Blood Pressure/Weight Loss/ or Muscle Strength Enhancement supplement. Assume that the testing takes place at a physician's offi ...

Answer the following question explain the difference

Answer the following Question : Explain the difference between a database management system (DBMS) and a database. Are Microsoft Access, SQL Server, and Oracle examples of databases or database management systems (DBMS)?

Assignmenta restaurant is designing a database to keep

Assignment A restaurant is designing a database to keep track of customer services. A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees. Each employee is define ...

Project outline and requirements provide a brief

Project Outline and Requirements Provide a brief description of the organization (can be hypothetical) that will be used as the basis for the projects in the course. Include company size, location(s), and other pertinent ...

In sql developercreate a table userpermissions provide

IN SQL DEVELOPER Create a table UserPermissions (provide create and insert statements code) Document UserName Policy SYSTEM Menu JDOW W2 USAM Permissions SYSTEM W2 JDOW Form 1040 USAM Policy JDOW W2 SYSTEM Write a PL/SQL ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As