Question: DBMS practical exercises ( 1 ) Introduction:This assignment focuses on practicing SQL by creating and querying adatabase on a local server. Refer to the sql
DBMS practical exercises Introduction:This assignment focuses on practicing SQL by creating and querying adatabase on a local server. Refer to the sqljs demo: Online SQL interpreterto explore sample SQL queries and understand the syntax. Use theknowledge gained from this demo to design and implement a universitydatabase schema on your local server.Your task includes: Creating a university schema with tables for entities such asstudents, courses, instructors, enrollments, and departments Populating the database with sample data to execute the querieseffectively Answering the provided questions by writing SQL queries, runningthem on your local server, and recording the results.Write queries in SQL on the University schema, to answer each of thefollowing questions: Find the names of all the instructors from Biology departmentFind the names of courses in Computer science department whichhave creditsFor the student with ID or any other value show allcourseid and title of all courses registered for by the student As above, but show the total number of credits for such coursestaken by that student Don't display the totcreds value from thestudent table, you should use SQL aggregation on courses taken bythe student.As above, but display the total credits for each of the students, alongwith the ID of the student; don't bother about the name of thestudent. Dont bother about students who have not registered forany course, they can be omittedFind the names of all students who have taken any Comp. Sci. courseever there should be no duplicate namesDisplay the IDs of all instructors who have never taught a couseNotesad Oracle uses the keyword minus in place of except; interpret "taught" as "taught or is scheduled to teach"As above, but display the names of the instructors also, not just theIDs.You need to create a movie database. Create three tables, one foractorsAID name one for moviesMID title and one foractorroleMID AID, rolename Use appropriate data types for eachof the attributes, and add appropriate primaryforeign keyconstraints Insert data to the above tables approx to rows in each tableincluding data for actor "Charlie Chaplin", and for yourself usingyour roll number as ID Write a query to list all movies in which actor "Charlie Chaplin" hasacted, along with the number of roles he had in that movie Write a query to list all actors who have not acted in any movie List names of actors, along with titles of movies they have acted in Ifthey have not acted in any movie, show the movie title as null. Donot use SQL outerjoin syntax here, write it from scratch.Submission: Format: Submit the work as a structured report in PDF or Wordformat. Include the following sections: Problem SQL Queries Results screenshots or outputs File Name: The file should be named in theformat: StudentNameStudentIDSQLHomework.Academic Integrity: Plagiarism or sharing of answers will result in a score of zero for allinvolved parties. All queries and results must be the student's original work.Technical Requirements: Use a specific SQL database on Oracle system for executing thequeries. Include screenshots or exported logs of the database environment toverify query execution
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
