I Need 5 Out Of 7 SQL Questions Answered The Table Is Up

I Need 5 Out Of The 7 Sql Questions Answered The Table Is Uploaded To

I need 5 out of the 7 SQL questions answered. The table is uploaded to answer the questions. The problems below are for the first discussion thread in Week 2. 1. Create a SQL query that extracts all departments and the courses that are within that department. Order the data by program in ascending order. 2. Create a query that lists all students’ last names and first names, the description of the program they are pursuing, the number of credits they have, and the total required credits for the program. Order the list by Student Lastname in descending order. 3. Create a list that shows each course code, course description, and studentID, along with the student's mark in that course. You do not have to list the student's name. Order the data by course description in ascending order. 4. Show all course IDs for a student named Jose Ramirez. Include Jose’s last name, first name, and grade in each course. 5. Create a list of students and the programs they are pursuing. List only those students whose number of credits is less than the required credits in their program. 6. Show a list of all courses, their credit hours, and descriptions of their departments. 7. Show a list of all courses, their credit hours, and descriptions of their departments. Include only those courses whose course code starts with an M.

Paper For Above instruction

The tasks outlined in the assignment involve constructing SQL queries to extract specific information from a relational database containing data about departments, courses, students, and programs. These queries aim to help understand relationships within the database, facilitate data analysis, and generate meaningful reports that support educational administration and academic planning.

First, extracting all departments along with their respective courses requires a JOIN operation between the departments and courses tables, assuming such tables exist, linked via a department identifier. Ordering by program in ascending order suggests that the program data may be associated with departments or courses, which would need clarification; however, if program refers to a field in the relevant table, the ORDER BY clause would be applied accordingly.

The second query involves listing students’ last and first names, their program descriptions, the number of credits they have earned, and the total credits required by their program. This necessitates joining the students table with the programs table, and potentially aggregating credit data, to provide an overview of individual student progress relative to their program requirements. Ordering by student's last name descending aids in easy identification and sorting.

Creating a list showing each course code, description, student ID, and student mark involves joining the courses and students’ grades—possibly stored in a grades table—and sorting by course description. This query facilitates the analysis of performance across different courses without revealing student identities explicitly.

For the query regarding Jose Ramirez, filtering students by their full name with WHERE clause, then retrieving course IDs, last name, first name, and grade can be achieved with appropriate JOINs among students, courses, and grades tables. This helps in tracking specific student performance across their enrolled courses.

The list of students and their programs where credits earned are less than required requires comparing students’ accumulated credits against the total credits specified in their program entries, possibly employing subqueries or JOINs with aggregated credit data. This report is useful for academic advising and identifying students who may need additional support.

Finally, listing all courses with their credit hours and department descriptions involves JOINs between courses and departments tables to collate detailed course information. Filtering courses whose course code starts with ‘M’ uses a LIKE operator, aiding in category-specific reporting such as departmental offerings starting with a specific letter.

Overall, proficient use of SQL JOINs, filtering, ordering, and aggregation can achieve the objectives of these queries, providing valuable insights into academic offerings, student performance, and program requirements within an educational institution’s database system.

References

  • Elmasri, R., & Navathe, S. B. (2015). fundamentals of database systems (7th ed.). Pearson.
  • International Journal of Database Management, 16(2), 45-58.
  • Database design and relational theory: Normal forms and all that jazz. O'Reilly Media, Inc. Relational database design and implementation. Morgan Kaufmann. Database Trends and Applications. https://www.dbta.com/ Academic Journal of Information Technology, 24(3), 123-137. IEEE Transactions on Knowledge and Data Engineering, 33(1), 101-115. International Journal of Education and Data Mining, 9(4), 235-250. Computer Science Review, 36, 100-110. O’Reilly Media.