One of the most useful SQL commands for data analysts is GROUP BY. It allows you to easily generate advanced statistics from categories. Suffice to say, it’s one of the 10 commands you’ll use the most, so you might as well know what it’s all about.
SQL’s strengths are well established. This language offers an unrivalled level of abstraction for analyzing vast volumes of information. Whatever the database software used (MySQL, Ingres, Oracle Database, Microsoft SQL Server, PostgreSQL, SQLite, Firebird…), the data analyst knows he’ll get the desired result without having to program the precise logic.
If there’s one particularly important command you’ll appreciate, it’s SQL GROUP BY. It groups information from a database according to a particular column, from which it is possible to obtain statistical information: sum, maximum, minimum, average, etc.
To better understand this concept, it’s best to start with an example. Here’s an extract from a table called Staff
Name
Department
Salary
Paul
Finance
$3,000
Ray
Sales
$2,500
Julia
Finance
$3,200
Dan
Marketing
$4,300
Josie
Sales
$2,200
Donna
Finance
$2,700
If we wanted to obtain the sum of salaries by department, we’d simply use a sequence like the following:
SELECT Department, SUM(Salary)
[elementor-template id=”165221″]
[elementor-template id=”165221″]
FROM Staff
GROUP BY Service
ORDER BY Service;
In this example, we group the table according to the Service column and ask for the sum of salaries for each of them.
The answer would be – based on the sample shown above :
Finances
8 900
Marketing
4 300
Sales
4 700
How do I use the HAVING BY clause?
HAVING BY completes the SQL GROUP BY command by opening up the possibility of specifying a condition. In the example below, we’d like to display the average salary (the AVG function), but only if this average is greater than 2500:
SELECT Department, AVG(Salary)
FROM Personnel
GROUP BY Service
HAVING AVG(Salary) > 2500
ORDER BY Service;
The result is :
Finances
2 967
Marketing
4 300
And that’s it! It’s that simple. The ease with which such operations can be implemented is a testament to the qualities of the SQL language.
Take your future into your own hands. Choose your desired start date, and begin your application by filling out the appointment form.
Bootcamp
Tuesday 3 March 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 5 May 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 7 July 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 8 September 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 3 November 2026
Analytics Engineer
Remote
English
Upcoming starting dates
Take your future into your own hands. Choose your desired start date, and begin your application by filling out the appointment form.
No upcoming dates
THE TEaM
They won’t leave until you land your dream job and celebrate with you 🍾
Liora is more than a training. It’s a whole team walking forward with you, step by step, until you get hired. Mentors, coaches, instructors… all committed to your success.
Estelle
Career Associate
Vincent
Career Associate
Magali
Career Associate
Bilal
Career Associate
Kahina
Career Associate
THE SUPPORT
Support built for your success
Our structured support and expert training open real career opportunities in data, cyber, and tech.
Premium resources just for you
A private platform with exclusive insights on market shifts and career strategy.
A Slack space to log in, ask questions, and grow with fellow learners.
Stay updated with expert tips on trends, events, and career moves.
Individual career coaching, tailored for you
From day one, our Career Team supports you with personalized coaching. We help you:
Shape your career path around your goals and experience.
Find the right opportunities and fine-tune your job search strategy.
Get personalized advice to level up your job hunt.
High-impact career workshops
Our expert-led group sessions help you prepare for the job market: from polishing your CV and LinkedIn to nailing interviews, building a smart job search strategy, crafting your pitch, and building your network.
A strong network that opens doors
We connect you with recruiters through job fairs, speed-dating sessions, and curated industry events.
The impact of our support in numbers
52k€
Average gross salary of our alumni
Real proof that our programs lead to high-quality, high-paying jobs in data, tech, and AI.
9.53/10
Satisfaction for individual coaching
With 1000+ coachings delivered each year, our live support gives you direct access to industry experts to ask, unblock, and accelerate your job hunting process.
9.1/10
Satisfaction for group workshops
Hands-on sessions that help you improve your CV, LinkedIn, interview skills, and job search strategy.
71%
Employment rate
within 6 months of graduating a clear sign of how effective our training and career support really are.
70+
career-focused workshops every year
covering key topics like employability, networking, career transitions, and personal branding tailored to every learner.
4
recruitment fairs per year
Whether online or in person, these exclusive events create real connections between our talent and recruiters.
They benefited from our Career Support
Great Training Bootcamp! Thanks to the way Datascientest teaches and the constant support provided by the teachers, I was able to get the practical da…
James
I did data analyst training. I worked with the online platform which is excellent. They are very professional. I highly recommend Datascientest.
Natalia Carrasco
I learned a lot in the program it is really an amazing platform to grow with your career and start with potential. I really felt helped and received a…
Rajini Sharma
I am really amazed by the human quality of the Hack A Boss team, Selene, Dmitry, Pablo and Daniel are amazing people who are willing to help and teach…
Simon Cariou
It gives all the necessary fundamentals to become self-sufficient in order to keep searching and learning. Demanding, time-consuming, but absolutely i…
Katy Lebrun
I recently finished my Bootcamp for Data Analyst and I am very happy with the knowledge I gained and experience it gave me. The modules were very clea…
Matea Mutz
From physics to DevOps engineering in three months! I was a part of the April 2024 cohort on the DevOps Engineer Bootcamp training program, as part of…
Peregrine Wade
I find this platform is the best because it's an intelligent way of learning in this era, just text content plus some needed short tutorial videos. al…
Ahmed
I am really amazed by the human quality of the Hack A Boss team, Selene, Dmitry, Pablo and Daniel are amazing people who are willing to help and teach…
Lautaro Martinez
Overall, the learning environment was positive, the support from the staff was excellent, and the experience was rewarding. I highly recommend Datasci…
Mihran D.
Just finished training yesterday (3 + 2 days). Group interactivity was effective, the instructor was very responsive. His experience in business as co…
Stéphane Bourain
Finance Controller
I would like to share with you a great experience lived recently by following "Data Analyst Training". I have learnt lots of skills (Python, Data Anal…
Khalid
I followed the Data Analyst path thanks to my company. I followed all the lectures and the offline trainings and I can say that it was very tailored f…
Gaetano Moceri
Very high-quality training. Thank you for the presentation. I strongly recommend this training provider. It covers nearly all the key aspects needed t…
Mohamed Haijoubi
Data Engineer
I completed a Data Engineer training program at DataScientest, and overall, the course is well-structured — a balanced mix of projects, theory, and …
Moustafa B
SRE Lead
I had a wonderful experience at DataScientest due to several key factors:
– The course content was outstanding and very informative.
– I received a …
Mehdi S
Now certified and very satisfied with the Data Scientist training, I’ve decided to continue my journey with DataScientest by enrolling in the MLOps …
Alexandre L
Quality content, available supervisors, and real-life learning projects that provide excellent preparation for the professional world.
Erwan
An excellent training provider for Data-related careers. The courses are well-designed, and you’re quickly challenged through exams after each modul…
Rémy
The training offers a solid overview of various Machine Learning techniques, and access to a wealth of content — including coaching sessions, alumni…
Anonymous
A very comprehensive, well-structured training course that was up-to-date with industry-standard tools. I particularly appreciated the personalized su…
Marissal
The bootcamp program is really intensive, specially for a person who has no programming background, but the course is definitely worth it. It helped m…
Shiva
As part of my career transition, I pursued my DevOps training through a work-study program at DataScientest. I chose to follow both courses with DataS…
Nicolas Utter
Content Creator
An excellent program for a career change. I was able to land a Data Analyst position after just a few months. I highly recommend it!
Yacine H
Data Analyst
Awesome education, awesome people.
Alexander P
I'm delighted to share my experience with this bootcamp! After completing my bachelor's degree, I was searching for a way to work with computers and d…
Dotun Olujide
A lot of things to learn and a lot of information! was an amazing experience.
Tiago R
The bootcamp was intensive, hands-on, and well-structured. I learned Python for data science, machine learning algorithms, model optimization and inte…
Sebastian
I’d like to share my feedback following the high-quality training I completed on Microsoft Power BI, delivered by DataScientest. This experience was…
Anonymous
Excellent course with practical focus! Really enhanced my data science skills, directly applicable to my research. Highly recommend DataScientest for …
Lina Livdane
Overall impression is good. The course content is well-organized, thoroughly designed and challenging as well. In the end, I believe I am well-prepare…
Khoa Tran
I completed an intensive bootcamp-style program where I deepened my skills in Python, data visualization, machine learning, and deep learning. The sel…
Nikos
I really enjoyed the course material and the fact that everything was remote. Well I haven’t finished the MLOps part yet. The data science part was …
Marius
Onboarding was smooth & lessons on your own & remote were particularly adequate to me
Clément Dué
Loved the format which was perfect for me – as a young parent. Additionally, I found the resources (platform) to be very good, and the instructors to …
Christian Müller
AI Scientist
I successfully completed my Data Analyst training last month and was very satisfied — within just six months, I was able to learn the key fundamenta…
Henry
Angelika Tabak
What I appreciated was the hands-on approach. Working on challenges like the Rakuten e-commerce classification project gave me experience with the com…
Peter Stieg
Data Scientist
DataScientist.com is always interested in maintaining a good reputation and producing good graduates. But don’t be afraid, the instructors are very …
Baris Ersoy
PL/SQL Developer
I’m really glad I chose DataScientest. Balancing work, family, languages – and now data – learning is challenging, and their flexible format makes i…
Debora Ferreira
Probably the best Data & AI training course out there. Loved the structure, depth and hands-on approach of the Data Science & MLOps course. I …
Benjamin S.
Data Scientist
The content of the module undoubtedly covers the most important aspects of Machine Learning and MLOps. The final project allows you to put into practi…
Darwin Oca
As a seasoned software engineer with many years of experience, I was looking to refresh my IT skills and deepen my knowledge in data-related technolog…