Question: I have two SQL questions. 1: How many people follow Joey? 2: How many people does Joey follow? Attached are images that can help you

I have two SQL questions.

1: How many people follow Joey?

2: How many people does Joey follow?

Attached are images that can help you solve this.

I have two SQL questions. 1: How many people follow Joey? 2:

How many people does Joey follow? Attached are images that can help

sql DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS follows; CREATE TABLE users NOT NULL, USERID INT NAME VARCHAR 256) NOT NULL, YEAR FLOAT NOT NULL, PRIMARY KEY (USERID) CREATE TABLE follows NOT NULL, USERID INT NOT NULL, FOLLOWID INT PRIMARY KEY USERID FOLLOWID) Done. Done. Done. Done. capture count 0 users Ian Daniel "Sarah "Kelly Sam "Alison", "Henry", "Joey", "Mark", "Joyce", "Natalie", "John" years [1, 3, 4, 3, 4, 2, 5, 2, 1, 3, 4, 21 for username 1 year in zip (users years count sql INSERT INTO users VALUES Count $username year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!