Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 4 [20' 5+5'+10 Consider the following database for a website, . Webpage(url, title) User username, age) Log ul,username, timestamp) Every time a user visits

image text in transcribed

Problem 4 [20' 5+5'+10 Consider the following database for a website, . Webpage(url, title) User username, age) Log ul,username, timestamp) Every time a user visits a webpage of this website, an entry is automatically created and inserted into the Log table. Write SQL statements for each of the following queries 1. List the username and age of users who visited encrypted webpages (note: an encrypted webpage uses https urls); COP 4710: DATABASE SYSTEMS Assignment 3 2. List how many times each URL has been visited by users in ages between 20 and 30 inclusive); 3. Create a view Pop WebAge(title, age) that shows pairs of webpage titles and user ages such that the webpage has been visited more than 1,000 times by users at the particular age (say, 45)

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

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions