student_club Database Schema

Database Description

Database for university student clubs, members, and activities.

Schema Structure
Schema information not available for this database.
Example Queries

SQL Query:
SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31'
Evidence:

event_date BETWEEN '2019-11-01' and '2020-03-31'

Difficulty: simple

SQL Query:
SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Tyler' AND T1.last_name = 'Hewitt'
Difficulty: simple

SQL Query:
SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'
Evidence:

name of events refers event_name; game event that was closed refers to type = 'Game' where status = 'Closed'; event_date BETWEEN '2019-03-15' and '2020-03-20';

Difficulty: moderate

SQL Query:
SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'
Difficulty: simple

SQL Query:
SELECT T2.city FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'
Evidence:

hometown refers to city

Difficulty: simple
Back to Database Explorer