Upload
henrik
View
23
Download
0
Embed Size (px)
DESCRIPTION
SQL Exercises. Some Queries. All information for all students Name and ID for all students Dept name and title for all courses Instructor name and salary after a 10% raise call this computer value New Salary Dept name and course title for all courses in a new col called CourseCode - PowerPoint PPT Presentation
Citation preview
PowerPoint Presentation
SQL ExercisesSome QueriesAll information for all studentsName and ID for all studentsDept name and title for all coursesInstructor name and salary after a 10% raise call this computer value New SalaryDept name and course title for all courses in a new col called CourseCodeId and Start and end times for all time slots
The total salary of all instructorsThe maximum, minimum and average budget of all departments with the ave rounded to whole dollarsGet the first three characters of each department nameGet the last three characters of each student nameMake a code for each course that consists of the first three characters of the dept name and the first three characters of the course title Sort the students by nameSort the instructors by name within departmentSort the students in descending order base on credit hoursList students but print FR, SO, JR, or SR instead of the number of creditsList the classroom info but replace the name Watson with JonesSelect all students majoring in Comp. Sci. Select the three instructors with the highest salariesSelect students in Comp. Sci. or HistorySelect students in Comp. Sci. or History but