{"id":1636,"date":"2018-11-04T10:44:15","date_gmt":"2018-11-04T03:44:15","guid":{"rendered":"http:\/\/www.sqlitetutorial.net\/?page_id=1636"},"modified":"2022-04-03T14:58:06","modified_gmt":"2022-04-03T07:58:06","slug":"sqlite-between","status":"publish","type":"page","link":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/","title":{"rendered":"SQLite BETWEEN"},"content":{"rendered":"\r\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to use the SQLite <code>BETWEEN<\/code> operator to test whether a value is in a range of values.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Introduction to SQLite BETWEEN Operator<\/h2>\r\n\r\n\r\n\r\n<p>The <code>BETWEEN<\/code> operator is a logical operator that tests whether a value is in range of values. If the value is in the specified range, the <code>BETWEEN<\/code> operator returns true. The <code>BETWEEN<\/code> operator can be used in the <code><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-where\/\">WHERE<\/a><\/code> clause of the <code><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-select\/\">SELECT<\/a><\/code>, <a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-delete\/\"><code>DELETE<\/code><\/a>, <code><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-update\/\">UPDATE<\/a><\/code>, and <code><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-replace-statement\/\">REPLACE<\/a><\/code> statements.<\/p>\r\n\r\n\r\n\r\n<p>The following illustrates the syntax of the SQLite <code>BETWEEN<\/code> operator:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">test_expression BETWEEN low_expression AND high_expression\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>In this syntax:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\"><li><code>test_expression<\/code> is an expression to test for in the range defined by <code>low_expression<\/code> and <code>high_expression<\/code>.<\/li><li><code>low_expression<\/code> and <code>high_expression<\/code> is any valid expression that specify the low and high values of the range. The <code>low_expression<\/code> should be less than or equal to <code>high_expression<\/code>, or the <code>BETWEEN<\/code> is always returns false.<\/li><li>The <code>AND<\/code> keyword is a placeholder which indicates the <code>test_expression<\/code> should be within the range specified by <code>low_expression<\/code> and <code>high_expression<\/code>.<\/li><\/ul>\r\n\r\n\r\n\r\n<p>Note that the <code>BETWEEN<\/code> operator is inclusive. It returns true when the <code>test_expression<\/code> is less than or equal to <code>high_expression<\/code> and greater than or equal to the value of <code>low_expression<\/code>:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">test_expression &gt;= low_expression AND test_expression &lt;= high_expression\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>To specify an exclusive range, you use the greater than (&gt;) and less than operators (&lt;).<\/p>\r\n\r\n\r\n\r\n<p>Note that if any input to the <code>BETWEEN<\/code> operator is NULL, the result is NULL, or unknown to be precise.<\/p>\r\n\r\n\r\n\r\n<p>To negate the result of the <code>BETWEEN<\/code> operator, you use the <code>NOT BETWEEN<\/code> operator as follows:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">test_expression NOT BETWEEN low_expression AND high_expression\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The NOT <code>BETWEEN<\/code> returns true if the value of <code>test_expression<\/code> is less than the value of <code>low_expression<\/code> or greater than the value of <code>high_expression<\/code>:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\">test_expression &lt; low_expression OR test_expression &gt; high_expression\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<h2 class=\"wp-block-heading\">SQLite BETWEEN operator examples<\/h2>\r\n\r\n\r\n\r\n<p>We will use the <code>invoices<\/code> table from the <a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-sample-database\/\">sample database<\/a> for the demonstration:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"174\" height=\"224\" src=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\" alt=\"\" class=\"wp-image-1565\"\/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">SQLite BETWEEN numeric values example<\/h3>\r\n\r\n\r\n\r\n<p>The following statement finds invoices whose total is <code>between<\/code> 14.96 and 18.86:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\r\n    InvoiceId,\r\n    BillingAddress,\r\n    Total\r\n<span class=\"hljs-keyword\">FROM<\/span>\r\n    invoices\r\n<span class=\"hljs-keyword\">WHERE<\/span>\r\n    Total <span class=\"hljs-keyword\">BETWEEN<\/span> <span class=\"hljs-number\">14.91<\/span> <span class=\"hljs-keyword\">and<\/span> <span class=\"hljs-number\">18.86<\/span>    \r\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\r\n    Total; \r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Here is the output:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"324\" height=\"158\" src=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Numbers-example.png\" alt=\"SQLite BETWEEN Numbers example\" class=\"wp-image-1638\" srcset=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Numbers-example.png 324w, https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Numbers-example-300x146.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>As you can see, the invoices whose total is 14.91 or 18.86 are included in the result set.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">SQLite NOT BETWEEN numeric values example<\/h3>\r\n\r\n\r\n\r\n<p>To find the invoices whose total are not between 1 and 20, you use the <code>NOT BETWEEN<\/code> operator as shown in the following query:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\r\n    InvoiceId,\r\n    BillingAddress,\r\n    Total\r\n<span class=\"hljs-keyword\">FROM<\/span>\r\n    invoices\r\n<span class=\"hljs-keyword\">WHERE<\/span>\r\n    Total <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">BETWEEN<\/span> <span class=\"hljs-number\">1<\/span> <span class=\"hljs-keyword\">and<\/span> <span class=\"hljs-number\">20<\/span>\r\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\r\n    Total;    \r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The following picture shows the output:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"1020\" src=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Numbers-example.png\" alt=\"SQLite NOT BETWEEN Numbers example\" class=\"wp-image-1639\" srcset=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Numbers-example.png 359w, https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Numbers-example-106x300.png 106w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>As clearly shown in the output, the result includes the invoices whose total is less than 1 and greater than 20.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">SQLite BETWEEN dates example<\/h3>\r\n\r\n\r\n\r\n<p>The following example finds invoices whose invoice dates are from <code>January 1 2010<\/code> and <code>January 31 2010<\/code>:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\r\n    InvoiceId,\r\n    BillingAddress,\r\n    InvoiceDate,\r\n    Total\r\n<span class=\"hljs-keyword\">FROM<\/span>\r\n    invoices\r\n<span class=\"hljs-keyword\">WHERE<\/span>\r\n    InvoiceDate <span class=\"hljs-keyword\">BETWEEN<\/span> <span class=\"hljs-string\">'2010-01-01'<\/span> <span class=\"hljs-keyword\">AND<\/span> <span class=\"hljs-string\">'2010-01-31'<\/span>\r\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\r\n    InvoiceDate;    \r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>Here is the output:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"141\" src=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Dates-example.png\" alt=\"SQLite BETWEEN Dates example\" class=\"wp-image-1640\" srcset=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Dates-example.png 432w, https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-BETWEEN-Dates-example-300x98.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">SQLite NOT BETWEEN dates example<\/h3>\r\n\r\n\r\n\r\n<p>The following statement finds invoices whose dates are not between January 03, 2009, and December 01, 2013:<\/p>\r\n\r\n\r\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"SQL (Structured Query Language)\" data-shcb-language-slug=\"sql\"><span><code class=\"hljs language-sql\"><span class=\"hljs-keyword\">SELECT<\/span>\r\n    InvoiceId,\r\n    BillingAddress,\r\n    <span class=\"hljs-built_in\">date<\/span>(InvoiceDate) InvoiceDate,\r\n    Total\r\n<span class=\"hljs-keyword\">FROM<\/span>\r\n    invoices\r\n<span class=\"hljs-keyword\">WHERE<\/span>\r\n    InvoiceDate <span class=\"hljs-keyword\">NOT<\/span> <span class=\"hljs-keyword\">BETWEEN<\/span> <span class=\"hljs-string\">'2009-01-03'<\/span> <span class=\"hljs-keyword\">AND<\/span> <span class=\"hljs-string\">'2013-12-01'<\/span>\r\n<span class=\"hljs-keyword\">ORDER<\/span> <span class=\"hljs-keyword\">BY<\/span>\r\n    InvoiceDate;\r\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SQL (Structured Query Language)<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">sql<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\r\n\r\n\r\n<p>The output is as follows:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"173\" src=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Dates-example.png\" alt=\"SQLite NOT BETWEEN Dates example\" class=\"wp-image-1641\" srcset=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Dates-example.png 436w, https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-NOT-BETWEEN-Dates-example-300x119.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this tutorial, you have learned how to use the SQLite <code>BETWEEN<\/code> operator to test whether a value is in a range of values<\/p>\r\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful ?<\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"1636\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\"\n\t\t\t\tdata-post-title=\"SQLite BETWEEN\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"1636\"\n\t\t\t\tdata-post-url=\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\"\n\t\t\t\tdata-post-title=\"SQLite BETWEEN\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1636","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQLite BETWEEN Operator By Practical Examples<\/title>\n<meta name=\"description\" content=\"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQLite BETWEEN Operator By Practical Examples\" \/>\n<meta property=\"og:description\" content=\"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\" \/>\n<meta property=\"og:site_name\" content=\"SQLite Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-03T07:58:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427\"},\"headline\":\"SQLite BETWEEN\",\"datePublished\":\"2018-11-04T03:44:15+00:00\",\"dateModified\":\"2022-04-03T07:58:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\"},\"wordCount\":392,\"image\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\",\"url\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\",\"name\":\"SQLite BETWEEN Operator By Practical Examples\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\",\"datePublished\":\"2018-11-04T03:44:15+00:00\",\"dateModified\":\"2022-04-03T07:58:06+00:00\",\"description\":\"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage\",\"url\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\",\"contentUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png\",\"width\":174,\"height\":224},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlitetutorial.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQLite BETWEEN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#website\",\"url\":\"https:\/\/www.sqlitetutorial.net\/\",\"name\":\"SQLite Tutorial\",\"description\":\"A Step-by-step SQLite Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlitetutorial.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427\",\"name\":\"admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQLite BETWEEN Operator By Practical Examples","description":"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.","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:\/\/www.sqlitetutorial.net\/sqlite-between\/","og_locale":"en_US","og_type":"article","og_title":"SQLite BETWEEN Operator By Practical Examples","og_description":"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.","og_url":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/","og_site_name":"SQLite Tutorial","article_modified_time":"2022-04-03T07:58:06+00:00","og_image":[{"url":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#article","isPartOf":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/"},"author":{"name":"admin","@id":"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427"},"headline":"SQLite BETWEEN","datePublished":"2018-11-04T03:44:15+00:00","dateModified":"2022-04-03T07:58:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/"},"wordCount":392,"image":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/","url":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/","name":"SQLite BETWEEN Operator By Practical Examples","isPartOf":{"@id":"https:\/\/www.sqlitetutorial.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage"},"image":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png","datePublished":"2018-11-04T03:44:15+00:00","dateModified":"2022-04-03T07:58:06+00:00","description":"in this tutorial, you will learn how to use the SQLite BETWEEN operator to test whether a value is in a range of values.","breadcrumb":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlitetutorial.net\/sqlite-between\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#primaryimage","url":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png","contentUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/invoices.png","width":174,"height":224},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-between\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlitetutorial.net\/"},{"@type":"ListItem","position":2,"name":"SQLite BETWEEN"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlitetutorial.net\/#website","url":"https:\/\/www.sqlitetutorial.net\/","name":"SQLite Tutorial","description":"A Step-by-step SQLite Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlitetutorial.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427","name":"admin"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/comments?post=1636"}],"version-history":[{"count":1,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1636\/revisions"}],"predecessor-version":[{"id":2769,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1636\/revisions\/2769"}],"up":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/media?parent=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}