Show all pairs of authors who have responded to each other's posts (Person A has responded...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Show all pairs of authors who have responded to each other's posts (Person A has responded to any of Person B's posts, and Person B has responded to any of Person A's posts). Format usernames as 20 characters wide and sort in alphabetical order by first author followed by second author. Use subqueries in the FROM/JOIN clauses. Hint: First, write a query that finds all pairs of authors where Author A has responded to Author B's post. Then, write an outer query that joins two copies of the first query together, and matches Author A in the first subquery to Author B in the second subquery, and matches Author B in the first subquery to Author A in the second subquery. Correct answers will look like this: First Author Alan. Turing Alan Turing fox.henry jordon.fuchs jordon.fuchs scott.ashley Second Author jordon.fuchs scott.ashley jordon.fuchs Alan. Turing fox.henry Alan Turing Show all pairs of authors who have responded to each other's posts (Person A has responded to any of Person B's posts, and Person B has responded to any of Person A's posts). Format usernames as 20 characters wide and sort in alphabetical order by first author followed by second author. Use subqueries in the FROM/JOIN clauses. Hint: First, write a query that finds all pairs of authors where Author A has responded to Author B's post. Then, write an outer query that joins two copies of the first query together, and matches Author A in the first subquery to Author B in the second subquery, and matches Author B in the first subquery to Author A in the second subquery. Correct answers will look like this: First Author Alan. Turing Alan Turing fox.henry jordon.fuchs jordon.fuchs scott.ashley Second Author jordon.fuchs scott.ashley jordon.fuchs Alan. Turing fox.henry Alan Turing
Expert Answer:
Answer rating: 100% (QA)
Answer SQL code SELECT SUBQ1author AS First Author SUBQ2author AS Second Author FROM S... View the full answer
Related Book For
Management And Organisational Behaviour
ISBN: 9780273728610
9th Edition
Authors: Laurie J. Mullins, Gill Christy
Posted Date:
Students also viewed these databases questions
-
Company mergers and amalgamations are strategic business activities that involve the combination of two or more companies to form a new entity or integrate their operations. These transactions have...
-
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...
-
Calculate the standard entropy change for the following reactions at 25C. Comment on the sign of r S. (a) 2 Al(s) + 3 Cl 2 (g) 2 AlCl 3 (s) (b) 2 CH 3 OH() + 3 O 2 (g) 2 CO 2 (g) + 4 H 2 O(g)
-
What is the minimum angle your eye can resolve, according to the Rayleigh criterion and the above assumptions? A. 0.862 10-4 rad B. 1.05 10-4 rad C. 1.43 10-4 rad D. 1.95 10-4 rad
-
An external force (in addition to the spring force) is continually applied to an object of mass m attached to a spring that has a spring constant k. The frequency of this external force is such that...
-
Use the August information from the Work Together above. An income statement for Cheries Pizza is included in the Working Papers. Work independently to complete this problem. 1. Calculate the...
-
Upon inspecting the books and records for Wernli Company for the year ended December 31, 2011, you find the following data: (a) A receivable of $640 from Hatch Realty is determined to be...
-
ABC Investment Advisors is considering investing in bonds and stock issued by Major Works Incorporated. As part of the decision process, ABC is estimating Major s bond and stock values and expected...
-
Consider a binary mixture for which the excess Gibbs energy is given by G E /RT = 2.6x 1 x 2 . For each of the following overall compositions, determine whether one or two liquid phases will be...
-
Suggest at least 3 touchpoints for each stage of the decision-making process that SEDO can use. Search and find in which of the touchpoints for information search stage suggested by you, can you see...
-
A hiker walks 29 km from her base camp at 38 south of west. The next day, he walks 40 km in a direction of 68 east of north and discovers a ranger's house. Find the magnitude and direction of his...
-
Explain the development of slavery in North America. When did slavery become widely used in the British colonies? How did the institution of slavery vary across the colonies and how did it differ...
-
Compare California's government to the U . S . government in two of the following aspects: executive branch, legislative branch, judicial branch, constitutional amendment process.
-
A coworker is preparing a presentation for an organization's various stakeholders and asks for your advice. Use a company of your own choice. Answer the following questions in detailed. Question 1:...
-
Compare this breach to the Equifax data breach that also happened recently. (If you are not familiar with the Equifax breach, take a few minutes to conduct an online search and read about it.) Was...
-
1 = 4 different color 5. (1 point (bonus)) Your sock drawer is filled with black, white, grey, and blue socks. In the sack dark and half asleep, you reach into the drawer and grab a handful of socks,...
-
Show that if A is any m n matrix, then Im A = A and AIn = A.
-
Attempting to analyse culture in terms of different levels or generic typologies is too simplistic and prescriptive. it serves no useful purpose in evaluating applications of management and...
-
Change is nothing new and a simple fact of life. Some people actively thrive on new challenges and constant change, while others prefer the comfort of the status quo and strongly resist any change....
-
For an organisation with which you are familiar, you are required to: 1. Review critically the relevance and effectiveness of its present strategy. 2. Itemise the internal Strengths and Weaknesses of...
-
The Forensic Accounting Box of this chapter noted that forensic accounting techniques are being used to help pick stocks for investing. How might identifying accounting concerns be useful for...
-
In the corporate social responsibility highlight regarding Starbucks on page 528 in this chapter, it was stated that Starbucks believes in measuring and monitoring the company's CSR progress. The...
-
The fiscal year 2017 annual report of General Mills, Inc. is available on this book's Website. Required a. How many shares of common stock is General Mills authorized to issue? How many common shares...
Study smarter with the SolutionInn App