Automatically translated.View original post

SQL Query: SELECT Comic Edition

1/16 Edited to

... Read moreจากประสบการณ์ส่วนตัวในการเรียนรู้ SQL ผมพบว่าการทำความเข้าใจคำสั่ง SELECT เป็นขั้นตอนพื้นฐานที่สำคัญมาก ซึ่งบทความนี้ช่วยให้เห็นภาพรวมของการเลือกคอลัมน์ข้อมูลจากตารางอย่างชัดเจนผ่านฉบับการ์ตูน การใช้ข้อมูลตัวอย่าง USERS ที่มีฟิลด์อย่าง ID, Gender, City, Name, Height, Weight ทำให้เราเข้าใจว่า SELECT สามารถระบุคอลัมน์ที่ต้องการได้ เช่น SELECT Name FROM USERS จะได้เฉพาะชื่อผู้ใช้เท่านั้น หลังจากที่ได้ลองเขียนคำสั่ง SELECT ดูเอง พบว่าการเลือกหลายคอลัมน์พร้อมกันด้วย SELECT Name, Height FROM USERS ช่วยให้ข้อมูลที่ได้มาเป็นระเบียบและตรงกับความต้องการได้ดี การใช้คำสั่ง SELECT * FROM USERS ก็เป็นวิธีง่ายที่สุดในการดึงข้อมูลทุกคอลัมน์มาแสดง แต่บางครั้งอาจไม่ถูกต้องหรือเกินความจำเป็นสำหรับการใช้งานจริง นอกจากนี้ บทความยังแนะนำว่าการใช้ SQL ไม่ได้ยากอย่างที่คิด ยังมีคำสั่งอื่น ๆ ที่ครบเครื่อง เช่น WHERE สำหรับกรองข้อมูล, LIKE สำหรับค้นหาข้อความที่ตรงเงื่อนไข และ LIMIT เพื่อจำกัดจำนวนแถวข้อมูลที่ต้องการ ซึ่งการเรียนรู้ทีละขั้นตอนโดยใช้ตัวอย่างจริงและรูปแบบการ์ตูนนั้นช่วยลดความซับซ้อนและทำให้จำได้ง่ายขึ้นมาก ผมแนะนำให้ลองฝึกเขียน SQL ด้วยตัวอย่างจริงในฐานข้อมูลขนาดเล็ก เช่น ตาราง USERS นี้ ให้คุ้นเคยกับการเลือกข้อมูลในรูปแบบต่าง ๆ รวมถึงการทดลองใช้ฟังก์ชั่นอื่น ๆ ใน SQL เพื่อพัฒนาทักษะในการจัดการข้อมูลอย่างมืออาชีพ

Related posts

The first image is a laptop screen displaying 'LEARN SQL FOR BEGINNERS PART 3' as part of a guide titled 'How to become a Data Analyst'.
This image illustrates an SQL query using `WHERE major = 'Biology'` to select specific rows from a `students_table`, showing the filtered result with only Biology majors.
This image demonstrates an SQL query using `WHERE major = 'Biology' OR major = 'History'` to filter a `students_table` for multiple majors, showing the combined result.
Swipe if you’re a beginner & want to learn SQL!
In this post, we'll learn how to select specific rows from your table using a WHERE statement. As a recap, we've already learned about a few other statements, and we know that the statements have to come in a specific order. Only the SELECT and FROM statements are required. Here's
Delara 💖👩🏻‍💻

Delara 💖👩🏻‍💻

371 likes

A woman with curly hair and glasses, holding a microphone, with text overlays 'SQL Windows Function Explained' and 'Mad Key'.
A bookshelf background with 'SQL Windows Function Explained' and a quote defining a window function as viewing a 'slice' of data while seeing the bigger picture.
A SQL code example using a window function (RANK() OVER) to rank sales, showing output with individual sales records and their ranks, maintaining detail.
SQL: Windows Function Explained
One thing I've discovered is that when working with data, Normal SQL (GROUP BY) helps summarize data but sacrifices row-level detail in the process. On the other hand, Window Functions allow you to perform calculations across rows while maintaining each row’s detail. This key difference m
NeLo

NeLo

55 likes

A pink graphic lists raw hair vendors including Lady Hair, Yolissa Hair, Derun Hair Company, and Hair Boutique India, with contact details and websites, against a background of hair bundles.
A pink graphic lists raw hair vendors including Wealthy Hair, XBL Hair, Good HairFactory, and One More Hair, with contact details and websites, against a background of hair bundles.
A pink graphic lists lash vendors such as Gianni Lashes, QuinDao Yaleo, Aupres Lashes, SY Lashes, World Beauty Eyelashes, and Elour Beauty Factory, with their websites, against a background of packaged false eyelashes.
Some vendors
Start a business today and thank me later!!!
Bossgirlsbeauty

Bossgirlsbeauty

589 likes

A flat lay image featuring a pink notebook, gold heart-shaped dish with paperclips, and a gold pen, alongside a keyboard and pink flowers. The text overlay reads "5 FREE ONLINE CERTIFICATIONS to Boost YOUR RESUME."
The image displays the logo for "Learning How to Learn" with a brain and sun icon. Text describes this Coursera course from UC San Diego, focusing on improving learning techniques, memory, and study strategies.
The image shows the "Learn SQL" logo. Text describes Codecademy's free SQL course, emphasizing its importance for data analysis, database management, querying, creating tables, and manipulating data.
5 Free Online Certifications to Boost Your Resume
Hi, lemons! In today's competitive job market, having a standout resume is crucial. Employers seek candidates with not only relevant experience but also a commitment to continuous learning. Fortunately, the digital age offers a wealth of free online certifications that can enhance your skill se
Lifestyle Babe

Lifestyle Babe

742 likes

Free Computer Science Courses from Stanford
If you are interested in Computer Science, these FREE courses from Stanford make learning easy and accessible for everyone: 1. Algorithms: Design and Analysis, Part 1. In this course you are going to learn about: * "Big-oh" notation * Sorting and searching * Divide and conquer (master
Ivy League Help

Ivy League Help

239 likes

Data Analysts Career Guide: SQL Query Optimization
Hello everyone! I wanted to share tips for optimizing SQL query performance. Using indexes effectively on key columns and selecting specific columns can speed up data retrieval. Additionally, minimizing nested queries and optimizing join operations enhances efficiency. Moreover, limiting unnecessar
Yun Jung

Yun Jung

14 likes

Skills you need as a Data Scientist
If you're new here...hi! I'm a data scientist at a tech company & I regularly share tips about how to learn Data Science skills and what it's like being a Data Scientist. Here are 2 skills you will definitely need if you're considering applying for Data Science roles: 1) S
Delara 💖👩🏻‍💻

Delara 💖👩🏻‍💻

77 likes

A laptop, a Starbucks drink, and a muffin on a wooden table, with the overlaid text "5 WEBSITES TO LEARN PROGRAMMING FOR BEGINNERS".
A MacBook Air displaying the FreeCodeCamp website, which offers free coding lessons and certifications. The text "FREECODECAMP" with an arrow points to the screen.
A MacBook Air showing the Codecademy website, featuring its basic, plus, and pro pricing plans. The text "CODECADEMY" with an arrow points to the screen.
Learn programming for free 👩‍💻
1. FreeCodeCamp - Languages: JavaScript, Python, SQL, HTML/CSS, and more. - Hands-on Projects: FreeCodeCamp is project-driven, meaning as you go through the curriculum, you'll build real-world applications like weather apps, portfolio websites, and data visualization projects. The full-
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

602 likes

Leveling up my skills!🚀
I’ve decided to take the plunge and enroll in 3 amazing courses on edX to grow both personally and professionally. 💻✨ If you’re not familiar with edX, it’s an online learning platform offering courses from top universities like Harvard, MIT, and more. You can access world-class education, earn c
Char

Char

4590 likes

Useful advanced SQL Queries for data analysts
Hello everyone! I wanted to highlight powerful SQL features that are helpful for data analysts! Common Table Expressions (CTEs) act as named temporary result sets within queries, simplifying complex logic with recursive operations or data aggregation. Window Functions enhance analytical capabilitie
Yun Jung

Yun Jung

30 likes

Canva Brand Board Tutorial For Beginners
Canva Tutorial For Digital Marketers. How To Make A Brand Board For Your Business Using Canva! #canvatips #canvatutorial #canvaforsmallbusinesses #canvahacks
Inuri

Inuri

128 likes

A car interior shows a dashboard display with music playing and a car charm hanging. Overlay text reads: "I'M A 6th YEAR COLLEGE STUDENT?!" with a swipe icon, reflecting the student's extended college journey.
An outdoor scene with trees and blue sky features text bubbles questioning the typical 4-year degree versus the student's 6 years, accompanied by a crying cat meme.
A rainbow arches over an outdoor scene with trees, illustrating the student's major changes from nursing to psychology, then to computer science, explaining their extended college path.
I’M A 6th YEAR COLLEGE STUDENT?!
🩵My college experience has definitely been a roller coaster. Since I go to a smaller college, there’s not much flexibility offered in terms of classes being offered for multiple terms which added on to the time it has taken me to get to my grad year. 🩶 Just a reminder: your path towards your de
Ellie Bibi

Ellie Bibi

3019 likes

Kickstart your coding career with these 3 tools!
Are you wanting to learn to code, but do not want to pay the huge costs of bootcamps or courses? Here are free coding learning platforms/courses to look at: ✺ | Free Code Camp Free Code Camp has over 10,000 tutorials! Their tutorials cover front-end, back-end, data visualization, and so much mo
Itsleilahclaire

Itsleilahclaire

121 likes

A handwritten list titled 'VERY IMPORTANT WORDS FULLFORM' from @ILMI_Dunya, detailing 15 essential tech and finance acronyms. It includes full forms for terms like OTP, PIN, QR code, SMS, MMS, WiFi, GIF, GPS, KYC, PDF, PNG, JPEG, URL, WWW, and PAN.
Essential Tech Acronyms Unveiled:What They Mean🔑ℹ️⬇️
Essential Tech Acronyms Unveiled: What They Mean Acronyms Explained: 1. GPS: Global Positioning System – A navigation system that uses satellite signals to determine a location. 2. KYC: Know Your Customer – A process for verifying the identity of clients in financial services. 3. PDF: Po
RoadToRiches

RoadToRiches

30 likes

What to study to become a data scientist 🧑‍💻
1. Programming and Data Manipulation - Python: Learn libraries like Pandas, NumPy, and Scikit-learn for data manipulation and modeling. - R: Explore statistical analysis and visualization packages like ggplot2 and caret. - SQL: Master querying, managing, and manipulating structured data in relat
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

191 likes

The image displays a career path overview for a SQL Developer, showing a total pay range of $102K - $135K per year, with an average of $116K. It highlights base pay and additional pay components, updated September 11, 2024.
The image shows a Simplilearn dashboard with an 'Introduction to SQL' course, 26% complete, and a reminder to 'Get your FREE SQL COURSES on next slides study 1-2 Months Max'.
The image displays a SQLBolt lesson on 'SELECT queries 101', advising to 'Add on your RESUME'. It includes an example of a basic SQL SELECT query.
How to make 6 Figures in less than 3 months!
Girlie job edition here! Disclaimer: success to get an interview heavily depends on your experience and willingness to learn and apply! Pro tip: Sign up for your free course on last slide, add “SQL Certification In Progress” on your resume and start applying. By the time you get your certification
kova_atan

kova_atan

38 likes

Tech Career Guide: SQL Best practices
Hello everyone! I wanted to share essential SQL best practices for effective database management. Design your database with normalization principles for streamlined data organization and integrity. Use indexes strategically on key columns to optimize query performance. Write efficient SQL queries b
Yun Jung

Yun Jung

219 likes

Data Analyst - Start a career today
1. Master Essential Tools and Skills - Why It’s Crucial: Employers prioritize technical proficiency for handling and visualizing data. - Focus Areas: - Excel: For basic data analysis and pivot tables. - SQL: To query and manage large datasets (a must-have skill). - Python/
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

214 likes

A list titled "BEST YOUTUBE CHANNELS TO LEARN..." featuring various tech topics like Cybersecurity, Python, React, JavaScript, Java, DevOps, Blockchain, AI/ML, Web Development, AWS, Swift, SQL, DBMS, Ruby, Scala, SAP, C, R, jQuery, C#, .NET, Kotlin, Flutter, Laravel, and PHP, each paired with a recommended YouTube channel. The image includes a YouTube logo and the handle @securitytrybe.
Top YouTube Channels for Tech Mastery 🔑ℹ️⬇️
Unlock Your Tech Potential: The Best YouTube Channels for Learning Ever felt like the world of tech is just out of reach? Whether you’re diving into cybersecurity or mastering the nuances of UI/UX design, these YouTube channels will guide you every step of the way. Let’s break down the best reso
RoadToRiches

RoadToRiches

84 likes

A woman with dreadlocks smiles, looking right, with the text "SQL TIPS FOR BEGINNERS" overlaid in yellow. The bottom left corner shows "Lemon8 @nelo.omah".
A woman with dreadlocks smiles, looking right, with a social media post overlay stating: "SQL isn't about just databases. It's about asking the right questions to find the right answers." "Lemon8 @nelo.omah" is in the bottom left.
A woman with dreadlocks smiles, looking right, with a social media post overlay stating: "By framing queries effectively, you can uncover patterns, trends, and answers that drive decision-making. Mastering SQL means mastering the art of data-driven problem-solving." "Lemon8 @nelo.omah" is in the bottom left.
SQL Tips: Are You asking The Right Questions?
Caption During my early years of learning data analytics, I discovered that SQL is more than just a tool for working with databases. It's about asking the right questions to uncover valuable insights. Whether you're analyzing sales trends, customer behavior, or operational data, the
NeLo

NeLo

33 likes

Company hiring for a rental role. #wfh #remotework #wfhjobs #remotejobs
Jobswithporsche

Jobswithporsche

42 likes

A book cover for 'Orchid's Query: The Ultimate Fight for Love' by Jas B., featuring a man with braids and tattoos. Overlays include 'Book Vibes', 'Good read', 'FIGHT SPORT', and 'kindleunlimited', indicating a romance book recommendation.
Orchid’s Query🌸
I love books where the smut adds flavor to the storyline instead of being the center of the story if you know what I mean.! And Jas B. Executes it very well each time. I enjoyed this read. Took only a day to eat it right on up 😂 Query is now apart of my list of book bae’s because honestly he almost
Fran🩷

Fran🩷

6 likes

UK Driving Licence Support
Dealing with a UK driving licence issue can sometimes feel confusing especially when rules, timelines, and requirements are not always clearly understood. Whether your UK driving licence query relates to renewal, replacement, or general DVLA procedures, understanding the correct process is essenti
Führerschein in Europa

Führerschein in Europa

1 like

What You need to know about SQL in Tech Roles
Everyone talks about how essential SQL is for landing tech roles—whether it’s data analysis, engineering, or even marketing analytics. But here’s the part they don’t emphasize enough: Practice is KING. It’s not just about learning SQL syntax or watching tutorials; it’s about doing the work—runni
NeLo

NeLo

41 likes

A list titled "12 Smart Ways to Use Google Gemini" on a paper background. It outlines functionalities like converting videos/audio to text, creating images, deep research, infographics, Gems, podcasts, Google app integration, web app building, guided learning, video generation, and quiz creation.
12 Smart Ways to Use Google Gemini
Dr Cynthia Chirwa

Dr Cynthia Chirwa

139 likes

Canva Hack For Planning Your Instagram Grid 😎
Canva Tutorial - How To Plan Your Instagram Grid Using Canva! #canvahacks #canvatips #canvatutorial #canvaforsmallbusinesses #canvaforbeginners
Inuri

Inuri

12 likes

SQL REMAINS RELEVANT
When I first started learning about tech, one of the best pieces of advice I got was to learn SQL. Honestly, it was a game-changer. SQL is one of those technologies that’s beginner-friendly yet powerful enough to stay relevant no matter how advanced you get in your career. It’s used everywhere,
NeLo

NeLo

4 likes

How to be a DAX wizard! Improve your coding skills
Hello everyone! As a consultant working in the business intelligence field, I often use SQL, but recently, I've been using DAX most of the time as I have to build visuals in Power BI. DAX is a coding language used in Power BI, and having great DAX skills will make you an efficient business inte
Yun Jung

Yun Jung

15 likes

Ace SQL Interview with These Steps
If you're interested in SQL here are 5 tips to help you prepare for your next SQL interview ✨Master the Basics: Solid understanding of SQL fundamentals like SELECT, JOINS, GROUP BY, and WHERE is crucial. ✨Practice Complex Queries: Focus on writing multi-join queries, subqueries, and CTEs to
NeLo

NeLo

9 likes

nuclear careers
What kinds of jobs are available in nuclear energy? #career
I love science!

I love science!

1 like

What is ionizing radiation? #nuclear #physics
What is ionizing radiation? #nuclear #physics
I love science!

I love science!

1 like

A person works on a laptop with colorful stickers, displaying the text 'GitHub Copilot For Data Analysts' and 'lemon8 @yunjungintech', indicating the topic of AI assistance for data analysis.
A laptop screen shows code in an IDE, with overlay text defining GitHub Copilot as an 'AI-powered code completion tool' that provides suggestions and auto-completions for developers.
A person types on a laptop displaying code, illustrating GitHub Copilot's 'Real-time Suggestions' for coding speed and 'Language Understanding' for context-aware, convention-aligned suggestions.
How to utilize GitHub Copilot as Data Analyst
Hello everyone! I wanted to share how GitHub Copilot transforms coding workflows by integrating seamlessly into IDEs like Visual Studio Code. This AI-powered tool enhances productivity by offering real-time code suggestions and completions as developers write, tailored to the specific context and p
Yun Jung

Yun Jung

7 likes

#cybersecurity
Cyber Secrets

Cyber Secrets

4 likes

NFL helmet warmer
Get your teams warmer from me! https://scentsandstyles.scentsy.us/product/search?query=nfl #nfl #football #scentsy #fall #autumn
SumYungHunny

SumYungHunny

0 likes

✨👩🏾‍💻🎒Websites EVERY STUDENT Should Have SAVED 💻👩🏾‍🎓✨
✨ Whether you’re in high school, college, or grad school, the right websites can make your study life 10x EASIER. These tools help with research, organization, studying, and even saving money. Bookmark them NOW! 🗂️ ✨ Must-Visit Student Sites: 1️⃣. Quizlet — Digital flashcards for memorizing ter
Margarita

Margarita

465 likes

Become a pro In ChatGPT in 30 seconds 😎⚡
Become a pro In ChatGPT in 30 seconds 😎⚡ 👇 If you want a vault full of GPT prompts that will help you create content smarter for your online coaching business, then comment “CONTENT” to get 100+ such prompts for free! 🔗 #salesstrategy #salestipsandtricks #onlinebusinessowner #onlin
Iamelleross

Iamelleross

66 likes

SQL interview question #11
Here's a standard sql interview question to join two tables. #sql #analyst #dataanalytics
Brandon - Analytics Mentor

Brandon - Analytics Mentor

1 like

See more