Show students’ first name and last name, the course numbers the student took (don’t include currently taking) and its credits, and the grades of the courses in the ascending order of last name and first name and descending order of course number
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.
- Show students’ first name and last name, the course numbers the student took (don’t include currently taking) and its credits, and the grades of the courses in the ascending order of last name and first name and descending order of course number
STUDENT TABLE
100001 |
Johnson |
Ariel |
2000-07-10 |
Y |
100002 |
Green |
Robin |
2001-11-02 |
Y |
100003 |
Johnson |
Charles |
1995-01-12 |
Y |
100004 |
Pearson |
Jeffery |
1996-02-06 |
Y |
100005 |
Sears |
Miguel |
1998-10-31 |
Y |
100006 |
Kyle |
Leah |
2000-05-29 |
Y |
100007 |
Myers |
Lynda |
1980-08-24 |
Y |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps