Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Rules: All firms can have multiple supervisors, A student can perform more than one internships, A student can not perform internships in the same firm
Rules:
All firms can have multiple supervisors,
A student can perform more than one internships,
A student can not perform internships in the same firm more than once.
Every Student has:
Name,
Surname,
Student number,
E-mail,
Phone number,
SSN,
Registration status,
Registration date,
Password,
Birthdate.
Every Firm has:
Firm name, Address,
Phone,
Website.
Every Firm Supervisor has:
Firm,
Name,
Surname,
Phone,
E-mail.
Finally, every Assigned Internships has:
Student,
Firm,
Start date,
End date,
Supervisor.
Write the queries that perform the following operations:
- Create all tables considering types, primary / foreign keys, indexes and null/not null status.
- Display number of students whose status are not active.
- Display a grouped list of names and passwords of all students who share the same password in thesystem.
- Display a list of all student who has performed an internship in companies that have Softwareword in its name (e.g. A Software, B Software Systems, etc).
- Display a list of all internships performed in 2020. Your results must include student number,student name, firm name, firm e-mail, supervisor name, supervisor phone, start and end dates.
- Set status of students who has registered at least two years ago to passive.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started