{"id":22,"date":"2023-12-29T19:24:11","date_gmt":"2023-12-29T19:24:11","guid":{"rendered":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/?page_id=22"},"modified":"2023-12-29T19:24:12","modified_gmt":"2023-12-29T19:24:12","slug":"lesson-4","status":"publish","type":"page","link":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/","title":{"rendered":"Lesson 4"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Answering Business Questions with the Select Query<\/h2>\n\n\n\n<p class=\"\">In this lesson you will use the select query to answer business questions and analyze data<\/p>\n\n\n\n<figure class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Learn MySQL in 2024: Lesson 4 more work with the select statement\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/yfENPYCiy8M?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Concepts used in this lesson include:<\/h3>\n\n\n\n<p class=\"\">Data analysis &#8211; The ability to review data and make interpretations<br>Business questions &#8211; Questions that can be answered with data<br>Data Verification &#8211; The ability to verify data<br>SQL functions &#8211; Functions that can be used in the select statement<br>Count function &#8211; Counts the number of rows in a table<br>Sum function &#8211; Sums the values in a column<br>Average function &#8211; Calculates the average of a column<br>Min function &#8211; Finds the minimum value in a column<br>Max function &#8211; Finds the maximum value in a column<br>Distinct function &#8211; Returns only unique values in a column<br>Group by function &#8211; Groups data by a column<br>Order by function &#8211; Sorts data by a column<br>Desc &#8211; Sorts data in descending order<br>Asc &#8211; Sorts data in ascending order, this is the default behavior<br>Limit function &#8211; Limits the number of rows returned<br>Where clause &#8211; Filters data<br>Inner join &#8211; Joins two tables based on a join condition<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Question asked in this lesson include:<\/h3>\n\n\n\n<p class=\"\">&#8212; Retrieve all customer names and their email addresses.<br>&#8212; List the titles and rental rates of all films.<br>&#8212; Count the number of films in the inventory.<br>&#8212; Find the total amount spent by a specific customer (e.g., customer with ID 1).<br>&#8212; Retrieve the names of customers who have rented a film in the last 30 days.<br>&#8212; List the top 5 most rented films.<br>&#8212; Find the average rental duration for all films.<br>&#8212; Retrieve the films that are available for rent.<br>&#8212; Get the total revenue generated by each store.<br>&#8212; List customers who have not made any payments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Answering Business Questions with the Select Query In this lesson you will use the select query to answer business questions and analyze data Concepts used in this lesson include: Data analysis &#8211; The ability to review data and make interpretationsBusiness questions &#8211; Questions that can be answered with dataData Verification &#8211; The ability to verify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-22","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lesson 4 - Free SQL Class<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lesson 4 - Free SQL Class\" \/>\n<meta property=\"og:description\" content=\"Answering Business Questions with the Select Query In this lesson you will use the select query to answer business questions and analyze data Concepts used in this lesson include: Data analysis &#8211; The ability to review data and make interpretationsBusiness questions &#8211; Questions that can be answered with dataData Verification &#8211; The ability to verify [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Free SQL Class\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-29T19:24:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-4\\\/\",\"url\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-4\\\/\",\"name\":\"Lesson 4 - Free SQL Class\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/#website\"},\"datePublished\":\"2023-12-29T19:24:11+00:00\",\"dateModified\":\"2023-12-29T19:24:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-4\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-4\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/lesson-4\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lesson 4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/#website\",\"url\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/\",\"name\":\"Free SQL Class\",\"description\":\"Learn SQL using MySQL and SQL Server for Free in 2024\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/freesqlclass.com\\\/learn\\\/welcome-to-the-free-sql-class\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lesson 4 - Free SQL Class","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/","og_locale":"en_US","og_type":"article","og_title":"Lesson 4 - Free SQL Class","og_description":"Answering Business Questions with the Select Query In this lesson you will use the select query to answer business questions and analyze data Concepts used in this lesson include: Data analysis &#8211; The ability to review data and make interpretationsBusiness questions &#8211; Questions that can be answered with dataData Verification &#8211; The ability to verify [&hellip;]","og_url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/","og_site_name":"Free SQL Class","article_modified_time":"2023-12-29T19:24:12+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/","url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/","name":"Lesson 4 - Free SQL Class","isPartOf":{"@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/#website"},"datePublished":"2023-12-29T19:24:11+00:00","dateModified":"2023-12-29T19:24:12+00:00","breadcrumb":{"@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/lesson-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/"},{"@type":"ListItem","position":2,"name":"Lesson 4"}]},{"@type":"WebSite","@id":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/#website","url":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/","name":"Free SQL Class","description":"Learn SQL using MySQL and SQL Server for Free in 2024","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/22\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/pages\/22\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/freesqlclass.com\/learn\/welcome-to-the-free-sql-class\/wp-json\/wp\/v2\/media?parent=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}