The aim of assignment 1 is to implement a database schema and execute different types of SQL queries in Oracle SQL developer. Given the following relational schema: Student (studid, FirstName,...




  1. Write the appropriate SQL query for each of the following questions:


A) Display ALL the activities organized by the IT club


B) Display the number of students who are acting in each club.


The aim of assignment 1 is to implement a database schema and<br>execute different types of SQL queries in Oracle SQL<br>developer.<br>Given the following relational schema:<br>Student<br>(studid,<br>FirstName,<br>LastName,<br>Email,<br>phoneNumber, DateofBirth, GPA)<br>Club (clubid, ClubName, #studid)<br>MemberOf (#clubid, #studid, joiningDate )<br>Activities (actid, actdt, place, durationNbHour)<br>Organize (#actid, #clubid , fee)<br>Table name: Student<br>studid<br>Char(9)<br>Primary key<br>FirstName<br>Varchar2(50) NOT NULL<br>LastName<br>Varchar2(50)NOT NULL<br>Email<br>Varchar2(50) NOT NULL, UNIQUE<br>phoneNumber<br>Number(8)<br>NOT NULL, UNIQUE<br>DateofBirth<br>Date<br>NOT NULL<br>GPA<br>Number(1,2) NOT NULL<br>Table name: Club<br>clubID<br>Number(3) Primary key<br>ClubName<br>Varchar2(20) NOT NULL<br>NOT NULL, UNIQUE,<br>Foreign key<br>studid<br>Char(9)<br>Table Name: MemberOf<br>ClubID<br>Number(3) Primary Key, Foreign Key<br>Studid<br>Char(9)<br>Primary Key, Foreign Key<br>joiningDate<br>Date<br>Table Name: Activities<br>Actid<br>Number(3) Primary Key<br>Actdt<br>DATE<br>NOT NULL<br>Place<br>Varchar2(50)INOT NULL<br>durationNbHour Number<br>NOT NULL<br>Table Name: Organize<br>actid<br>Number(3) Primary Key, Foreign key<br>clubID<br>Number(3) Primary key, Foreign key<br>Fee<br>Number(4,2)<br>

Extracted text: The aim of assignment 1 is to implement a database schema and execute different types of SQL queries in Oracle SQL developer. Given the following relational schema: Student (studid, FirstName, LastName, Email, phoneNumber, DateofBirth, GPA) Club (clubid, ClubName, #studid) MemberOf (#clubid, #studid, joiningDate ) Activities (actid, actdt, place, durationNbHour) Organize (#actid, #clubid , fee) Table name: Student studid Char(9) Primary key FirstName Varchar2(50) NOT NULL LastName Varchar2(50)NOT NULL Email Varchar2(50) NOT NULL, UNIQUE phoneNumber Number(8) NOT NULL, UNIQUE DateofBirth Date NOT NULL GPA Number(1,2) NOT NULL Table name: Club clubID Number(3) Primary key ClubName Varchar2(20) NOT NULL NOT NULL, UNIQUE, Foreign key studid Char(9) Table Name: MemberOf ClubID Number(3) Primary Key, Foreign Key Studid Char(9) Primary Key, Foreign Key joiningDate Date Table Name: Activities Actid Number(3) Primary Key Actdt DATE NOT NULL Place Varchar2(50)INOT NULL durationNbHour Number NOT NULL Table Name: Organize actid Number(3) Primary Key, Foreign key clubID Number(3) Primary key, Foreign key Fee Number(4,2)

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here