View on GitHub

Semester7

Notes of courses done/attended in semester 7 in college

Assignment #1

Problem Statement

link

Query Format

query

Input Data Format

data

Approach

    select category_name, count(category_code) from category where category_name = Books group by category_name having count(category_code) > 0

hout

hout

    select category_name, count(category_code) from category where category_name = 'Books' group by category_name having count(category_code) > 0

spark

select product_id, count(similar_product_id) from similar where product_id = 1559362022 group by product_id having count(similar_product_id) > 0
select category_name, count(category_code) from category where category_name = Books group by category_name having count(category_code) > 0
select asin, title, sum(downloaded) from product where asin = 0827229534 group by asin, title having sum(downloaded) > 0
select customer_id, max(rating) from review where customer_id = A2JW67OY8U6HHK group by customer_id having max(rating) > 0

Instructions/Assumptions