Question
Please read both the SQL queries and tell me what they are saying/doing (step by step if you can)
a. Read the following, translate to English and describe what question the auerv is SELECT Entertainers.EntstageName, FROMEn

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a.
Here we have three SQL cluases which are select, from and where.

In the query we are selecting the attributes Entertainers.EntStageName, Engagements.StartDateEngagement.EndDate,
Engagements.ContractPrice from the a join but not a table.

This join is an INNER join of Engagements and Entertainers and for the condition to join them is
Engagements.EntertainerId=Entertainers.EntertainerId.

So the join will occur wherever the EntertainerId is same in both the tables Engagements and Entertainers.

From the result of the join operation we are selecting attributes.

b.

b.
Here also first we are selecting some attributs in the SELECT statement.

But in this case we have to joins.

If you observe there is a LEFT OUTER join and an INNER join.


First the join inside the brackets will happen, which is an INNER join.
Where we are joining Musical_Preferencesn table with Customers table on the condition that the CustomerId should
be equal in both the tables. So thi INNER join returns all the matched records from both the tables wherever CustomerId
is same. This result a joined data.

From the resulted data above we are joining with Musical_Styles, but this join is LEFT OUTER join on the condition that
StylesId from both the tables Musical_Preferencesn and Musical_Styles is same.
LEFT OUTER join returns all the records matched wherever StylesId is same and remaning records of the table that is placed
on the left side of the LEFT OUTER join statement with nulls for non-matching records.

From this resultant data we are retrieving some attributs.

Please comment if you need any help.

Add a comment
Know the answer?
Add Answer to:
Please read both the SQL queries and tell me what they are saying/doing (step by step if you can)
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please help me on the SQL queries, thank you so much. Write a query to display the title and publisher as well as the p...

    Please help me on the SQL queries, thank you so much. Write a query to display the title and publisher as well as the publisher contact for each book using JOIN...USING clause. Write a query to show the first and last names of customers who have ordered cooking books. Use the WHERE clause to join the tables. Write a query to show the title, cost and ISBN of each book in the books table. If the book has been ordered,...

  • CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This...

    CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This Assignment Is About: Facts, Rules, Goals Prolog execution model Arithmetic operations . Recursive Rules B. Use the following Guidelines Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc.) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of...

  • CMP105_Wk7_Assignment_21.19 [Read-Only] - Word View Tell me what you want to do... Mailings Review ... 1...

    CMP105_Wk7_Assignment_21.19 [Read-Only] - Word View Tell me what you want to do... Mailings Review ... 1 TAaBb AaBbCD AalbCcD 1. AaBb AaBbc AaB Aal Heading 1 T Normal Normal In... Numbere... Heading 2 Titles wwwy Paragraph Styles Read the following case study and answer the questions that follow Grace Speak is a fourth-year student at Best University. She and her fellow classmates are working hard in their final courses and preparing for exams. Inspired by the teamwork that the healthcare...

  • Please help ASAP! Thanks References Mailings Review View Help Tell me what you want to do...

    Please help ASAP! Thanks References Mailings Review View Help Tell me what you want to do Aa- e.-| | | :-. |g.B- | | 1Normal 1No Spac Heading 1 Heading 2 Paragraph Styles 1. Explain the components of the fraud triangle? Which component is most closely tied to internal controls? Describe in detail two common internal control practices. 2. Below is the income statement for Smith Company, a merchandising firm. Take this information and prepare a contribution margin income statement....

  • 50. Client-centeredness and humility might look like saying, "Tell me about what's most important to you...

    50. Client-centeredness and humility might look like saying, "Tell me about what's most important to you here." True False 51. Appropriate regression means introducing new tasks weekly. True False 52. Rewarding behaviors, not outcomes means focusing on measurements first. True False 53. A demonstration of your client's mental skills include: Going to the farmer's market, Following the "inner compass" Learning about protein All of the above are correct 54. During step 1 of the coaching process, aim to identify bright...

  • Industrial Psychology: Please read the case above before answering the following question: What changes would you...

    Industrial Psychology: Please read the case above before answering the following question: What changes would you suggest that could increase the transfer of training in this case? What Went Wrong at University Hospital (Part 1)? Pat Rowe, Vice President of University Hospital, recently attended a conference session that discussed the problems of integrating computer technology into the work practices of health care professionals. The session lecturer argued that implementation often fails because staff do not receive proper training in the...

  • Can someone please tell me what chapters (1-5) these questions are based on? I have already answered the questions and u...

    Can someone please tell me what chapters (1-5) these questions are based on? I have already answered the questions and understand how to solve the material, but i want to be able to pinpoint where i can find this info. in the book. I am using Brigham’s Fundamentals of Financial Management (pictures attached). If it is hard to read, please let me know. i will post better pictures. i know the time vale of money stuff already EDIT: HERE IS...

  • Can you please help me with creating this Java Code using the following pseudocode? Make Change C...

    Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.)                                                                                                                                  2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...

  • Read the article below and in your own words, (1-2 sentences) what is the "true direction"...

    Read the article below and in your own words, (1-2 sentences) what is the "true direction" or right way to interpret nature, according to Bacon? True Directions Concerning the Interpretation of Nature (1620) Francis Bacon Those who have taken it on themselves to lay down the law of nature as something that has already been discovered and understood, whether they have spoken in simple confidence or in a spirit of professional posturing, have done great harm to philosophy and the...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT