Consider the following tables and give answers to the queries in Relational Algebra syntax. Queries are given
Question:
Consider the following tables and give answers to the queries in Relational Algebra syntax. Queries are given at the end of the tables.
Note: Just write the queries on the paper and submit them. No need to use Relax software.
P-T-O1. Write Relational algebra queries to answer the following questions:
a. Which students have an ID number that is less than 50000?
b. What is the name of the faculty member whose ID is 4756?
c. What is the smallest section number used in the first semester of 2008?
2. Write Relational algebra queries to answer the following questions:
a. How many students are enrolled in Section 2714 in the first semester of 2008?
b. Which faculty members have qualified to teach a course since 1993? List the faculty ID, course,
and date of qualification.
3. Write SQL queries to answer the following questions:
a. Which students are enrolled in Database and Networking? (Hint: Use SectionNo for each class so
you can determine the answer from the Registration table by itself.)
b. Which instructors cannot teach both Syst Analysis and Syst Design?
4. Write Relational algebra queries to answer the following questions:
a. What are the courses included in the Section table? List each course only once.
b. List all students in alphabetical order by StudentName.
c. List the students who are enrolled in each course in Semester I, 2008. Group the students by the
sections in which they are enrolled.
d. List the courses available. Group them by course prefix. (ISM is the only prefix shown, but there
are many others throughout the university.)
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart