Modern Database Management (12th Edition)
Modern Database Management (12th Edition)
12th Edition
ISBN: 9780133544619
Author: Jeffrey A. Hoffer, Ramesh Venkataraman, Heikki Topi
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 5, Problem 5.27PAE

Consider the following two relations for Millennium College:

STUDENT(StudentID, StudentName,
CampusAddress, GPA)
REGISTRATION (StudentID, CourselD, Grade)

Following is a typical query against these relations:

SELECT Student_T.StudentID, StudentName,
CourselD, Grade
FROM Student_T, Registration_T
WHERE Student_T.StudentID =
Registration_T.StudentID
AND GPA >3.0
ORDER BY StudentName;

  1. On what attributes should indexes be defined to speed up this query? Give the reasons for each attribute selected.
  2. Write SQL commands to create indexes for each attribute you identified in part a.

Blurred answer
08:38
Students have asked these similar questions
Consider the following relations: EMP_NO EMP_NAME EMP_GRADE  JOB_ID DEPTNO START_DATE EMP DEPTNO DEPTNAME LOC LOW_SAL HIGH_SAL DEPT Display the name concatenated with the job ID, separated by a comma and space, and name the column Employee and Title. Display the employee name, employee No and start date of employees hired between February 1998, and May 1998. Order the query in ascending order by start date. Create a unique listing of all jobs that are in department 80. Include the location of the department in the output. Write a query to display job ID, total salary and employee name whose job_id contains “REP” and total salary is above 13000. Display the data in ascending order according to total salary. Create a query that displays the employees’ last names and indicates the amounts of their annual salaries with asterisks. Each asterisk signifies a thousand dollars.
Consider the following two relations for Millennium College:STUDENT(StudentID, StudentName, CampusAddress, GPA)REGISTRATION(StudentID, CourseID, Grade) Following is a typical query against these relations:SELECT Student_T.StudentID, StudentName, CourseID, GradeFROM Student_T, Registration_TWHERE Student_T.StudentID = Registration_T.StudentID AND GPA > 3.0ORDER BY StudentName;a. On what attributes should indexes be defined to speed up this query? Give the reasons for each attribute selected.b. Write SQL commands to create indexes for each attribute you identified .
JOIN TABLES One row in the PAT_ENC table represents one patient encounter. One row in the ORDER MED table represents one medication order. One patient encounter can have many medication orders but one medication order can only have one patient encounter. In other words, the cardinality of this PAT_ENC to ORDER_MED relationship is one-to- many. You start a query with PAT_ENC. You then add ORDER_MED using an inner join. What is true about the granularity of the result set before and after adding the ORDER_MED table? SELECT ONE OF THE FOLLOWING A. The granularity stays at one row per patient encounter. B. The granularity stays at one row per medication order. C. The granularity changes from one row per patient encounter to one row per medication order on an encounter. D. The granularity changes from one row per medication order to one row per patient encounter.

Chapter 5 Solutions

Modern Database Management (12th Edition)

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
SQL Basics for Beginners | Learn SQL | SQL Tutorial for Beginners | Edureka; Author: edureka;https://www.youtube.com/watch?v=zbMHLJ0dY4w;License: Standard YouTube License, CC-BY