There's a "users" table that has more than 1M rows of "users" information. The image below are the first 3 rows. Implement a SQL query that retrieves the "email" and "friend_count" of the "user_id" with the most friends

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter13: Web Site Applications
Section: Chapter Questions
Problem 6E
icon
Related questions
Question

There's a "users" table that has more than 1M rows of "users" information. The image below are the first 3 rows.

Implement a SQL query that retrieves the "email" and "friend_count" of the "user_id" with the most friends.

users
user_id
username
email
friend_count
3437315
janedoe2.0
janedoe2.0@email.com
5
3437316
princessluv8996
princessluv8996@email.com
600017
3437317
sk8ter4!f3
sk8ter4l!f3@email.com
583
Table Name: users
user_id: Id of user
username: name of user
email: email of user
friend_count: user's number of friends
Transcribed Image Text:users user_id username email friend_count 3437315 janedoe2.0 janedoe2.0@email.com 5 3437316 princessluv8996 princessluv8996@email.com 600017 3437317 sk8ter4!f3 sk8ter4l!f3@email.com 583 Table Name: users user_id: Id of user username: name of user email: email of user friend_count: user's number of friends
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning