Περιεχόμενο Μαθήματος
Get Started with SQL Querying
Σε αυτήν την ενότητα θα μελετηθούν οι βασικές αρχές χτισίματος ενός απλού SQL Query.
0/6
Functions
Σε αυτήν την ενότητα θα συζητηθούμε μερικές κοινές functions που χρησιμοποιούμε στην SQL.
0/6
Sorting and Aggregating Data
Σε αυτήν την ενότητα θα συζητηθεί ο τρόπος ταξινόμησης των δεδομένων, καθώς και το γκρουπάρισμα αυτών με σκοπό το aggregation.
0/9
Set Operations
Σε αυτήν την ενότητα θα μάθουμε τα 3 set operations και πώς εφαρμόζονται αυτά στην SQL.
0/6
Introduction to SQL Joins
Σε αυτήν την ενότητα θα κάνουμε εισαγωγή στα Joins της SQL.
0/5
Τελικό Project
Σε αυτή την ενότητα θα συζητηθεί εκτενώς ποιο είναι το τελικό project, ποιος είναι ο στόχος του, τι αναμένω ως καθοδηγήτρια από εσάς σχετικά με το τελικό project, πώς αναμένετε να είναι η συνεργασία μας και διάφορες οδηγίες επιτυχίας του project.
0/5
Επιπλέον Πηγές και Αξιολόγηση
Εδώ θα βρείτε διάφορα Cheatsheets, Youtube Videos, Άρθρα και e-books τα οποία μπορούν να σας βοηθήσουν στην επέκταση γνώσεων επί του θέματος του μαθήματος. Επίσης, θα αξιολογήσετε το μάθημα.
0/4
Foundations of SQL: Εκμάθηση της γλώσσας δεδομένων
Σχετικά με το Μάθημα

Aggregate Functions


SELECT aggregate_function(column_name)

FROM table_name

where aggregate_function can be:

  • COUNT(): Returns the number of rows in a table or the number of non-null values in a column
    • See more: https://learn.microsoft.com/en-us/sql/t-sql/functions/count-transact-sql?view=sql-server-ver16#remarks)
    • COUNT(*): This function simply counts all the rows in a table, no matter what. It doesn’t care about NULL values or anything else. It just wants to know how many rows there are.
    • COUNT(1): This function also counts all the rows in a table. The `1` is just a constant and does not refer to any specific column; it’s merely a placeholder. The database engine treats it the same way as `COUNT(*)`.
  • SUM(): Returns the summary of all values in a numeric column.
  • AVG(): Returns the average of all values in a numeric column.
  • MIN(): Returns the minimum value in a column.
  • MAX(): Returns the maximum value in a column.
Find the average price of all houses (As long as there is no other column, there is no need for grouping of data)

SELECT AVG(price) as Average_Price

FROMPropertiesDataset

0% Ολοκληρωμένο