{"id":12303,"date":"2021-01-10T16:12:34","date_gmt":"2021-01-11T00:12:34","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12303"},"modified":"2023-12-01T04:07:56","modified_gmt":"2023-12-01T12:07:56","slug":"sql-where","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/sql-where\/","title":{"rendered":"SQL WHERE Statement: A How-To Guide"},"content":{"rendered":"\n<p><em>The SQL WHERE clause limits how many records are returned or affected by a command. It is used with the SELECT, UPDATE, and DELETE clauses. You can use the AND keyword to specify multiple conditions which you want records affected by your command to meet.<\/em><\/p>\n\n\n\n<p>You may want to filter out the results of a query using specific conditions. For example, you may want to get a list of employees who are sales managers. Or you may want to find out who started working for a company after a particular date.<\/p>\n\n\n\n<p>You can use the WHERE clause to filter out specific records while running an SQL command. This statement can work in conjunction with SELECT, UPDATE, and DELETE clauses. In this guide, we\u2019ll cover how to use the WHERE clause to filter records in SQL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SQL WHERE Clause<\/h2>\n\n\n\n<p>The SQL WHERE clause filters records that meet a particular condition, or a set of conditions. The WHERE clause comes after the \u201cFROM\u201d clause in an SQL statement.<\/p>\n\n\n\n<p>Here is the syntax for this statement:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT * FROM table WHERE column comparison value;<\/pre><\/div>\n\n\n\n<p>&#8220;SELECT * FROM table&#8221; is a standard select query. We use the WHERE statement to limit the records our query returns. &#8220;column&#8221; refers to the column in which a condition needs to be met. &#8220;comparison&#8221; and &#8220;value&#8221; represent the comparison we want to make.<\/p>\n\n\n\n<p>Potential comparisons include:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>WHERE name == &quot;Jeff&quot;;\nWHERE age &gt; 15;\nWHERE salary &lt; 50000;<\/pre><\/div>\n\n\n\n<p>You can specify multiple WHERE statements using the <a href=\"https:\/\/careerkarma.com\/blog\/sql-or-and-and\/\">SQL AND keyword<\/a>:<\/p>\n\n\n\n<p>SELECT * FROM table WHERE column1 comparison1 value1 AND column2 comparison2 value2;<\/p>\n\n\n\n<p>Let&#8217;s walk through an example of a WHERE statement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SQL WHERE Example: SELECT<\/h2>\n\n\n\n<p>We want to get a list of employees who are senior sales associates. To do so, we could use the following <a href=\"https:\/\/careerkarma.com\/blog\/sql-select\/\">SQL SELECT statement<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name, title FROM employees WHERE title = 'Senior Sales Associate';<\/pre><\/div>\n\n\n\n<p>The query returns the following rows that meet our criteria:<br><\/p>\n\n\n\n<p>&nbsp;name&nbsp; |     &nbsp; &nbsp; title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<p>&nbsp;Geoff | Senior Sales Associate<\/p>\n\n\n\n<p>&nbsp;Adam&nbsp; | Senior Sales Associate<\/p>\n\n\n\n<p>(2 rows)<\/p>\n\n\n\n<p>All the employees above have the title \u201cSenior Sales Associate.\u201d\n\n<\/p>\n\n\n\n<p>Let\u2019s use another example. Say we wanted to get a list of every employee who earns over $35,000 per year and whose name is not Adam. We could use the following SQL statement:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name, salary FROM employees WHERE salary &gt; 35000 AND name &lt;&gt; &quot;Adam&quot;;<\/pre><\/div>\n\n\n\n<p>Our query returns the following list:<br><\/p>\n\n\n\n<p>&nbsp;name&nbsp; | salary&nbsp;<\/p>\n\n\n\n<p>&#8212;&#8212;-+&#8212;&#8212;&#8211;<\/p>\n\n\n\n<p>&nbsp;Geoff |&nbsp; 38000<\/p>\n\n\n\n<p>&nbsp;Emma&nbsp; |  50000<\/p>\n\n\n\n<p>&nbsp;Jonah |&nbsp; 50000<\/p>\n\n\n\n<p>&nbsp;Adam&nbsp; |  38000<\/p>\n\n\n\n<p>(4 rows)<\/p>\n\n\n\n<p>Adam&#8217;s name is not in our results set even though he earns over $35,000 per year. This is because we excluded his name with the &lt;&gt; operator in our query.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WHERE SQL Clause: Update and Delete<\/h2>\n\n\n\n<p>The SQL WHERE clause works with UPDATE and DELETE statements.<\/p>\n\n\n\n<p>For example, say you want to update the branch names individual employees work for if there is a company restructuring. You could do this using the UPDATE statement.<\/p>\n\n\n\n<p>We want to change Luke\u2019s branch from \u201cBoston\u201d to \u201cCambridge,\u201d where his new office resides. We can do this using an <a href=\"https:\/\/careerkarma.com\/blog\/sql-update\/\">SQL UPDATE statement<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>UPDATE employees SET branch = 'Cambridge' WHERE name = 'Luke';<\/pre><\/div>\n\n\n\n<p>If we query to find out Luke\u2019s branch, we get the following result set:<\/p>\n\n\n\n<p>&nbsp;name |&nbsp; branch&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;<\/p>\n\n\n\n<p>&nbsp;Luke | Cambridge<\/p>\n\n\n\n<p>(1 row)<\/p>\n\n\n\n<p>We can use the WHERE clause with the <a href=\"https:\/\/careerkarma.com\/blog\/sql-delete-row\/\"><\/a><a href=\"https:\/\/careerkarma.com\/blog\/sql-delete-row\/\">SQL DELETE command<\/a>.<\/p>\n\n\n\n<p>Say we wanted to delete the records of every employee who works at the Albany branch, which has been closed. We could do this using the following command:\n\n<\/p>\n\n\n\n<p>When we get our list of employees, the number of rows returned is six instead of eight:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>DELETE FROM employees WHERE branch = 'Albany';<\/pre><\/div>\n\n\n\n<p>Our code returns six rows:<\/p>\n\n\n\n<p>&nbsp;&nbsp;name&nbsp; |    branch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n\n<p>&nbsp;Mike &nbsp; | Stamford<\/p>\n\n\n\n<p>&nbsp;Hannah | San Francisco<\/p>\n\n\n\n<p>&nbsp;Geoff&nbsp; | San Francisco<\/p>\n\n\n\n<p>&nbsp;Alexis | Boston<\/p>\n\n\n\n<p>&nbsp;Adam &nbsp; | Sacramento<\/p>\n\n\n\n<p>&nbsp;Luke &nbsp; | Cambridge<\/p>\n\n\n\n<p>(6 rows)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SQL Operators<\/h2>\n\n\n\n<p>The SQL WHERE clause uses logical operators to filter out records. In our first example, we used the \u201cis equal to\u201d operator to check for the names of senior sales associates.\n\n<\/p>\n\n\n\n<p>There are a number of logical operators we can use to filter out records when utilizing the clause. These are as follows:\n<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>Operator<\/td><td>Description<\/td><td>Example<\/td><\/tr><tr><td>=<\/td><td>Is equal to<\/td><td>WHERE name = \u2018Jake\u2019<\/td><\/tr><tr><td>&gt;<\/td><td>Is greater than<\/td><td>age &gt; 20<\/td><\/tr><tr><td>&lt;<\/td><td>Is less than<\/td><td>age &lt; 20<\/td><\/tr><tr><td>&gt;=<\/td><td>Greater than or equal to<\/td><td>salary =&gt; 50000<\/td><\/tr><tr><td>&lt;=<\/td><td>Less than or equal to<\/td><td>salary &lt;= 40000<\/td><\/tr><tr><td><a href=\"https:\/\/careerkarma.com\/blog\/sql-like\/\">LIKE<\/a><\/td><td>Pattern matching<\/td><td>name LIKE \u2018Jo*\u2019<\/td><\/tr><tr><td>IN<\/td><td>Check if a specified value matches any within a list<\/td><td>title IN (\u2018Sales Associate\u2019, \u2018Director of Sales\u2019)<\/td><\/tr><tr><td><a href=\"https:\/\/careerkarma.com\/blog\/sql-between\/\">BETWEEN<\/a><\/td><td>Check if the specified value is within a range of other values<\/td><td>employee_month_awards BETWEEN 1 AND 5<\/td><\/tr><\/tbody><\/table>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/SQL-Where?lite=true\" width=\"100%\" height=\"400px\" frameborder=\"0\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The SQL WHERE clause filters the records affected by a command. You can use the WHERE clause in SQL with the SELECT, UPDATE, and DELETE statements. You can specify multiple WHERE clauses using an AND statement, but you only need to use the WHERE keyword once.<\/p>\n\n\n\n<p>In this tutorial, we covered queries, SQL WHERE clauses, and how to use the clause clauses in an update or delete operation. We discussed the conditional operators that can be used with this clause.<\/p>\n\n\n\n<p>Are you interested in becoming a professional SQL developer? Check out our <a href=\"https:\/\/careerkarma.com\/blog\/learn-sql\/\">How to Learn SQL guide<\/a>. This guide contains a list of top learning resources to help you master SQL.<\/p>\n","protected":false},"excerpt":{"rendered":"The SQL WHERE clause limits how many records are returned or affected by a command. It is used with the SELECT, UPDATE, and DELETE clauses. You can use the AND keyword to specify multiple conditions which you want records affected by your command to meet. You may want to filter out the results of a&hellip;","protected":false},"author":240,"featured_media":12305,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17284],"tags":[],"class_list":{"0":"post-12303","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-sql"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"SQL","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>SQL WHERE Statement: A How-To Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/sql-where\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL WHERE Statement: A How-To Guide\" \/>\n<meta property=\"og:description\" content=\"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/sql-where\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-11T00:12:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:07:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"SQL WHERE Statement: A How-To Guide\",\"datePublished\":\"2021-01-11T00:12:34+00:00\",\"dateModified\":\"2023-12-01T12:07:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/\"},\"wordCount\":867,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg\",\"articleSection\":[\"SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/sql-where\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/sql-where\/\",\"name\":\"SQL WHERE Statement: A How-To Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg\",\"datePublished\":\"2021-01-11T00:12:34+00:00\",\"dateModified\":\"2023-12-01T12:07:56+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/sql-where\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/sql-where\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL\",\"item\":\"https:\/\/careerkarma.com\/blog\/sql\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SQL WHERE Statement: A How-To Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQL WHERE Statement: A How-To Guide | Career Karma","description":"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.","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:\/\/careerkarma.com\/blog\/sql-where\/","og_locale":"en_US","og_type":"article","og_title":"SQL WHERE Statement: A How-To Guide","og_description":"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/sql-where\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2021-01-11T00:12:34+00:00","article_modified_time":"2023-12-01T12:07:56+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"SQL WHERE Statement: A How-To Guide","datePublished":"2021-01-11T00:12:34+00:00","dateModified":"2023-12-01T12:07:56+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/"},"wordCount":867,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg","articleSection":["SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/sql-where\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/sql-where\/","url":"https:\/\/careerkarma.com\/blog\/sql-where\/","name":"SQL WHERE Statement: A How-To Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg","datePublished":"2021-01-11T00:12:34+00:00","dateModified":"2023-12-01T12:07:56+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The SQL WHERE clause allows programmers to filter query using conditions. Learn how WHERE clauses work with Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/sql-where\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/photography-of-person-typing-1181675-2.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/sql-where\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SQL","item":"https:\/\/careerkarma.com\/blog\/sql\/"},{"@type":"ListItem","position":3,"name":"SQL WHERE Statement: A How-To Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=12303"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12303\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12305"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}