2- In order to construct and run the following SQL queries you must import professor Table.csv...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2- In order to construct and run the following SQL queries you must import professor Table.csv and course Table.csv into the same database in PHPMyAdmin. You are required to show a screenshot of the results in addition to the query. a- Construct an SQL query that will show the assignedID, professorName, and the professor's home department for each professor that teaches a 3000 level course (all course codes that begin with a two). (2 points) Construct an SQL query that will show all the course IDs, lecture Times, and Lecture durations for the Engineering department. (2 points) b- c- Business Development 3332 is no longer being taught by assignedID = 77, it is being taught by assignedID = 88. Update the course table to reflect this change. (3 points) d- In this imaginary university, they have a rule that states any professor cannot lecture for more than 6 hours per week. Construct an SQL query that will find any professor that is lecturing for more than 6 hours per week (please note the result set may be empty). (3 points) e- In this imaginary university, an Instructor is paid $250 per teaching hour (lecture length), each course runs for 15 weeks, and there is a lecture very week. Write a Python script that will output the Instructor's name, ID, and pay at the end of the semester. Lastly, compare the average pay of Female instructor versus Male instructors (e.g., the average pay for a Male instructor is: XYZ, the average pay for a Female instructor is XYZ. (5 points) 3-For each SQL query you construct in Question 2 (a-d, not e), write the associated relational algebraic expression (8 points). 4-Convert the following database schema to 3NF, and show all your intermediate steps (i.e., INF and 2NF). Does the resultant database conform to BCNF? Why or why not? (7 points) order(orderID, customerID, name, address, orderDate) orderDetails (orderID, productID, description, quantity, unitPrice) 2- In order to construct and run the following SQL queries you must import professor Table.csv and course Table.csv into the same database in PHPMyAdmin. You are required to show a screenshot of the results in addition to the query. a- Construct an SQL query that will show the assignedID, professorName, and the professor's home department for each professor that teaches a 3000 level course (all course codes that begin with a two). (2 points) Construct an SQL query that will show all the course IDs, lecture Times, and Lecture durations for the Engineering department. (2 points) b- c- Business Development 3332 is no longer being taught by assignedID = 77, it is being taught by assignedID = 88. Update the course table to reflect this change. (3 points) d- In this imaginary university, they have a rule that states any professor cannot lecture for more than 6 hours per week. Construct an SQL query that will find any professor that is lecturing for more than 6 hours per week (please note the result set may be empty). (3 points) e- In this imaginary university, an Instructor is paid $250 per teaching hour (lecture length), each course runs for 15 weeks, and there is a lecture very week. Write a Python script that will output the Instructor's name, ID, and pay at the end of the semester. Lastly, compare the average pay of Female instructor versus Male instructors (e.g., the average pay for a Male instructor is: XYZ, the average pay for a Female instructor is XYZ. (5 points) 3-For each SQL query you construct in Question 2 (a-d, not e), write the associated relational algebraic expression (8 points). 4-Convert the following database schema to 3NF, and show all your intermediate steps (i.e., INF and 2NF). Does the resultant database conform to BCNF? Why or why not? (7 points) order(orderID, customerID, name, address, orderDate) orderDetails (orderID, productID, description, quantity, unitPrice)
Expert Answer:
Related Book For
Statistics For Managers Using Microsoft Excel
ISBN: 9780133130805
7th Edition
Authors: David M. Levine, David F. Stephan, Kathryn A. Szabat
Posted Date:
Students also viewed these databases questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
During one week, four production employees of Martinez Manufacturing Company worked the hours shown below. All these employees receive overtime pay at one and one-half times their regular hourly rate...
-
As an equity analyst you are concerned with what will happen to the required return to Universal Toddler Industries' stock as market conditions change. Suppose rRF = 5%, rM = 12%, and bUTI = 1.4. a....
-
Are smaller international companies at a disadvantage when competing with large multinational corporations (MNCs)?
-
Review the California Supreme Court website. What information is provided by the court? Does it identify the court locations? Does it provide information about case filings?
-
A wire with mass 40.0 g is stretched so that its ends are tied down at points 80.0 cm apart. The wire vibrates in its fundamental mode with frequency 60.0 Hz and with amplitude at the antinodes of...
-
A spring has a length of 22 cm when a 2 N weight hangs from it. The spring constant is 50 N m. Calculate the natural length of the spring
-
Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shift, $17 per hour; second shift, $18.50 per hour; third shift, $22 per...
-
Find Unit Price for each using the information below: Since there are 8 bottles at 16.9 oz per bottle, the entire 8 pack case is 135.2 oz. The cost of the cast case is $3.69 so you divide that by...
-
In a system with a high degree of concurrency, what role do locks, mutexes, and semaphores play in managing thread synchronization, and how do these mechanisms impact the scalability and reliability...
-
What laws and regulations apply to get quality and safety in home care?
-
chose a, b, c or d An organizational structure in which all the nonessential functions are outsourced and only the value-generating and strategic functions are retained in-house is called: Question 7...
-
Stone Beauty, Inc. is a merchandiser of stone ornaments. The company sold 8,000 units during the year. The company has provided the following information: Sales Revenue Purchases (excluding freight...
-
What is the relationship between context switching and thread scheduling, and how do scheduling algorithms account for context switching overhead when making scheduling decisions ?
-
Digital Camera Company operates in a highly competitive market. Digital Camera's most popular camera is the K8 that current sells at a price of $120 per unit. Digital Camera expects to manufacture...
-
A company pledges their receivables so they may Multiple Choice Charge a factoring fee. Increase sales. Recognize a sale. Collect a pledge fee. Borrow money. Failure by a promissory notes' maker to...
-
What are the differences among the various measures of variation, such as the range, interquartile range, variance, standard deviation, and coefficient of variation, and what are the advantages and...
-
For this problem, use the following multiple regression equation: a. Interpret the meaning of the slopes. b. Interpret the meaning of the V intercept 50 2x7X
-
A vice president for marketing recruits 20 college graduates for management training. Each of the 20 individuals is randomly assigned, to one of two groups (10 in each group). A "traditional" method...
-
The owner of Cheetle Moving and Storage incurred the following costs in acquiring land, making land improvements, and constructing and furnishing the company's office building in the year ended...
-
Nouvou Diet Systems Company is a defendant in a lawsuit that claims damages of \(\$ 55,000\). On the balance sheet date, it appears unlikely that the court will render a judgment against the company....
-
A \(\$ 10,000,9\) percent, one-year note payable was issued on July 31. The balance sheet at December 31 will report interest payable of a. \(\$ 0\) because the interest is not due yet b. \(\$ 522....
Valuation For M And A Building Value In Private Companies 2nd Edition - ISBN: 0470604417 - Free Book
Study smarter with the SolutionInn App