Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write SQL queries to solve the following problems. We will be using the university database. All queries should involve only the instructor table. After you
Write SQL queries to solve the following problems. We will be using the university database. All queries should involve only the instructor table. After you are done, save your work as sql file and turn in the sql file into Moodle for grading.
Write a SQL statement to display all columns using the SQL asterisk wildcard character.
Write a SQL statement to display ID and name of the instructors ID appears first
Write a SQL statement to display department names.
Write a SQL statement to display unique department names. expect rows returned
Write a SQL statement to display all info about instructors having a salary greater than expect rows returned
Write a SQL statement to display department name, instructor name, and salary for instructors that have a salary less than Sort the results in ascending order by department name. expect rows returned
Write a SQL statement to display name, department name, and salary for instructors that have a salary less than and are in the department of History Sort the results in ascending order by department name and in descending order by salary. expect rows returned
Write an SQL statement to display ID name, and salary for all instructors having a salary greater than and less than expect rows returned
Write a SQL statement to show everything for all instructor with an ID starting with expect rows returned Note: The ID field of the instructor table is a varchar type instead of int to make this query valid.
Write a SQL statement to show ID and name for all instructors with a department name that includes the word Sciexpect rows returned
Write a SQL statement to show ID and name for all instructors with an a in the second position from the left in their names. expect rows returned
Format
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