
Using the relational
1) Which course titles were given by at least two different instructors during the past?
2) Which departments have at least two instructors and at least ten students?
3) Which students took COMP117 from Cem Kalyoncu and COMP124 from Zafer Erenel?
4) Which students are advised by Soydan Redif and took at least one course from Ezgi Ulker?
5) Which students took multiple courses from Zafer Erenel but not a single course from Vesile Evrim?
6) For each department, find out the highest salaried instructor name and the highest total credited student name.
You should also present the output of each query.
////the database of Lab 2 is on attached file)


Step by stepSolved in 2 steps with 1 images

- PLZ help with the following: Using Oracle SQL Translate your ER diagram into a relational schema in the form of SQL DDLs. Choose appropriatedata types for each attribute and include primary key and foreign key constraints, Check and NotNull constraints.arrow_forwardIn what scenarios can the UNPIVOT function be beneficial for data transformations in SQL?arrow_forwardUsing the instance of the Airport database, formulate the following queries in the relationalalgebra: 1)Display the number of all carriers and the average of their revenues. 2)Display the minimum, the average, and the maximum distances of the flights that arescheduled on October 17th, 2017? 3)Display, for each carrierID, the number of flights and the average of their distances. Examples of how to do it below:arrow_forward
- Use the given database to output the results of the following SQL queries: b.) SELECT ∗FROM course AS C INNERJOIN instructor AS I ON C.dept name = I.dept nameWHERE I.ID = 45565; c.) SELECT dept name, building, name, IDFROM department LEFTJOIN instructor ON budget = salary;arrow_forwardWhat are the potential issues with over-relying on the COALESCE function in SQL?arrow_forwardSimplify the following query (WHERE clause), expressed in SQL, on the example database above: SELECT ENAME, PNAME FROM EMP, ASG, PROJ WHERE (DUR > 12 OR RESP = "Analyst") AND EMP.ENO = ASG.ENO AND (TITLE = "Elect. Eng." OR ASG.PNO < "P3") AND (DUR > 12 OR RESP NOT= "Analyst") AND ASG.PNO = PROJ.PNOarrow_forward
- What differentiates SQL from other programming languages is its ability to...arrow_forwardComputer Science provide SQL code (Use the EBOOKS database) When a course is offered in several sections taught by more than one instructor, students have the ability to choose an instructor, otherwise they have no choice. The deans of each college would like to know how many courses have only one section in the schedule, how many courses have more than 1 section, but taught by the same instructor, how many courses have sections taught by more than one instructor. Sort the results alphabetically by College ID as shown below: COLLEGE SINGLE_SECTION MULTISECTION_ONE_INSTRUCTOR MULTIPLE_INSTRUCTORS CAS 83 21 22 CED 76 8 39 COB 72 16 13arrow_forwardThis is for SQL Give me a list of all of our vendors (by their name) and, if they have an invoice, give me the total number of invoices we have from them and the invoice date of their first invoice. The invoice date results should be provided in a way that shows the date only in the following format: mm/dd/yyyy (e.g. 10/04/2021)arrow_forward
- Based on SQL query knowledgearrow_forwardTo what extent does SQL diverge from standard programming languages?arrow_forwardUse the Pine Valley Furniture (PVF) database for this question. Write a SQL query to display the customer ID and total number of orders placed for those customers who placed more than one order.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





