{"id":7185,"date":"2019-01-05T12:36:52","date_gmt":"2019-01-05T12:36:52","guid":{"rendered":"https:\/\/dbtut.com\/?p=7185"},"modified":"2019-01-17T19:30:57","modified_gmt":"2019-01-17T19:30:57","slug":"where-clause-in-sql-server-and-sql-server-operatorstsql","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/","title":{"rendered":"Where Clause in SQL Server and SQL Server Operators(TSQL)"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>We use WHERE clause to filter when reading, updating, and deleting data from a table. If we run select, Update, or delete statements without using WHERE clause, we will be processing the entire table. Let&#8217;s do these operations with an example.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>First, we create a table as below and add a few records to this table.<\/p>\n<pre class=\"lang:default decode:true\">USE [TestDB]\nGO\nCREATE TABLE [dbo].[MyTable](\n[ID] [int] IDENTITY(1,1) NOT NULL,\n[Name] [varchar](50) NULL\n) ON [PRIMARY]\nGO\nINSERT INTO [dbo].[MyTable] VALUES ('Nurullah \u00c7AKIR'),('Faruk ERDEM')<\/pre>\n<p><strong>Using WHERE Clause With SELECT:<\/strong><\/p>\n<p>We read the records with ID 1 as follows.<\/p>\n<pre class=\"lang:default decode:true \">SELECT * FROM [dbo].[MyTable] WHERE ID=1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\" width=\"439\" height=\"144\"><\/p>\n<p><strong>Using WHERE Clause With UPDATE:<\/strong><\/p>\n<p>With the following query, we are updating the Name column of the records with ID 1 as &#8220;Nurullah&#8221;.<\/p>\n<pre class=\"lang:default decode:true\">USE [TestDB]\nGO\nSELECT * FROM [dbo].[MyTable]\nGO\nUPDATE [dbo].[MyTable]\n&nbsp;&nbsp; SET [Name] = 'Nurullah'\n&nbsp;WHERE ID=1\nGO\nSELECT * FROM [dbo].[MyTable]<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/819.png\" width=\"472\" height=\"488\"><\/p>\n<p><strong>Using WHERE Clause With DELETE:<\/strong><\/p>\n<p>We are deleting records with ID 1 from the table with the following query.<\/p>\n<pre class=\"lang:default decode:true\">USE [TestDB]\nGO\nSELECT * FROM [dbo].[MyTable]\nGO\nDELETE FROM [dbo].[MyTable]\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE ID=1\nGO\nSELECT * FROM [dbo].[MyTable]<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/518.png\" width=\"489\" height=\"430\"><\/p>\n<p><strong>We can use the following operators in WHERE clause:<\/strong><\/p>\n<p><strong>Comparison Opertors:<\/strong><\/p>\n<div style=\"direction: ltr;\">\n<table style=\"direction: ltr; border-collapse: collapse; border: 1pt solid #A3A3A3;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID=1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID&gt;1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is greater than 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID&gt;=1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is 1 and greater than 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID&lt;1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is less than 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID&lt;=1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is 1 and less than 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top; width: 1.2125in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">Where ID&lt;&gt;1<\/p>\n<\/td>\n<td style=\"vertical-align: top; width: 2.2506in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;\">\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is not 1<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span style=\"font-weight: bold; font-family: Georgia; font-size: 12pt;\"><span style=\"font-size: 12pt;\"><br \/>\n&#8220;AND&#8221; and &#8220;OR&#8221;:<\/span><br \/>\nLogical Operators:<\/span><\/p>\n<p>We can use it as follows:<\/p>\n<p>If the Name column has a Nuru expression and the ID is 1<\/p>\n<p>or<\/p>\n<p>If the name column has an ERDEM expression and ID is 2<\/p>\n<pre class=\"lang:default decode:true\">Select * FROM MyTable Where (ID=1 AND Name like '%Nuru%') OR (ID=2 AND Name like '%ERDEM%')<\/pre>\n<p><strong>BETWEEN:<\/strong><\/p>\n<p>If ID is between 0 and 2<\/p>\n<pre class=\"lang:default decode:true\">Select * FROM MyTable Where ID Between 0 and 2<\/pre>\n<p><strong>LIKE:<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If the name column contains a Nuru expression<\/p>\n<pre class=\"lang:default decode:true\">Select * FROM MyTable Where Name Like '%Nuru%'<\/pre>\n<p><strong>IN:<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If ID is one of the values of 1,2,3,4<\/p>\n<pre class=\"lang:default decode:true\">Select * FROM MyTable Where ID IN(1,2,3,4)<\/pre>\n<p><strong>ALL:<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If all of the values returned from the subquery meets the condition.<\/p>\n<pre class=\"lang:default decode:true\">SELECT * from MyTable Where ID &gt; ALL(Select ID FROM MyTable where ID&gt;0)<\/pre>\n<p><strong>EXISTS:<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If a value is returned from the subquery.<\/p>\n<pre class=\"lang:default decode:true\">SELECT * from MyTable Where EXISTS(Select ID FROM MyTable where ID&gt;0)<\/pre>\n<p><strong>NOT:<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">We use NOT operator with other operators. For example, <code>\"Where Name NOT Like '%Nuru%'\"<\/code> means that if the name column doenst contains a Nuru expression.<\/p>\n<p><strong>SOME or ANY(They are equivalent):<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">If any of the values returned from the subquery meets the condition.<\/p>\n<pre class=\"lang:default decode:true\">SELECT * from MyTable Where ID &gt; SOME(Select ID FROM MyTable where ID&gt;0)\nGO\nSELECT * from MyTable Where ID &gt; ANY(Select ID FROM MyTable where ID&gt;0)<\/pre>\n\n<div style=\"direction: ltr;\"><\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_7185\" class=\"pvc_stats all  \" data-element-id=\"7185\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; We use WHERE clause to filter when reading, updating, and deleting data from a table. If we run select, Update, or delete statements without using WHERE clause, we will be processing the entire table. Let&#8217;s do these operations with an example. Example: First, we create a table as below and add a few records &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_7185\" class=\"pvc_stats all  \" data-element-id=\"7185\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3,1596],"tags":[1604,1603,1611,1609,1606,1607,1608,1610,1605,1689,1690],"class_list":["post-7185","post","type-post","status-publish","format-standard","","category-mssql","category-tsql","tag-all","tag-any","tag-between","tag-comparison-opertors","tag-exists","tag-in","tag-like","tag-logical-operators","tag-some","tag-some-or-any","tag-what-is-sql-server-exists"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":151,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials<\/title>\n<meta name=\"description\" content=\"SQL Server Operators\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"SQL Server Operators\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-05T12:36:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-17T19:30:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\" \/>\n<meta name=\"author\" content=\"dbtut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbtut\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"Where Clause in SQL Server and SQL Server Operators(TSQL)\",\"datePublished\":\"2019-01-05T12:36:52+00:00\",\"dateModified\":\"2019-01-17T19:30:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\"},\"wordCount\":302,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\",\"keywords\":[\"ALL\",\"ANY\",\"BETWEEN\",\"Comparison Opertors\",\"EXISTS\",\"IN\",\"LIKE\",\"Logical Operators\",\"SOME\",\"SOME or ANY\",\"What is SQL Server Exists\"],\"articleSection\":[\"MSSQL\",\"TSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\",\"name\":\"Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\",\"datePublished\":\"2019-01-05T12:36:52+00:00\",\"dateModified\":\"2019-01-17T19:30:57+00:00\",\"description\":\"SQL Server Operators\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png\",\"width\":534,\"height\":175},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Where Clause in SQL Server and SQL Server Operators(TSQL)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\",\"name\":\"dbtut\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"caption\":\"dbtut\"},\"description\":\"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.\",\"sameAs\":[\"http:\/\/NurullahCAKIR\"],\"url\":\"https:\/\/dbtut.com\/index.php\/author\/dbtut\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials","description":"SQL Server Operators","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:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/","og_locale":"en_US","og_type":"article","og_title":"Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials","og_description":"SQL Server Operators","og_url":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/","og_site_name":"Database Tutorials","article_published_time":"2019-01-05T12:36:52+00:00","article_modified_time":"2019-01-17T19:30:57+00:00","og_image":[{"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png","type":"","width":"","height":""}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"Where Clause in SQL Server and SQL Server Operators(TSQL)","datePublished":"2019-01-05T12:36:52+00:00","dateModified":"2019-01-17T19:30:57+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/"},"wordCount":302,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png","keywords":["ALL","ANY","BETWEEN","Comparison Opertors","EXISTS","IN","LIKE","Logical Operators","SOME","SOME or ANY","What is SQL Server Exists"],"articleSection":["MSSQL","TSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/","url":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/","name":"Where Clause in SQL Server and SQL Server Operators(TSQL) - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png","datePublished":"2019-01-05T12:36:52+00:00","dateModified":"2019-01-17T19:30:57+00:00","description":"SQL Server Operators","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/01\/700.png","width":534,"height":175},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2019\/01\/05\/where-clause-in-sql-server-and-sql-server-operatorstsql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Where Clause in SQL Server and SQL Server Operators(TSQL)"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408","name":"dbtut","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","caption":"dbtut"},"description":"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.","sameAs":["http:\/\/NurullahCAKIR"],"url":"https:\/\/dbtut.com\/index.php\/author\/dbtut\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/7185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=7185"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/7185\/revisions"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=7185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=7185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=7185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}