BuyFindarrow_forward

Database Systems: Design, Implemen...

13th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781337627900

Solutions

Chapter
Section
BuyFindarrow_forward

Database Systems: Design, Implemen...

13th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781337627900
Chapter 11, Problem 14P
Textbook Problem
46 views

Problems 11–14 are based on the following query:

SELECT P_CODE, SUM(LINE_UNITS)
FROM LINE
GROUP BY P_CODE
HAVING SUM(LINE_UNITS) > (SELECT MAX(LINE_UNITS) FROM LINE);

Write the command to create statistics for this table.

Program Plan Intro

Database statistics:

Database statistics is about gathering measurement number about the database objects.

  • Gathering this type of information in the form of statistics can provide a clear portrait about the characteristics of the DBMS.

Obtaining statistics of database:

  • The statistics of the database can be gathered in two ways:
    • Gathering information manually using Database Administrator.
    • Gathering information automatically using DBMS (Database Management System).
  • Newer DBMS gather statistics automatically; newer DBMS such as Oracle, MySQL, SQL Server and DB2.
  • Some of the methods of obtaining statistics manually include:
    • Use of SQL’s ANALYZE command to gather statistics.
    • Use of RUNSTATS procedure of IBM’s DB2.
    • Use of UPDATE STATISTICS procedure of Microsoft’s SQL server which provides Auto-update and Auto-create statistics options in the initialization parameters.

Syntax for creating database objects statistics manually are listed below:

The below are the different ways of creating statistics manually in different languages and they are:

Oracle:

ANALYZE <TABLE/INDEX> object_name COMPUTE STATISTICS;

MySQL:

ANALYZE TABLE <table_name>;

SQLServer:

UPDATE STATISTICS <object_name>;

Explanation of Solution

Command to create statistics for the given table:

The below is the command to create statistics f...

Still sussing out bartleby?

Check out a sample textbook solution.

See a sample solution

The Solution to Your Study Problems

Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!

Get Started

Chapter 11 Solutions

Database Systems: Design, Implementation, & Management
Show all chapter solutions
add
Ch. 11 - What are optimizer hints, and how are they used?Ch. 11 - What are some general guidelines for creating and...Ch. 11 - Most query optimization techniques are designed to...Ch. 11 - What recommendations would you make for managing...Ch. 11 - What does RAID stand for, and what are some...Ch. 11 - SELECT SELECT EMP_LNAME, EMP_FNAME, EMP_AREACODE,...Ch. 11 - Problem 1 and 2 are based on the following query:...Ch. 11 - Using Table 11.4 as an example, create two...Ch. 11 - Problems 46 are based on the following query:...Ch. 11 - Problems 46 are based on the following query:...Ch. 11 - Problems 46 are based on the following query:...Ch. 11 - Problems 732 are based on the ER model shown in...Ch. 11 - Problems 732 are based on the ER model shown in...Ch. 11 - Problems 732 are based on the ER model shown in...Ch. 11 - Problems 732 are based on the ER model shown in...Ch. 11 - Problems 1114 are based on the following query:...Ch. 11 - Problems 1114 are based on the following query:...Ch. 11 - Problems 1114 are based on the following query:...Ch. 11 - Problems 1114 are based on the following query:...Ch. 11 - Problems 15 and 16 are based on the following...Ch. 11 - Problems 15 and 16 are based on the following...Ch. 11 - Problems 1721 are based on the following query:...Ch. 11 - Problems 1721 are based on the following query:...Ch. 11 - Problems 1721 are based on the following query:...Ch. 11 - Problems 1721 are based on the following query:...Ch. 11 - Problems 1721 are based on the following query:...Ch. 11 - SELECT SELECT P_CODE, P_DESCRIPT, P_PRICE,...Ch. 11 - Problems 2224 are based on the following query:...Ch. 11 - Problems 2224 are based on the following query:...Ch. 11 - Problems 25 and 26 are based on the following...Ch. 11 - Problems 25 and 26 are based on the following...Ch. 11 - Problems 27 and 28 are based on the following...Ch. 11 - Problems 27 and 28 are based on the following...Ch. 11 - Problems 2932 are based on the following query:...Ch. 11 - Problems 2932 are based on the following query:...Ch. 11 - Problems 2932 are based on the following query:...Ch. 11 - Problems 2932 are based on the following query:...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Show solutions add
Explain why database design is important.

Database Systems: Design, Implementation, & Management

What activities are encompassed by supply chain management?

Principles of Information Systems (MindTap Course List)

Investigate what is meant by dead load, live load, impact load, wind load, and snow load in the design of struc...

Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)

What are the three common levels of planning?

Management Of Information Security

If your motherboard supports ECC DDR3 memory, can you substitute non-ECC DDR3 memory?

A+ Guide to Hardware (Standalone Book) (MindTap Course List)

_____ is a small text file that a web server stores on your computer. (192) a. A pop-under blocker b. A cookie ...

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)

Name three popular welding processes.

Welding: Principles and Applications (MindTap Course List)