New Semester
Started
Get
50% OFF
Study Help!
--h --m --s
Claim Now
Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Tutors
Online Tutors
Find a Tutor
Hire a Tutor
Become a Tutor
AI Tutor
AI Study Planner
NEW
Sell Books
Search
Search
Sign In
Register
study help
business
database management systems
Modern Database Management 12th Global Edition Topi Hoffer, Venkataraman - Solutions
Display the customer ID, name, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once by showing order ID 0.
Rewrite your answer to Problem and Exercise 7-63 for each customer, not just customer 16.
Display the name of customer 16 and the names of all the customers that are in the same zip code as customer 16.(Be sure this query will work for any customer.)
Display the EmployeeID and EmployeeName for those employees who do not possess the skill Router. Display the results in order by EmployeeName. Show how you constructed this query using a Venn or other type of diagram.
Display the customer ID, name, and order ID for all customer orders. For those customers who do not have any orders, include them in the display once.
Write an SQL query to produce a list of all the products(i.e., product description) and the number of times each product has been ordered. Show how you constructed this query using a Venn or other type of diagram.
Display the names of the states in which customers reside but for which there is no salesperson residing in that state.There are several ways to write this query. Try to write it without any WHERE clause. Write this query two ways, using the set command UNION, INTERSECT, or MINUS and not using any
Display the order IDs for customers who have not made any payment, yet, on that order. Use the set command UNION, INTERSECT, or MINUS in your query.
The production manager at PVFC is concerned about support for purchased parts in products owned by customers. A simple analysis he wants done is to determine for each customer how many vendors are in the same state as that customer. Develop a list of all the PVFC customers by name with the number
Write a query to list the number of products produced in each work center (label as TotalProducts). If a work center does not produce any products, display the result with a total of 0.
Display the salesperson name, product finish, and total quantity sold (label as TotSales) for each finish by each salesperson.
List, in alphabetical order, the names of all employees(managers) who are now managing people with skill ID BS12; list each manager’s name only once, even if that manager manages several people with this skill.
Modify Problem and Exercise 7-52 so that the list includes the number of products each customer bought in each product line in March 2015.
Modify Problem and Exercise 7-51 so that you include the number of products in product line Basic that the customer ordered in March 2015.
Write an SQL query to list each customer who bought at least one product that belongs to product line Basic in March 2015. List each customer only once.
Write an SQL query to list each customer who has bought computer desks and the number of units sold to each customer. Show how you constructed this query using a Venn or other type of diagram.
For every order that has been received, display the order ID, the total dollar amount owed on that order (you’ll have to calculate this total from attributes in one or more tables; label this result TotalDue), and the amount received in payments on that order (assume that there is only one
Calculate the total raw material cost (label TotCost) for each product compared to its standard product price.Display product ID, product description, standard price, and the total cost in the result.
Write an SQL command to total the cost of order number 1.
Write an SQL command to display each item ordered for order number 1, its standard price, and the total price for each item ordered.
Write an SQL command to display the order number, customer number, order date, and items ordered for some particular customer.
List the name of each employee, his or her birth date, the name of his or her manager, and the manager’s birth date for those employees who were born before their manager was born; label the manager’s data Manager and ManagerBirth. Show how you constructed this query using a Venn or other type
List the names and number of employees supervised(label this value HeadCount) for each supervisor who supervises more than two employees.
Write an SQL command that will find any customers who have not placed orders.
Which tutor needs to be reminded to turn in reports?Write the SQL command. Show how you constructed this query using a Venn or other type of diagram.
Which tutors, by name, are available to tutor? Write the SQL command.
List all active students in June by name. (Make up names and other data if you are actually building a prototype database.) Include the number of hours students received tutoring and how many lessons they completed.
Write an SQL query to list the Read scores of students who were ever taught by tutors whose status is Dropped.
Write an SQL query to determine the total number of hours and the total number of lessons Tutor 106 taught in June and July 2015.
Where do you think student and tutor information such as name, address, phone, and e-mail should be kept?Write the necessary SQL commands to capture this information.
Write the SQL command to find any tutors who have not submitted a report for July
What do you need to do if a tutor signs up and wants to tutor in both reading and math? Draw the new ERD, create new relations, and write any SQL statements that would be needed to handle this development.
Write the SQL command to add column SUBJECT to TUTOR. The only values allowed for SUBJECT will be Reading, Math, and ESL.
Write the SQL command to add column MATH SCORE to the STUDENT table.
Determine the relationships among the four relations in Figure 7-17.List primary keys for each relation and any foreign keys necessary to establish the relationships and maintain referential integrity. Pay particular attention to the data contained in TUTOR REPORTS when you set up its primary key.
Write an SQL query to answer the following question:Which students were not enrolled in any courses during semester I-2015?
Write SQL queries to answer the following questions:a. How many students were enrolled in section 2714 during semester I-2015?b. How many students were enrolled in ISM 3113 during semester I-2015?
Write SQL queries to answer the following questions:a. What are the names of the course(s) that student Altvater took during the semester I-2015?b. List names of the students who have taken at least one course that Professor Collins is qualified to teach.c. How many students did Professor Collins
Write an SQL query to answer the following question:Is any instructor qualified to teach ISM 3113 and not qualified to teach ISM 4930?
Write an SQL query to answer the following question:Which instructors are qualified to teach ISM 3113?
Write SQL retrieval commands for each of the following queries:a. Display the course ID and course name for all courses with an ISM prefix.b. Display all courses for which Professor Berndt has been qualified.c. Display the class roster, including student name, for all students enrolled in section
This chapter discusses the data dictionary views for Oracle 12c. Research another RDBMS, such as Microsoft SQL Server, and report on its data dictionary facility and how it compares with Oracle.
Discuss some of the mechanisms that were used for the same purposes as the temporal extensions before they were introduced.
What is the purpose of the temporal extensions to SQL that were introduced in SQL:2011?
What can be done with Persistent Stored Modules?
If two queries involved in a UNION operation contained columns that were data type incompatible, how would you recommend fixing this?
Discuss some of the SQL:2008 enhancements and extensions to SQL.
What strategies can be used to write queries that run more efficiently?
What are some tips for developing queries.
When do you think that the CASE keyword in SQL would be useful?
When would you consider using embedded SQL? When would you use dynamic SQL?
List four advantages of SQL-invoked routines.
Explain the purpose of SQL/PSM.
Discuss the differences between triggers and stored procedures.
Explain how to combine queries using the UNION clause.
Explain the structure of a module of code that defines a trigger.
Care must be exercised when writing triggers for a database. What are some of the problems that could be encountered?
What is the purpose of the COMMIT command in SQL?How does commit relate to the notion of a business transaction (e.g., entering a customer order or issuing a customer invoice)?
What is a derived table? When is it used? Can you describe any situations where you would have to use it over a subquery in the WHERE clause?
Explain the relationship between EXISTS and correlated subqueries.
What are some of the purposes for which you would use correlated subqueries?
When is it better to use a subquery over using a join?
Discuss the differences between an equi-join, natural join and outer join
Define each of the following terms:a. dynamic SQLb. correlated subqueryc. embedded SQLd. proceduree. joinf. equi-join g. self join h. outer join i. function j. Persistent Stored Modules (SQL/PSM)
Discuss the SQL:2011 standard and explain its enhancements and extensions.
Understand common uses of database triggers and stored procedures.
Understand the use of SQL in procedural languages, both standard (e.g., PHP) and proprietary (e.g., PL/SQL).
Write noncorrelated and correlated subqueries and know when to write each.
Define three types of join commands and use SQL to write these commands.
Write single- and multiple-table queries using SQL commands.
Write and execute a variety of queries to test the functionality of your database based on what you learned in this chapter. Don’t panic if you can’t write all the queries; many of the queries will require knowledge from Chapter 7. Your instructor may specify for which reports or displays you
Based on your findings from 6-90 above, populate the tables in your database with sample data that can potentially allow you to test/demonstrate that your database can generate these reports.
Reread the case descriptions in Chapters 1 through 3 with an eye toward identifying the typical types of reports and displays the various stakeholders might want to retrieve from your database. Create a document that summarizes these findings.
Write the SQL statements for creating the tables, specifying data types and field lengths, establishing primary keys and foreign keys, and implementing any other constraints you may have identified. Use the examples shown in Chapter 5 to specify indexes, if appropriate.
Arrange an interview with a database administrator in your area who has at least seven years of experience as a database administrator. Focus the interview on understanding how DBA responsibilities and the way they are completed have changed during the DBA’s tenure. Does the DBA have to generate
Arrange an interview with a database administrator in your area. Focus the interview on understanding the environment within which SQL is used in the organization. Inquire about the version of SQL that is used and determine whether the same version is used at all locations.If different versions are
Arrange an interview with a database administrator in an organization in your area. When you interview the database administrator, familiarize yourself with one application that is actively used in the organization. Focus your interview questions on determining end users’ involvement with the
Tyler Richardson set up a house alarm system when he moved to his new home in Seattle. For security purposes, he has all of his mail, including his alarm system bill, mailed to his local UPS store. Although the alarm system is activated and the company is aware of its physical address, Richardson
Not all versions of this database include referential integrity constraints for all foreign keys. Use whatever commands are available for the RDBMS you are using, investigate if any referential integrity constraints are missing. Write any missing constraints and, if possible, add them to the
List the average number of customers per state (including only the states that are included in the Customer_T table).Hint: A query can be used as a table specification in the FROM clause.
For products 1, 2, and 7, list in one row and three respective columns that product’s total unit sales; label the three columns Prod1, Prod2, and Prod7.
For each customer, list the customer ID, the number of orders from that customer, and the ratio of the number of orders from that customer to the total number of orders from all customers combined. (This ratio, of course, is the percentage of all orders placed by each customer.)
For each order, list the order ID, customer ID, order date, and most recent date among all orders. Show how you constructed this query using a Venn diagram.
List ProductID, ProductDescription, ProductFinish, and ProductStandardPrice for oak products with a ProductStandardPrice greater than $400 or cherry products with a StandardPrice less than $300. Show how you constructed this query using a Venn diagram.
List MaterialName, Material, and Width for raw materials that are not cherry or oak and whose width is greater than 10 inches. Show how you constructed this query using a Venn diagram.
For each salesperson, list the total number of orders by month for the year 2015. (Hint: If you are using Access, use the Month function. If you are using Oracle, convert the date to a string, using the TO_CHAR function, with the format string ‘Mon’ [i.e., TO_CHAR(order_ date,’MON’)]. If
Display the SalesPersonID and a count of the number of orders for that salesperson for all salespersons except salespersons 3, 5, and 9. Write this query with as few clauses or components as possible, using the capabilities of SQL as much as possible.
Display the territory ID and the number of salespersons in the territory for all territories that have more than one salesperson. Label the number of salespersons NumSalesPersons.
Measured by average standard price, what is the least expensive product finish?
Which product is ordered most frequently?
List all sales territories (TerritoryID) that have more than one salesperson.
For each customer who had more than two orders, list the CustomerID and the total number of orders placed.
For each salesperson, list the total number of orders.
For each customer, list the CustomerID and the total number of orders placed in 2015.
Display the product ID and the number of orders placed for each product. Show the results in decreasing order by the number of times the product has been ordered and label this result column NumOrders.
For each salesperson, display a list of CustomerIDs.
For each customer, list the CustomerID and total number of orders placed.
For every product that has been ordered, display the product ID and the total quantity ordered (label this result TotalOrdered). List the most popular product first and the least popular last.
Display the product line ID and the average standard price for all products in each product line.
List the MaterialID, MaterialName, Material, MaterialStandardPrice, and Thickness for all raw materials made of cherry, pine, or walnut. Order the listing by Material, StandardPrice, and Thickness.
Showing 400 - 500
of 3225
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Last
Step by Step Answers