{"id":12368,"date":"2020-12-17T09:27:25","date_gmt":"2020-12-17T17:27:25","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12368"},"modified":"2023-12-01T04:06:12","modified_gmt":"2023-12-01T12:06:12","slug":"sql-limit","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/sql-limit\/","title":{"rendered":"SQL Limit: A Beginner&#8217;s Guide"},"content":{"rendered":"\n<p><em>The SQL LIMIT statement restricts how many rows a query returns. A LIMIT statement appears at the end of a query, after any ORDER BY statements. You can start a LIMIT statement at a particular row using the offset argument.<\/em><\/p>\n\n\n\n<p>When you\u2019re working in SQL, you may only want to retrieve a specific number of rows from a query.<\/p>\n\n\n\n<p>For example, you may want to retrieve the top three employees based on the number of \u201cemployee of the month\u201d awards they have earned. This is easier to read than a list of all employees and how many &#8220;employee of the month&#8221; awards they have earned.<\/p>\n\n\n\n<p>There is a built-in SQL function that allows you to perform this action: SQL LIMIT. Limit allows you to limit the number of records a query to a certain amount.<\/p>\n\n\n\n<p>In this tutorial, we are going to discuss how to use the SQL LIMIT command. We&#8217;ll also discuss how to use TOP, the equivalent of LIMIT on SQL Server instances.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Query Refresher<\/h2>\n\n\n\n<p>To retrieve information from a database, you have to write SQL queries. Queries almost always begin with the SELECT statement. We use this statement to tell the database which columns we want to retrieve. Queries often include the FROM term, which is used to state which table the statement will get its data from.<\/p>\n\n\n\n<p>Here is the syntax for an SQL query:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT column_name FROM table_name WHERE conditions_apply;<\/pre><\/div>\n\n\n\n<p>Here is an example of an SQL query that will return a list of the names of all employees in the <em>employees<\/em> table:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name FROM employees;<\/pre><\/div>\n\n\n\n<p>Our query returns the following: <\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>name<\/td><\/tr><tr><td>Luke<br>Mike<br>Hannah<br>Geoff<br>Alexis<br>Emma<br>Jonah<br>Adam<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>(8 rows)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is SQL LIMIT?<\/h2>\n\n\n\n<p>The SQL LIMIT clause restricts how many rows are returned from a query. The syntax for the LIMIT clause is: SELECT * FROM table LIMIT X;. X represents how many records you want to retrieve.<\/p>\n\n\n\n<p>For example, you can use the LIMIT clause to retrieve the top five players on a leaderboard. Or, you could use this clause the top five customers who have ordered the most products.<\/p>\n\n\n\n<p>Here\u2019s the syntax for a query that uses the <em>LIMIT<\/em> clause:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT column_name FROM table_name LIMIT number_to_limit;<\/pre><\/div>\n\n\n\n<p>The LIMIT clause is only compatible with the <a href=\"https:\/\/careerkarma.com\/blog\/sql-select\/\">SQL SELECT<\/a> statement. You cannot use a LIMIT clause on an <a href=\"https:\/\/careerkarma.com\/blog\/sql-update\/\">SQL UPDATE<\/a> statement, for instance. Or you could not use a LIMIT clause on an SQL DROP or SQL ALTER TABLE statement.<\/p>\n\n\n\n<p>Your LIMIT number must be positive. Say you want to retrieve records from the bottom of the list. You should use the <a href=\"https:\/\/careerkarma.com\/blog\/sql-order-by\/\">SQL ORDER BY<\/a> statement to order them in descending order. Then, you should use a LIMIT statement:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT * FROM table ORDER BY column DESC LIMIT X;<\/pre><\/div>\n\n\n\n<p>This is the syntax for ordering a table in descending order and limiting the output of the query. We&#8217;ve used an ORDER BY clause to retrieve only the first X records.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SQL LIMIT Rows Example<\/h2>\n\n\n\n<p>Let\u2019s use an example to illustrate the <em>SQL LIMIT<\/em> clause in action. Say that we want to get a list of the names of the top three longest-serving employees within our organization.<\/p>\n\n\n\n<p>We also want to retrieve the dates they were hired. We could use the following query to retrieve that information:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name, hired_date FROM employees ORDER BY hired_date DESC LIMIT 3;<\/pre><\/div>\n\n\n\n<p>Our query returns the following:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>name<\/td><td>hired_date<\/td><\/tr><tr><td>Alexis<\/td><td>2014-04-01<\/td><\/tr><tr><td>Geoff<\/td><td>2012-03-17<\/td><\/tr><tr><td>Hannah<\/td><td>2011-09-30<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>(3 rows)<\/p>\n\n\n\n<p>Our query has returned the top three longest-serving employees by the date on which they were hired.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Offset the SQL LIMIT Clause<\/h2>\n\n\n\n<p>If you want to offset the <em>LIMIT<\/em> clause\u2014change the starting point\u2014you can specify a second parameter. Here is the syntax for an <em>SQL LIMIT<\/em> query that offsets a query:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT column_name FROM table_name LIMIT starting_point, rows_to_return;<\/pre><\/div>\n\n\n\n<p>The starting point is the offset for the query (where your results will start). The &#8220;rows_to_return&#8221; is how many rows you want your query to retrieve.<\/p>\n\n\n\n<p>Let\u2019s say that we want to get the name of the fifth-highest paid employee. We could use the <em>LIMIT<\/em> clause to specify that we want to get only one record, which should be the fifth highest-paid employee. Here\u2019s an example of such a query:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name FROM employees ORDER BY salary DESC LIMIT 4, 1;<\/pre><\/div>\n\n\n\n<p>We specify that we want to get the item which comes fifth in our list\u2014remember, the first row is. We only want to get one record. Here\u2019s the result of our query:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>name<\/td><\/tr><tr><td>Alexis<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>(1 row)<\/p>\n\n\n\n<p>The offset clause only works in <em>MySQL<\/em>. If you want to run an offset operation in <em>PostgreSQL<\/em>, you\u2019ll need to use the <em>OFFSET<\/em> operator like so:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT name FROM employees ORDER BY salary DESC OFFSET 4 LIMIT 1;<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SQL TOP<\/h2>\n\n\n\n<p>In SQL Server and MS Access the <em>SQL TOP<\/em> clause is used to limit the number of rows returned by a query. Here is the syntax for an SQL query that uses TOP:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT TOP number column_names FROM table_name;<\/pre><\/div>\n\n\n\n<p>Here\u2019s an example of a query that will return the top two highest-paid employees from the <em>employees<\/em> table:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT TOP 2 * FROM employees ORDER BY salary DESC;<\/pre><\/div>\n\n\n\n<p>Our query returns the following: <\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>name<\/td><\/tr><tr><td>Jonah<br>Emma<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>(2 rows)<\/p>\n\n\n\n<p>The <em>TOP<\/em> clause can be followed by the <em>PERCENT<\/em> keyword, which retrieves the percentage of rows instead of the number of fixed rows. So, if you want to get the top 25 percent of employees based on their salaries, you could use this query:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>SELECT TOP 25 PERCENT * FROM employees\nORDER BY salary DESC;<\/pre><\/div>\n\n\n\n<p>Our query on the database with eight records returns the following:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>name<\/td><\/tr><tr><td>Jonah<br>Emma<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>(2 rows)<\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/SQL-Limit?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>You can use the <em>SQL LIMIT<\/em> operator (or <em>TOP<\/em> in SQL Server and MS Access) to limit the number of rows a query returns. This is useful if you only need to see the top or bottom entries from a query.<\/p>\n\n\n\n<p>For example, you may want to get the records of the five employees with the highest salaries. In this tutorial, we discussed how queries are structured in SQL, and how to use the <em>LIMIT<\/em> operator.<\/p>\n\n\n\n<p>Do you want to learn more about SQL? Read our complete <a href=\"https:\/\/careerkarma.com\/blog\/learn-sql\/\">How to Learn SQL guide<\/a> for expert advice and tips, and for guidance on online courses.<\/p>\n","protected":false},"excerpt":{"rendered":"The SQL LIMIT statement restricts how many rows a query returns. A LIMIT statement appears at the end of a query, after any ORDER BY statements. You can start a LIMIT statement at a particular row using the offset argument. When you\u2019re working in SQL, you may only want to retrieve a specific number of&hellip;","protected":false},"author":240,"featured_media":12369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17284],"tags":[],"class_list":{"0":"post-12368","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>SQL Limit: A Beginner&#039;s Guide %<\/title>\n<meta name=\"description\" content=\"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.\" \/>\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-limit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Limit: A Beginner&#039;s Guide\" \/>\n<meta property=\"og:description\" content=\"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/sql-limit\/\" \/>\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=\"2020-12-17T17:27:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:06:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\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-limit\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"SQL Limit: A Beginner&#8217;s Guide\",\"datePublished\":\"2020-12-17T17:27:25+00:00\",\"dateModified\":\"2023-12-01T12:06:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/\"},\"wordCount\":952,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/SQL.jpg\",\"articleSection\":[\"SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/\",\"name\":\"SQL Limit: A Beginner's Guide %\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/SQL.jpg\",\"datePublished\":\"2020-12-17T17:27:25+00:00\",\"dateModified\":\"2023-12-01T12:06:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/SQL.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/SQL.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/sql-limit\\\/#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 Limit: A Beginner&#8217;s 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\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"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 Limit: A Beginner's Guide %","description":"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.","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-limit\/","og_locale":"en_US","og_type":"article","og_title":"SQL Limit: A Beginner's Guide","og_description":"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.","og_url":"https:\/\/careerkarma.com\/blog\/sql-limit\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-17T17:27:25+00:00","article_modified_time":"2023-12-01T12:06:12+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.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-limit\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"SQL Limit: A Beginner&#8217;s Guide","datePublished":"2020-12-17T17:27:25+00:00","dateModified":"2023-12-01T12:06:12+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/"},"wordCount":952,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.jpg","articleSection":["SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/sql-limit\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/","url":"https:\/\/careerkarma.com\/blog\/sql-limit\/","name":"SQL Limit: A Beginner's Guide %","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.jpg","datePublished":"2020-12-17T17:27:25+00:00","dateModified":"2023-12-01T12:06:12+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The SQL limit statement allows programmers to retrieve only a certain number of rows from a query. Learn more in this Career Karma article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/sql-limit\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/SQL.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/sql-limit\/#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 Limit: A Beginner&#8217;s 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\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","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\/12368","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=12368"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12368\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12369"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}