From 78be705f703689d08350704f0693b65bdc1c2824 Mon Sep 17 00:00:00 2001 From: Tai <42567505+olawuwo@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:43:36 +0000 Subject: [PATCH] Update 103-avg.md Added SQL language identifier to enable syntax highlighting --- .../roadmaps/sql/content/104-aggregate-queries/103-avg.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/sql/content/104-aggregate-queries/103-avg.md b/src/data/roadmaps/sql/content/104-aggregate-queries/103-avg.md index 3ea67b90b..dcc59ff0e 100644 --- a/src/data/roadmaps/sql/content/104-aggregate-queries/103-avg.md +++ b/src/data/roadmaps/sql/content/104-aggregate-queries/103-avg.md @@ -3,7 +3,7 @@ The `AVG()` function in SQL is an aggregate function that returns the average value of a numeric column. It calculates the sum of values in a column and then divides it by the count of those values. Syntax: -``` +```sql SELECT AVG(column_name) FROM table_name; ``` @@ -37,4 +37,4 @@ GROUP BY CustomerID; ``` It will calculate the average quantity for each customer and display the result along with the associated customer's ID. -> Note: The `AVG()` function works only with numeric data types (`INT`, `FLOAT`, `DECIMAL`, etc.). It will return an error if used with non-numeric data types. \ No newline at end of file +> Note: The `AVG()` function works only with numeric data types (`INT`, `FLOAT`, `DECIMAL`, etc.). It will return an error if used with non-numeric data types.