Question

1. We sell music  to our members. Employees recommend titles by rating them from1 to 5 with...

1. We sell music  to our members. Employees recommend titles by rating them from1 to 5 with 1 being not very good to 5 being very good

What would your strategy be to write SQL code for the following query: "Show the members and the title and price for each of the products they bought."

I would use a left outer join

I would not use a join because the data comes from one table

I would use an equality join to find matching records in two or more tables by matching primary and foreign keys

I would use a subquery

I would use a recursive join to join a table to itself

2. We sell music  to our members. Employees recommend titles by rating them from1 to 5 with 1 being not very good to 5 being very good

How many tables would be needed to write the following query: "Show the average rating that each employee has given for all the products that employee has rated"

1

2

3

4

Homework Answers

Answer #1

I would assume the below tables in this scenario:

Table titles - this table will have title, price and title name

Table title_ratings - this table will have title and employee ratings with employee name

Table members - This table will have memeber details

Table orders - this table will have member id and titles bought

1. I would use an equality join to find matching records in two or more tables by matching primary and foreign keys

We can join tables membera, orders and titles to get the info we need

2. 1

We just need data from table title_ratings to group by employees and get an avg rating per user.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
We sell music  to our members. Employees recommend titles by rating them from1 to 5 with 1...
We sell music  to our members. Employees recommend titles by rating them from1 to 5 with 1 being not very good to 5 being very good Write the SQL code (with each clause on its own line to "Show the product titles whose average rating is above the average rating for all products"
New Wave Music New Wave Music is an international company that develops music software that is...
New Wave Music New Wave Music is an international company that develops music software that is used to compose music, play recordings in clubs, and produce albums. Founder and CEO Moritz Halbach is the company’s biggest fan. He said “I started this company from nothing, just me, my ideas, and my computer. I love music---love playing music, love writing programs for making music, love listening to music---and the money is nice, too.” Moritz says that he never wanted to work...
1. ‘We have to get this new product and fast’, said the Operations Director. ‘Our competitors...
1. ‘We have to get this new product and fast’, said the Operations Director. ‘Our competitors are close behind us and I believe their products will be almost as good as ours when they launch them’. She was talking about a new product that the company hoped would establish them as the leader in the market. The company had put together a special development team together with their own development laboratory. They had spent £10,000 on equipping the laboratory and...
CASE # 1 (Managing without Managers) Just Music, a European commercial music service, is synonymous with...
CASE # 1 (Managing without Managers) Just Music, a European commercial music service, is synonymous with dramatically changing the way consumers access and use music on a day-to-day basis. They have succeeded in moving consumers away from buying music and, instead, moving them towards a model of renting the music they enjoy for a monthly fee. The European music giant, launched in 2008, was developed into the business we know today by European entrepreneur Paul Moon, who was inspired to...
Case 8: Patagonia Adopts Organizational Structure to Attract and Empower Passionate Employees What type of organization...
Case 8: Patagonia Adopts Organizational Structure to Attract and Empower Passionate Employees What type of organization allows employees to take off during the day to go surfing? The answer is Patagonia. When founder Yvon Chouinard first developed the company, he was not interested in pursuing profits as the firm’s main goal, but rather to contribute toward improving the planet. New employees are hired based in large part on their passion for the firm’s goals, and rather than being viewed as...
Team 5 answer the questions What are 4 key things you learned about the topic from...
Team 5 answer the questions What are 4 key things you learned about the topic from reading their paper? How does the topic relate to you and your current or past job? Critique the paper in terms of the organization and quality. Incentive Systems             In this paper, we will focus primarily on financial rewards that companies use to attract, retain and motivate the brightest and most talented candidates in the labor market. By providing a reward system that...
Read the case and answer the following Multiple choice questions. There are 5 questions total, where...
Read the case and answer the following Multiple choice questions. There are 5 questions total, where some of them might have more than one correct answers. You can choose more than one options where you think is suitable for the above question. PERFORMANCE MANAGEMENT Project Manager Oliver Caine skimmed his notes as he waited for Ben Robins to come to the meeting room. He hoped Ben would arrive soon, as he wanted to get the con-versation finished quickly. Ben walked...
Item Chapter 5 Planning Programs that Prevent Discipline Problems Quote of the Day #1: You can...
Item Chapter 5 Planning Programs that Prevent Discipline Problems Quote of the Day #1: You can discover more about a person in an hour of play than in a year of conversation. Plato This chapter focuses on planning programs that prevent discipline problems. I consider myself a "constructivist teacher". I think students learn best when the information is meaningful to them and the process engages their curiosity and exploration. I want to encourage students to explore ideas and develop them,...
FinTechCo Case Study Company Overview FinTechCo is a medium-sized financial services company comprising of 45 employees...
FinTechCo Case Study Company Overview FinTechCo is a medium-sized financial services company comprising of 45 employees with an annual revenue of $10 million. It has approximately 1000 customers comprising of private individuals and small companies. FinTechCo’s mission is to provide financial services and advice to its clients, to sell various products and services and offer consultation guidance regarding the information systems that support them. Problem Statement FinTechCo’s technical team were originally qualified financial planners who transitioned into technical roles and...
1. Explain and give examples of the 5 existing business model patterns. 2. Can the business...
1. Explain and give examples of the 5 existing business model patterns. 2. Can the business below use that business model pattern? Explain. Overview- We are going to start a bakery business as I have my interest in bakery. This is going to be start-up business plan. The name of our Bakery would be “Bake It or Make It”. It would be managed by me along with my team of new bakers around the city. Opening a bakery at initial...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT