Find the ids of instructors

Assignment Help Basic Computer Science
Reference no: EM133218152

Solve the following questions using Oracle. You are not allowed to use the syntax of any DBMS other than Oracle.

1. Find the ids of instructors who are also students using a set operation. Assume that a person is identified by her or his id. So, if the same id appears in both instructor and student, then that person is both an instructor and a student. Remember: set operation means union, intersect or set difference.

2. Find the ids of instructors who are also students using the set membership operator.

3. Find the ids of instructors who are also students using a set comparison operator.

4. Find the ids of instructors who are also students using the exists construct.

5. Find the names and ids of the students who have taken all the courses that are offered by their departments. Notice, the table course contains information about courses offered by departments.

6. Find the names and ids of the students who have taken exactly one course in the Spring 2010 semester.

7. Find the names and ids of the students who have taken at most one course in the Spring 2010 semester. Notice, at most one means one or zero. So, the answer should include students who did not take any course during that semester

8. Write a query that uses a derived relation to find the student(s) who have taken at least two courses in the Spring 2010 semester. Schema of the output should be (id, number_courses). Remember: derived relation means a subquery in the from clause.

9. Write a query that uses a scalar query in the select clause to find the number of distinct courses that have been taught by each instructor. Schema of the output should be (name, id, number_courses).

10. Use an outer join to find names of the instructors who never taught any course.

11. Solve a query that uses the with clause or a derived relation to find the id and number of courses that have been taken by student(s) who have taken the most number of courses. Schema of the output should be (id, number_courses).

Reference no: EM133218152

Questions Cloud

Describes the pipeline jungles anti-pattern : What best describes the pipeline jungles anti-pattern?
About the problem with fake news : In this module you read about the problem with fake news. Do you agree that this is a serious concern? Why or why not?
Details of malware incident : What was the recent malware incident and the details of the malware incident?
Distributed mutual exclusion slide set : Draw a state diagram of Maekawa's voting algorithm on the slide "Maekawa's algorithm" in the "Distributed mutual exclusion" slide set.
Find the ids of instructors : Find the ids of instructors who are also students using the set membership operator. Find ids of instructors who are also students using the exists construct
Expenses costs include maintenance : Expenses costs include maintenance, cleaning, and administrative expenses associated for a car rental.
Apply pattern recognition : Describe, in detail, at least two major logical parts of this problem where you would have to apply pattern recognition (not data representation).
Readily gain access : Find an example of some ?oor and wall tiling you can readily gain access to. Investigate the completed tiling work and use the checklist to assess the quality
Reasons packets can be sent : There are many reasons packets can be sent, and therefore received out of order. How is this a problem for selective reject?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describing phishing in the computer security

Write a brief abstract describing "Phishing" in the computer security world in around 200-300 words.

  Discuss conditions necessary for successful innovation

Discuss conditions necessary for successful innovation. discuss strategic opportunities to innovation with Big Data.

  Business intelligence-con-ducting neural network project

List and briefly describe the nine-step process in con-ducting a neural network project.

  Which will have the greatest impact on the back-work ratio

hich will have the greatest impact on the back-work ratio: a compressor isentropic efficiency of 80 percent or a turbine isentropic efficiency of 80 percent? Use constant specific heats at room temperature.

  Elements that affect strategy formulation

The elements that affect strategy formulation are the same whether a company is domestic or international. Do you agree or disagree with this statement? Why? Support your argument with examples.

  Describe the project the risks the mitigation plan

Recall a project that you considered at one time but decided against during the initiation phase because the risks were too great or the mitigation plan was insufficient to proceed. Describe the project, the risks, the mitigation plan, and why you..

  Powerful message and leave a distinct impression

Identify the basic design principles that help Web pages deliver a powerful message and leave a distinct impression.

  Function of governance in blockchain environment

The need and function of governance in a blockchain environment. Create a new thread, choose two aspects of enterprise blockchain governance

  Valid form of civil disobedience

1.) Do you agree that hacktivism is a morally valid form of civil disobedience?

  National cybersecurity and communications integration center

After reading the Cybersecurity Act of 2015, address the private/public partnership with the DHS National Cybersecurity and Communications Integration Center

  Why is phase 2 of the birch algorithm efficient

Why is it bad practice to include two highly correlated inputs to a clustering algorithm?

  Storage format for digital evidence

As an investigator, you are responsible for protecting the integrity of the data you collect from a hard drive.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd