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) 1. Write SQL queries to create the following tables according to the below descriptions. 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) NOT NULL durationNbHour Number NOT NULL Table Name: Organize Number(3) Primary Key, Foreign key actid IclublD Number(3) Primary key, Foreign key Fee Number(4,2)
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) 1. Write SQL queries to create the following tables according to the below descriptions. 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) NOT NULL durationNbHour Number NOT NULL Table Name: Organize Number(3) Primary Key, Foreign key actid IclublD Number(3) Primary key, Foreign key Fee Number(4,2)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question

Transcribed Image 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)
1. Write SQL queries to create the following tables
according to the below descriptions.
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
NULL, UNIQUE,
NOT
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)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY