Question: This is what I have so far- select to_user_id, date_read from messages Inner join user_id on to_user_id.messages = user_id.users where date_read = NULL not sure

 This is what I have so far- select to_user_id, date_read from

This is what I have so far-

select

to_user_id, date_read

from messages

Inner join user_id on to_user_id.messages = user_id.users

where date_read = NULL

not sure how to account for more than 10 messages

Consider the following users and messages tables to answer the question below. users user_id username email friend_count 3437315 janedoe2.0 janedoe2.0@email.com 5 3437316 600017 princessluv89 princessluv8996@email.co 96 m 3437317 sk8ter 41!f3 sk8ter41!f3@email.com 583 messages message_id rom_user_id to_user_ic date_sent read message 1 3437317 2138102 2015-03-15 00:02:17 2015-03-15 00:03:05 "Hi!!! Wanted know how were doing?! Miss you !!.." 2 1438443 5937440 NULL 2015-03-15 00:02:24 "Don't forget to like and comment on my new pic... 3 2331234 1231232 2015-03-15 00:02:25 2015-04-01 00:11:08 "Let's hang out!" Question 5: Write a SQL query to determine which users have more than 10 unread messages

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!