Retrieve a list of all the courses under the "CS" department, listed alphabetically by course name. Retrieve the section ID, course name, course number, semester, year, and Instructor of the courses taught by Instructor "Anderson". Insert a tuple for a new COURSE with the following information: 4.The course name is Computer networks, and the course number is CS3480. It belongs to the CS department and has a 4-hours credit.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Answer the following questions by referring to the tables below.
COURSE
Course_name |
Course_number |
Credit_hours |
Department |
Intro to Computer Science |
CS1310 |
4 |
CS |
Data Structures |
CS3320 |
4 |
CS |
Discrete Mathematics |
MATH2410 |
3 |
MATH |
|
CS3380 |
3 |
CS |
SECTION
Section_ID |
Course_number |
Semester |
Year |
Instructor |
85 |
MATH2410 |
Fall |
07 |
King |
92 |
CS1310 |
Fall |
07 |
Anderson |
102 |
CS3320 |
Spring |
08 |
Knuth |
112 |
MATH2410 |
Fall |
08 |
Chang |
119 |
CS1310 |
Fall |
08 |
Anderson |
135 |
CS3380 |
Fall |
08 |
Stone |
- Retrieve a list of all the courses under the "CS" department, listed alphabetically by course name.
- Retrieve the section ID, course name, course number, semester, year, and Instructor of the courses taught by Instructor "Anderson".
- Insert a tuple for a new COURSE with the following information:
4.The course name is
Step by step
Solved in 4 steps