BuyFindarrow_forward

Database Systems: Design, Implemen...

12th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781305627482

Solutions

Chapter
Section
BuyFindarrow_forward

Database Systems: Design, Implemen...

12th Edition
Carlos Coronel + 1 other
Publisher: Cengage Learning
ISBN: 9781305627482
Chapter 11, Problem 14P
Textbook Problem
1 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 EMP_LNAME, EMP_FNAME, EMP_AREACODE, EMP_SEX...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 P_CODE, P_DESCRIPT, P_PRICE, P.V_CODE,...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
What is the difference between vulnerability and exposure?

Principles of Information Security (MindTap Course List)

Explain the differences among data, information, and a database.

Database Systems: Design, Implementation, & Management

Explain how to use a push stick.

Precision Machining Technology (MindTap Course List)

How might the diffusion of innovation theory be applied to this project?

Principles of Information Systems (MindTap Course List)

As you know, a fuse is a safety device that is commonly placed in an electrical circuit to protect the circuit ...

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

What is structured English?

Systems Analysis and Design (Shelly Cashman Series) (MindTap Course List)

Repeal Problem 5.4-1 for steel with Fy=65 ksi.

Steel Design (Activate Learning with these NEW titles from Engineering!)

If you are interested in developing applications, you also may benefit from certifications in _____. (574) a. h...

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

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

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