Answered step by step
Verified Expert Solution
Question
1 Approved Answer
table [ [ Student , Student _ Course ] , [ StudentID , FirstName,LastName,Gender,Address,,CityofBirth,StudentiD,CourselD,Semester,Grade,Room ] , [ 1 , Ahmed,Abdullah,Male, 1 2 3 Main
tableStudentStudentCourseStudentIDFirstName,LastName,Gender,Address,,CityofBirth,StudentiD,CourselD,Semester,Grade,RoomAhmed,Abdullah,Male, Main St Gaza City,,Gera,Fall Room AFatima,,Female, Oak St Ramallah,,Ramallah,Fall Room BMalid,Khalil,Male, Pine St Hebron,,Hebron,Spring Aocm CLina,Salem,Female, Codar St Nablus,,Nablus,Fall Room DTaria,Hassan,Male, Olve St Bethlehem,Bethlehem,Spring Room EsNout,Mahmoud,Female : Walnut St Jenin,,Jenin,Fall Room ASare,Ahmad,Female, Maple St Gaza City,,Gaza,Fall Room BROrnar,Yousef,Male, Pine St Hebron,,Hebron,Fall Rocm CDina,Rami,Female, Birch St Jerusalem,,Jerusalem,Spring Room DAya,Omar,Female, AlMutanabbi St Shatila, Gaza City,Gaza,Fall Rloom ESOSSamir,Fhalid,Male, AlQuds St AVMasyoun, Ramallah,Famallah,Fall Room AFall Room BCourse,Spring Room CCourselD,ID Name,Description,isRequired,CreditHours,Price,,Mathematics,Introduction to Mathematics,Mandatory,Computer Science,Programming Fundamentals,Mandatory,History,World History,Elective,CulsCultural Studies,Electivo,Artificial Intelfigonce,
tableIntroduction to AIFundamentals of Data StructuresMandatory,Data Structures,Mandatory,
Given the data above write SQL queries to answer the following questions:
Print the name of the most expensive course.
How would you change the above query to print the name of the most expensive elective course.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started