INSERT INTO employees (first_name, last_name) VALUES ('John', 'Doe');
--This inserts a new employee named John Doe into the "employees" table.
--This inserts a new employee named John Doe into the "employees" table.
👍6❤4
UPDATE customers SET email = 'new@email.com' WHERE customer_id = 123;
--This updates the email address for the customer with ID 123.
--This updates the email address for the customer with ID 123.
👍6
Joins allow you to combine data from multiple tables based on related columns
👍10
Forwarded from Data Analytics
SQL Notes PART-4
Data Wrangling functions on string data types 😄👍
Data Wrangling functions on string data types 😄👍
👍9❤3
👍6
Free resources to learn SQL
Udacity free course- https://imp.i115008.net/AoAg7K
For Practice- https://stratascratch.com/?via=free
Udacity free course- https://imp.i115008.net/AoAg7K
For Practice- https://stratascratch.com/?via=free
👍13❤3
If you are trying to transition into the data analytics domain and getting started with SQL, focus on the most useful concept that will help you solve the majority of the problems, and then try to learn the rest of the topics:
👉🏻 Basic Aggregation function:
1️⃣ AVG
2️⃣ COUNT
3️⃣ SUM
4️⃣ MIN
5️⃣ MAX
👉🏻 JOINS
1️⃣ Left
2️⃣ Inner
3️⃣ Self (Important, Practice questions on self join)
👉🏻 Windows Function (Important)
1️⃣ Learn how partitioning works
2️⃣ Learn the different use cases where Ranking/Numbering Functions are used? ( ROW_NUMBER,RANK, DENSE_RANK, NTILE)
3️⃣ Use Cases of LEAD & LAG functions
4️⃣ Use cases of Aggregate window functions
👉🏻 GROUP BY
👉🏻 WHERE vs HAVING
👉🏻 CASE STATEMENT
👉🏻 UNION vs Union ALL
👉🏻 LOGICAL OPERATORS
Other Commonly used functions:
👉🏻 IFNULL
👉🏻 COALESCE
👉🏻 ROUND
👉🏻 Working with Date Functions
1️⃣ EXTRACTING YEAR/MONTH/WEEK/DAY
2️⃣ Calculating date differences
👉🏻CTE
👉🏻Views & Triggers (optional)
Here is an amazing resources to learn & practice SQL: https://bit.ly/3FxxKPz
Share with credits: https://news.1rj.ru/str/sqlspecialist
Hope it helps :)
👉🏻 Basic Aggregation function:
1️⃣ AVG
2️⃣ COUNT
3️⃣ SUM
4️⃣ MIN
5️⃣ MAX
👉🏻 JOINS
1️⃣ Left
2️⃣ Inner
3️⃣ Self (Important, Practice questions on self join)
👉🏻 Windows Function (Important)
1️⃣ Learn how partitioning works
2️⃣ Learn the different use cases where Ranking/Numbering Functions are used? ( ROW_NUMBER,RANK, DENSE_RANK, NTILE)
3️⃣ Use Cases of LEAD & LAG functions
4️⃣ Use cases of Aggregate window functions
👉🏻 GROUP BY
👉🏻 WHERE vs HAVING
👉🏻 CASE STATEMENT
👉🏻 UNION vs Union ALL
👉🏻 LOGICAL OPERATORS
Other Commonly used functions:
👉🏻 IFNULL
👉🏻 COALESCE
👉🏻 ROUND
👉🏻 Working with Date Functions
1️⃣ EXTRACTING YEAR/MONTH/WEEK/DAY
2️⃣ Calculating date differences
👉🏻CTE
👉🏻Views & Triggers (optional)
Here is an amazing resources to learn & practice SQL: https://bit.ly/3FxxKPz
Share with credits: https://news.1rj.ru/str/sqlspecialist
Hope it helps :)
👍25❤3
SQL Topicwise Interview Questions & Answers
https://www.linkedin.com/posts/sql-analysts_sql-intrrview-preparation-activity-7129458058409181184-UJKb
https://www.linkedin.com/posts/sql-analysts_sql-intrrview-preparation-activity-7129458058409181184-UJKb
Linkedin
SQL Intrrview Preparation | Data Analytics
SQL INTERVIEW QUESTIONS AND SOLUTIONS WITH TOPIC WISE.
(This is what we needed for a long term.)
For practical and queries asked in FAANG and MNCs , subscribe below.
Learn SQL in Deep Dive : Join below.
https://news.1rj.ru/str/sqlanalyst
Follow Data Analytics for…
(This is what we needed for a long term.)
For practical and queries asked in FAANG and MNCs , subscribe below.
Learn SQL in Deep Dive : Join below.
https://news.1rj.ru/str/sqlanalyst
Follow Data Analytics for…
❤1
Top 5 SQL Functions
https://news.1rj.ru/str/sqlanalyst
1. SELECT Statement:
- Function: Retrieving data from one or more tables.
- Example:
2. COUNT Function:
- Function: Counts the number of rows that meet a specified condition.
- Example:
3. SUM Function:
- Function: Calculates the sum of values in a numeric column.
- Example:
4. AVG Function:
- Function: Computes the average value of a numeric column.
- Example:
5. GROUP BY Clause:
- Function: Groups rows that have the same values in specified columns into summary rows.
- Example:
These functions are fundamental in SQL and are frequently used for various data manipulation tasks, including data retrieval, aggregation, and analysis.
https://news.1rj.ru/str/sqlanalyst
1. SELECT Statement:
- Function: Retrieving data from one or more tables.
- Example:
SELECT column1, column2 FROM table WHERE condition;2. COUNT Function:
- Function: Counts the number of rows that meet a specified condition.
- Example:
SELECT COUNT(column) FROM table WHERE condition;3. SUM Function:
- Function: Calculates the sum of values in a numeric column.
- Example:
SELECT SUM(column) FROM table WHERE condition;4. AVG Function:
- Function: Computes the average value of a numeric column.
- Example:
SELECT AVG(column) FROM table WHERE condition;5. GROUP BY Clause:
- Function: Groups rows that have the same values in specified columns into summary rows.
- Example:
SELECT column, AVG(numeric_column) FROM table GROUP BY column;These functions are fundamental in SQL and are frequently used for various data manipulation tasks, including data retrieval, aggregation, and analysis.
👍23❤3