Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How many likes were received on all the posts made by friends on the day before today in a dataset that includes two tables: one

How many likes were received on all the posts made by friends on the day before today in a dataset that includes two tables: one containing information about the date, post_id, relationship (e. g., friend, group, page), and interaction (e. g., like, share, etc. ), and another table containing post_id and the ID of the person who posted them?
Assume today as the day you are solving the Problem.
Tables Schema as Below:
post_interactions
columnName dataType
interaction_id INT
post_id INT
interaction_type VARCHAR(50)
interaction_date DATE
relationship_type VARCHAR(50)
posts
columnName dataType
post_id INT
author_id INT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions