Use arithmetic operators and aggregate functions. Procedure: 1. Create a table named StudentGrade with the following columns and values. Set the appropriate data type for each column. CourseCode CourseTitle Units Grade Data Structures and Algorithms Readings in Philippine History Physical Education 3 COSC1003 3 1.50 GEDC1006 3 2.25 PHED1003 2 1.25 3 1.25 1.75 GEDC1014 Rizal's Life and Works 1.50 COSC1007 3 Human-Computer Interaction Object-Oriented Programming Principles of Communication Platform Technology INTE1044 2.25 COSC1001 COSC1008 1.50 2. Using queries, display the following: a. The number of courses/subjects b. The total units c. The number of courses with grades higher than 2.00 (lower than 2.00 in the column) d. The number of courses with grades lower than 2.00 (higher than 2.00 in the column) e. The general weighted average (Get the sum of all the products of units and grades, then divide by the total units.) Expected output: a. 8 b. 23 c. 6 d. 2 e. 1.67
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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps