SQL | Data Analytics
Open in Telegram
SQL, Big Query, Looker and DBT for Data Analytics. https://medium.com/@khavanski
Show more1 858
Subscribers
No data24 hours
+27 days
+730 days
Posts Archive
1 858
SQL query execution order.
The SQL execution you need to understand in order to optimize your SQL code.
1 858
What will the following query return?
SELECT product_id, COUNT(*) FROM salesGROUP BY product_id;
1 858
4 popular SQL interview questions:
🔻What is a primary key?
— A primary key is a field in a table that uniquely identifies each row or record in that table.
🔻What is a foreign key?
— A foreign key is a field in one table that refers to the primary key in another table, creating a relationship between the tables.
🔻What are joins? Explain different types of joins.
— A join is an SQL operation used to combine records from two or more tables. Common types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
🔻What is normalization?
— Normalization is the process of organizing data to minimize redundancy and improve data integrity by dividing a database into multiple related tables.
1 858
📊 3 Free Data Analytics Courses
Looking to get started in Data Analytics without spending a dime? Check out these top free courses! 🚀
1️⃣ Data Engineering Zoomcamp (📈I highly recommend it!)
This course is suited for people who already know how to code and use basic SQL and want to learn about building data systems.
🔻Join here
2️⃣ Intro to Data Analytics – Simplilearn
A great starting point for beginners, this course covers the fundamentals of data analytics, including data visualization and Excel basics. Perfect for anyone new to the field.
🔻Enroll here
3⃣Data Analytics for Beginners – Udacity
This free course introduces you to the basics of data analysis, including data wrangling, exploration, and visualization. You’ll learn with Python and some beginner-friendly tools.
🔻Start here
💪 All of these are 100% free — just sign up and start learning!
Add any good courses on analytics in the comments that you know ⬇
1 858
What is the difference between RANK() and DENSE_RANK() window functions?
1 858
3 ways to filter data using window functions in the BigQuery (with examples)
When working with SQL, it’s common to come across situations where you need to filter data based on aggregate functions, such as counting occurrences or calculating sums.
Let’s dive into three distinct techniques to filter data using window functions: QUALIFY, CTE (Common Table Expressions), and Subqueries.
1. Filtering with the QUALIFY Clause
The
QUALIFY clause is an advanced SQL feature that allows you to filter results directly on window functions, streamlining the query.
2. Filtering with a Common Table Expression (CTE)
A more flexible and widely supported option is using a Common Table Expression (CTE). CTEs allow us to build the window function logic first and then apply a filter in a subsequent query.
3. Filtering with a Subquery
The subquery approach is another commonly used method to filter window function results. It’s similar to the CTE approach but does not use the WITH clause... full text
Subscribe1 858
Which of the following is the correct syntax for an INNER JOIN?
1 858
What does the following query do? SELECT name, COUNT(*) FROM customers GROUP BY name HAVING COUNT(*) > 1;
1 858
3 Free Platforms to Get Your First Experience as a Data Analyst 💻📊
Want to break into data analytics without spending a dime? Here are three free platforms where you can gain hands-on experience, work on real-world projects, and build a strong portfolio:
1. Kaggle 🌐
Kaggle is the go-to platform for data enthusiasts. It offers a huge collection of free datasets and challenges to help you practice real-world data analysis. You can also participate in competitions to test your skills and learn from others in the community. All of Kaggle’s resources, including code and notebooks, are free to use.
2. Codecademy (Free Version) 🎓
Codecademy offers free beginner courses on SQL, Python, and data analysis. While they have paid options, many foundational courses are free and perfect for getting started with data analysis.
3. Makeover Monday 📊
Makeover Monday is a unique community-driven platform where every week a new dataset is provided for free. You can practice your data visualization and analysis skills by redesigning and analyzing the given datasets.
Letssssss goooo 🚀
#DataAnalytics #FreeLearning #Kaggle #Codecademy #MakeoverMonday #DataAnalystCareer
1 858
How can you find the third highest salary from an employees table?
1 858
🚀New internships at TikTok and Netflix!
TikTok:
Data Analyst Intern (Global E-Commerce-Data Science-AMS Data Science)
📅 Summer 2025, 12-week program
💼 Hourly rate: $33.25
🔗Apply
Netflix:
Machine Learning Intern, Research (Fall 2024)
💼 Hourly rate: $40 - $110
🔗Apply
🚀 Apply now and take the next step towards your dream career!
1 858
What will the following query return?
SELECT COUNT(*) FROM employees WHERE department_id = 10;
1 858
Which SQL function is used to count the number of rows in a SQL query?
1 858
🔻Difference Between “HAVING” and “WHERE” in SQL
Use “WHERE” when you need to filter rows based on specific conditions before any aggregation and grouping.
SELECT FROM WHERE GROUP BYUse “HAVING” when you need to filter aggregated data or groups of rows after they have been grouped.
SELECT FROM GROUP BY HAVINGDuring query execution, WHERE takes effect before GROUP BY, and HAVING takes effect after it. Given this sequence, you can configure queries in the most optimal way. 🚩Save for future job interviews. Have a good day!
1 858
🚴♂️ Data Analytics in Cycling: How Strava Combines Hobby and Work! 📊
Let’s talk about Strava, a startup that blends data analytics with a passion for cycling and running! 🚴♀️🏃♂️
Strava is more than just a fitness app—it’s a social network for athletes that turns your workouts into data-driven insights. Co-founded by Michael Horvath and Mark Gainey, Strava helps millions of cyclists and runners track their performance, set goals, and compete with others. 📈💪
🔢 How Strava uses data:
1️⃣ Data Collection – Strava collects data from GPS devices, smartphones, and wearables. Everything from your speed, distance, elevation, and even heart rate is logged and analyzed.
2️⃣ Modeling – Using machine learning, Strava can recommend optimized routes, analyze performance trends, and give insights on how to improve your workouts. 🚀
3️⃣ Visualization – The data is transformed into interactive maps, graphs, and performance dashboards, allowing you to see your progress over time and discover the best routes through popular heatmaps. 🌍
Strava has built a thriving community by merging sports and data, helping athletes connect, compete, and optimize their training. It’s a perfect example of how you can turn your passion into a career by leveraging data! 💡
If you’re into cycling or running, Strava is a must-have.
Like this post if you found it interesting! ❤️
#Strava #cycling #dataanalytics #fitness #startup #tech
