SlideShare uma empresa Scribd logo
1 de 10
SQL 2 (Functies)

        Patrick Colli
Functies in SQL




        In MySQL wordt gebruik gemaakt van de
        functie LENGTH() in plaats van LEN()
Functies in SQL


            als resultaat: Anouk


            Dit geeft als resultaat: 18


            Als resultaat: Jasper_van


            dit geeft als resultaat: 30
Functies in SQL

          resultaat: 177


          Geeft als resultaat : 22.1250


          Het resultaat van deze query is: 22.1
Functies in SQL
Functies in SQL
 Geef terug de namen van mensen die in een
 woonplaats wonen waar een O in zit.
Functies in SQL
   Stel dat we alle namen willen die beginnen met een
    a of waar een dubbele e (ee) in zit. De query wordt
    dan:
Functies in SQL
    Het grote verschil met SELECT DISTINCT is dat je
    kunt rekenen met GROUP BY

   Stel dat we willen weten hoeveel berichten er totaal
    door de verschillende functiegroepen zijn geplaatst.
Functies in SQL
Functies in SQL
Stel dat we willen weten welke
functiegroep totaal meer dan 5000
berichten heeft.

Mais conteúdo relacionado

Destaque

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Sql2

  • 1. SQL 2 (Functies) Patrick Colli
  • 2. Functies in SQL In MySQL wordt gebruik gemaakt van de functie LENGTH() in plaats van LEN()
  • 3. Functies in SQL als resultaat: Anouk Dit geeft als resultaat: 18 Als resultaat: Jasper_van dit geeft als resultaat: 30
  • 4. Functies in SQL resultaat: 177 Geeft als resultaat : 22.1250 Het resultaat van deze query is: 22.1
  • 6. Functies in SQL Geef terug de namen van mensen die in een woonplaats wonen waar een O in zit.
  • 7. Functies in SQL  Stel dat we alle namen willen die beginnen met een a of waar een dubbele e (ee) in zit. De query wordt dan:
  • 8. Functies in SQL  Het grote verschil met SELECT DISTINCT is dat je kunt rekenen met GROUP BY  Stel dat we willen weten hoeveel berichten er totaal door de verschillende functiegroepen zijn geplaatst.
  • 10. Functies in SQL Stel dat we willen weten welke functiegroep totaal meer dan 5000 berichten heeft.