itemId stringlengths 1 34 | itemType stringclasses 4
values | site stringclasses 4
values | scrapedAt timestamp[s]date 2026-08-03 00:21:25 2026-08-03 04:01:45 | tagName stringlengths 1 34 ⌀ | questionCount int64 2 2.53M ⌀ | hasSynonyms bool 2
classes | isModeratorOnly bool 1
class | isRequired bool 1
class | link stringlengths 32 258 | _run_id stringclasses 57
values | _dataset_id stringclasses 57
values | questionId int64 1 80M ⌀ | title stringlengths 15 150 ⌀ | score int64 -10 35.3k ⌀ | viewCount int64 6 16.7M ⌀ | answerCount int64 0 296 ⌀ | isAnswered bool 2
classes | hasAcceptedAnswer bool 2
classes | tags listlengths 1 6 ⌀ | createdAt timestamp[s]date 2008-08-01 04:18:04 2026-08-03 03:37:34 ⌀ | lastActivityAt timestamp[s]date 2008-10-30 09:20:18 2026-08-03 01:36:51 ⌀ | ownerDisplayName stringlengths 3 30 ⌀ | isClosed bool 2
classes | contentLicense stringclasses 3
values | acceptedAnswerId int64 4 80M ⌀ | ownerUserId int64 1 33M ⌀ | ownerReputation int64 1 1.53M ⌀ | userId int64 13 33M ⌀ | displayName stringclasses 897
values | reputation int64 1 1.53M ⌀ | userType stringclasses 3
values | lastAccessAt timestamp[s]date 2011-01-10 08:55:57 2026-08-03 03:38:13 ⌀ | goldBadges int64 0 895 ⌀ | silverBadges int64 0 9.32k ⌀ | bronzeBadges int64 0 9.36k ⌀ | reputationChangeMonth int64 -40 1.43k ⌀ | reputationChangeYear int64 -1,146 11.7k ⌀ | websiteUrl stringclasses 302
values | location stringclasses 279
values | acceptRate int64 17 100 ⌀ | answerId int64 1.13k 80M ⌀ | isAccepted bool 2
classes | bodyText stringlengths 31 24.4k ⌀ | bodyHtml stringlengths 39 34.9k ⌀ | answers listlengths 1 3 ⌀ | answersFetched int64 0 3 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
105776 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/105776/how-do-i-restore-a-dump-file-from-mysqldump | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 105,776 | How do I restore a dump file from mysqldump? | 700 | 1,207,758 | 19 | true | true | [
"mysql",
"sql",
"database"
] | 2008-09-19T21:27:00 | 2024-10-13T19:20:11 | Zack Peterson | false | CC BY-SA 4.0 | 105,798 | 83 | 57,681 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
425158 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/425158/how-to-skip-certain-database-tables-with-mysqldump | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 425,158 | How to skip certain database tables with mysqldump? | 695 | 484,875 | 13 | true | true | [
"sql",
"mysql",
"database",
"dump",
"database-dump"
] | 2009-01-08T17:30:17 | 2024-07-12T22:14:04 | Zac | false | CC BY-SA 4.0 | 425,172 | 5,630 | 1,008 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
6175473 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/6175473/export-schema-without-data | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 6,175,473 | Export schema without data | 686 | 602,986 | 16 | true | true | [
"sql",
"mysql",
"database",
"database-schema",
"dump"
] | 2011-05-30T11:06:54 | 2023-12-01T13:21:20 | Darth Blue Ray | false | CC BY-SA 4.0 | 6,175,506 | 753,983 | 9,795 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1609637 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1609637/how-can-i-insert-multiple-rows-with-a-single-statement-in-sqlite | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,609,637 | How can I insert multiple rows with a single statement in SQLite? | 685 | 554,625 | 25 | true | true | [
"sql",
"database",
"sqlite",
"syntax",
"insert"
] | 2009-10-22T20:04:42 | 2026-05-02T01:45:20 | Andrew | false | CC BY-SA 4.0 | 5,009,740 | 48,523 | 241,697 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
121387 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/121387/fetch-the-rows-which-have-the-max-value-for-a-column-for-each-distinct-value-of | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 121,387 | Fetch the rows which have the Max value for a column for each distinct value of another column | 684 | 708,585 | 36 | true | true | [
"sql",
"oracle-database",
"greatest-n-per-group"
] | 2008-09-23T14:34:13 | 2024-06-07T09:27:05 | Umang | false | CC BY-SA 4.0 | 121,450 | 21,154 | 6,875 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1521605 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1521605/selecting-count-with-distinct | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,521,605 | Selecting COUNT(*) with DISTINCT | 665 | 1,930,486 | 6 | true | true | [
"sql",
"sql-server",
"t-sql",
"sql-server-2005",
"distinct"
] | 2009-10-05T18:19:16 | 2024-05-15T11:02:23 | somacore | false | CC BY-SA 4.0 | 1,521,656 | 53,409 | 7,164 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
124417 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/124417/max-function-in-sql-server-that-takes-two-values-like-math-max-in-net | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 124,417 | Max function in SQL Server that takes two values like Math.Max in .NET | 659 | 724,170 | 31 | true | true | [
"sql",
"sql-server",
"max"
] | 2008-09-23T22:52:03 | 2025-06-14T07:52:47 | skb | false | CC BY-SA 4.0 | 124,474 | 14,101 | 31,314 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
173041 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/173041/not-in-vs-not-exists | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 173,041 | NOT IN vs NOT EXISTS | 653 | 2,007,711 | 11 | true | true | [
"sql",
"sql-server",
"notin"
] | 2008-10-06T02:19:05 | 2023-06-21T10:20:19 | ilitirit | false | CC BY-SA 3.0 | 11,074,428 | 9,825 | 16,460 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
7063501 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/7063501/how-can-i-turn-identity-insert-on-and-off-using-sql-server-2008 | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 7,063,501 | How can I turn IDENTITY_INSERT on and off using SQL Server 2008? | 652 | 1,778,655 | 8 | true | true | [
"sql",
"sql-server-2008"
] | 2011-08-15T09:37:29 | 2026-05-14T01:38:12 | Beginner | false | CC BY-SA 4.0 | 7,063,527 | 569,654 | 29,811 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
947215 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/947215/how-do-i-get-a-list-of-table-column-names-from-an-sqlite-database | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 947,215 | How do I get a list of table column names from an SQLite database? | 651 | 920,699 | 27 | true | false | [
"sql",
"sqlite",
"select",
"database-table"
] | 2009-06-03T20:59:14 | 2026-04-07T14:17:19 | luebken | false | CC BY-SA 4.0 | null | 55,061 | 7,059 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
17365222 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/17365222/update-and-replace-part-of-a-string | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 17,365,222 | UPDATE and REPLACE part of a string | 629 | 1,391,118 | 9 | true | true | [
"sql",
"sql-server",
"string",
"sql-server-2008",
"replace"
] | 2013-06-28T12:55:07 | 2022-01-31T12:11:53 | aston_zh | false | CC BY-SA 3.0 | 17,365,278 | 2,531,765 | 6,843 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
418898 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/418898/upsert-not-insert-or-replace | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 418,898 | UPSERT *not* INSERT or REPLACE | 629 | 404,507 | 19 | true | true | [
"sql",
"sqlite",
"upsert"
] | 2009-01-07T01:47:23 | 2023-04-07T10:06:26 | Mike Trader | false | CC BY-SA 4.0 | 4,330,694 | 18,749 | 8,714 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
19412 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/19412/how-to-request-a-random-row-in-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 19,412 | How to request a random row in SQL? | 622 | 615,915 | 32 | true | true | [
"sql",
"random"
] | 2008-08-21T06:28:49 | 2024-01-27T07:23:46 | sverrejoh | false | CC BY-SA 4.0 | 19,419 | 473 | 16,990 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
109232 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/109232/what-is-the-best-way-to-paginate-results-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 109,232 | What is the best way to paginate results in SQL Server | 621 | 747,059 | 19 | true | true | [
"sql",
"sql-server",
"performance",
"pagination"
] | 2008-09-20T20:16:18 | 2023-07-05T11:02:29 | Panagiotis Korros | false | CC BY-SA 3.0 | 109,290 | 19,331 | 11,148 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
652770 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/652770/delete-with-join-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 652,770 | Delete with Join in MySQL | 620 | 464,152 | 14 | true | true | [
"sql",
"mysql"
] | 2009-03-17T01:44:05 | 2024-06-09T21:52:16 | GeekJock | false | CC BY-SA 4.0 | 4,192,849 | 74,980 | 11,416 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
54418 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/54418/how-do-i-or-can-i-select-distinct-on-multiple-columns | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 54,418 | How do I (or can I) SELECT DISTINCT on multiple columns? | 617 | 1,459,977 | 5 | true | true | [
"sql",
"postgresql",
"sql-update",
"duplicates",
"distinct"
] | 2008-09-10T15:33:10 | 2024-10-19T03:48:22 | sheats | false | CC BY-SA 3.0 | 54,430 | 4,915 | 35,022 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
18390574 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/18390574/delete-duplicate-rows-keeping-the-first-row | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 18,390,574 | Delete duplicate rows keeping the first row | 616 | 1,555,529 | 29 | true | false | [
"sql",
"sql-server-2008",
"duplicates",
"sql-delete"
] | 2013-08-22T20:51:14 | 2026-05-14T04:28:00 | Fearghal | false | CC BY-SA 4.0 | null | 510,981 | 11,637 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
11754781 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/11754781/how-to-declare-a-variable-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 11,754,781 | How to declare a variable in MySQL? | 614 | 1,198,983 | 9 | true | true | [
"mysql",
"sql"
] | 2012-08-01T07:47:52 | 2024-10-01T10:25:30 | cdub | false | CC BY-SA 3.0 | 11,754,790 | 665,557 | 25,919 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
18907047 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/18907047/postgres-db-size-command | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 18,907,047 | Postgres DB Size Command | 613 | 637,250 | 15 | true | false | [
"sql",
"postgresql",
"postgresql-9.2"
] | 2013-09-20T00:22:23 | 2025-04-29T15:34:08 | S M Shamimul Hasan | false | CC BY-SA 4.0 | null | 2,151,087 | 7,044 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1177449 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1177449/best-approach-to-remove-time-part-of-datetime-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,177,449 | Best approach to remove time part of datetime in SQL Server | 612 | 1,045,949 | 24 | true | true | [
"sql",
"sql-server",
"t-sql",
"datetime",
"date"
] | 2009-07-24T12:49:54 | 2024-09-12T15:57:15 | Stephen Perelson | false | CC BY-SA 3.0 | 1,177,529 | 144,355 | 6,793 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
5487892 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/5487892/or-is-not-supported-with-case-expression | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 5,487,892 | OR is not supported with CASE expression | 611 | 3,110,550 | 10 | true | true | [
"sql",
"sql-server",
"t-sql",
"case"
] | 2011-03-30T14:45:11 | 2026-07-15T08:53:47 | Werner | false | CC BY-SA 4.0 | 5,487,936 | 455,195 | 6,233 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1400078 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1400078/is-it-possible-to-specify-condition-in-count | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,400,078 | Is it possible to specify condition in Count()? | 610 | 926,086 | 13 | true | true | [
"sql",
"sql-server",
"t-sql"
] | 2009-09-09T14:28:52 | 2022-12-16T10:03:24 | agnieszka | false | CC BY-SA 3.0 | 1,400,115 | 40,872 | 15,425 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
41645309 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 41,645,309 | MySQL Error: : 'Access denied for user 'root'@'localhost' | 585 | 2,253,427 | 29 | true | true | [
"sql",
"mysql",
"database-connection"
] | 2017-01-14T00:06:49 | 2024-05-29T07:25:34 | Harsh Trivedi | true | null | 41,793,945 | 6,591,743 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
6256610 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/6256610/updating-table-rows-in-postgres-using-subquery | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 6,256,610 | updating table rows in postgres using subquery | 585 | 806,467 | 8 | true | true | [
"sql",
"postgresql",
"subquery",
"sql-update"
] | 2011-06-06T18:49:02 | 2025-06-12T19:06:23 | stackover | false | CC BY-SA 4.0 | 6,258,586 | 555,064 | 7,085 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
192220 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/192220/what-is-the-most-efficient-way-to-parse-a-flat-table-into-a-tree | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 192,220 | What is the most efficient way to parse a flat table into a tree? | 580 | 145,545 | 15 | true | true | [
"sql",
"algorithm",
"recursion",
"tree",
"hierarchical-data"
] | 2008-10-10T16:47:43 | 2025-08-21T15:06:22 | Tomalak | false | CC BY-SA 4.0 | 192,462 | 18,771 | 339,774 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2578194 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2578194/what-are-ddl-and-dml | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,578,194 | What are DDL and DML? | 580 | 717,731 | 13 | true | true | [
"sql",
"ddl",
"dml"
] | 2010-04-05T11:52:43 | 2024-01-15T04:16:28 | Sachindra | false | CC BY-SA 4.0 | 44,796,508 | 197,241 | 7,269 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1049210 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1049210/adding-an-identity-to-an-existing-column | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,049,210 | Adding an identity to an existing column | 577 | 1,465,553 | 21 | true | true | [
"sql",
"sql-server",
"alter-table",
"identity-column"
] | 2009-06-26T13:41:21 | 2026-02-26T13:42:22 | Kirschstein | false | CC BY-SA 3.0 | 1,049,305 | 15,691 | 14,858 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1710476 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1710476/how-to-print-a-query-string-with-parameter-values-when-using-hibernate | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,710,476 | How to print a query string with parameter values when using Hibernate | 565 | 632,925 | 35 | true | true | [
"java",
"sql",
"hibernate",
"orm"
] | 2009-11-10T19:17:59 | 2024-04-15T06:29:29 | craftsman | false | CC BY-SA 3.0 | 1,713,464 | 162,461 | 15,751 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2305973 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2305973/java-util-date-vs-java-sql-date | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,305,973 | java.util.Date vs java.sql.Date | 564 | 317,316 | 7 | true | true | [
"java",
"sql",
"datetime",
"date",
"jdbc"
] | 2010-02-21T13:16:40 | 2024-09-19T23:53:32 | flybywire | false | CC BY-SA 2.5 | 2,306,051 | 63,051 | 277,632 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4329396 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4329396/mysql-select-10-random-rows-from-600k-rows-fast | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,329,396 | MySQL select 10 random rows from 600K rows fast | 562 | 598,342 | 29 | true | true | [
"mysql",
"sql",
"random"
] | 2010-12-01T21:35:14 | 2024-11-26T14:35:02 | Francisc | false | CC BY-SA 4.0 | 4,329,447 | 383,148 | 81,023 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1334012 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1334012/cannot-insert-explicit-value-for-identity-column-in-table-table-when-identity | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,334,012 | Cannot insert explicit value for identity column in table 'table' when IDENTITY_INSERT is set to OFF | 560 | 1,467,044 | 34 | true | false | [
"sql",
"sql-server",
"sybase"
] | 2009-08-26T11:19:57 | 2026-07-16T20:28:52 | Jaison | false | CC BY-SA 3.0 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1009954 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1009954/mysql-variable-vs-variable-whats-the-difference | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,009,954 | MySQL: @variable vs. variable. What's the difference? | 555 | 457,086 | 6 | true | true | [
"sql",
"mysql",
"database",
"local-variables",
"user-defined-variables"
] | 2009-06-17T23:04:00 | 2024-04-14T16:17:59 | aarona | false | CC BY-SA 4.0 | 1,010,042 | 43,792 | 37,824 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1481476 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1481476/when-to-use-on-update-cascade | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,481,476 | When to use "ON UPDATE CASCADE" | 555 | 485,850 | 8 | true | true | [
"sql",
"foreign-keys"
] | 2009-09-26T15:41:49 | 2022-09-08T05:41:56 | NawaMan | false | CC BY-SA 4.0 | 1,481,524 | 176,180 | 25,845 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2129693 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2129693/restrict-results-to-top-n-rows-per-group | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,129,693 | Restrict results to top N rows per group | 548 | 573,130 | 14 | true | false | [
"sql",
"mysql",
"greatest-n-per-group",
"ranking"
] | 2010-01-25T01:25:02 | 2024-01-05T22:26:18 | Wells | false | CC BY-SA 4.0 | null | 160,511 | 11,089 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
71022 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/71022/sql-max-of-multiple-columns | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 71,022 | SQL MAX of multiple columns? | 546 | 934,121 | 24 | true | true | [
"sql",
"sql-server",
"t-sql"
] | 2008-09-16T10:27:02 | 2024-05-14T07:07:36 | BenB | false | CC BY-SA 3.0 | 71,045 | 11,703 | 10,680 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2955459 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2955459/what-is-an-index-in-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,955,459 | What is an index in SQL? | 541 | 816,111 | 13 | true | true | [
"sql",
"indexing"
] | 2010-06-02T06:26:54 | 2026-02-09T17:44:40 | Surya sasidhar | false | CC BY-SA 4.0 | 2,955,470 | 164,002 | 30,471 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
11296361 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/11296361/how-to-create-id-with-auto-increment-on-oracle | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 11,296,361 | How to create id with AUTO_INCREMENT on Oracle? | 538 | 1,425,787 | 18 | true | true | [
"sql",
"oracle-database",
"auto-increment"
] | 2012-07-02T15:09:48 | 2022-09-26T04:19:53 | Sushan Ghimire | false | CC BY-SA 3.0 | 11,296,469 | 1,143,828 | 7,597 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1827063 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,827,063 | MySQL error: key specification without a key length | 538 | 647,632 | 20 | true | true | [
"mysql",
"sql",
"mysql-error-1170"
] | 2009-12-01T15:50:45 | 2026-02-23T16:06:58 | GSto | false | CC BY-SA 3.0 | 1,827,099 | 89,761 | 42,574 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1198364 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1198364/how-can-i-update-top-100-records-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,198,364 | How can I update top 100 records in SQL server? | 537 | 659,708 | 11 | true | true | [
"sql",
"sql-server",
"t-sql",
"sql-update"
] | 2009-07-29T06:37:18 | 2025-08-18T12:09:46 | Rajesh | false | CC BY-SA 4.0 | 1,198,404 | 130,289 | 6,629 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2647 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2647/how-do-i-split-a-delimited-string-so-i-can-access-individual-items | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,647 | How do I split a delimited string so I can access individual items? | 535 | 1,000,786 | 46 | true | true | [
"sql",
"sql-server",
"t-sql",
"split"
] | 2008-08-05T18:15:47 | 2025-10-23T12:12:01 | GateKiller | false | CC BY-SA 4.0 | 2,657 | 383 | 76,426 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
8674718 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/8674718/best-way-to-select-random-rows-postgresql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 8,674,718 | Best way to select random rows PostgreSQL | 531 | 438,316 | 13 | true | true | [
"sql",
"performance",
"postgresql",
"random"
] | 2011-12-29T23:30:11 | 2024-10-17T20:35:46 | nanounanue | false | CC BY-SA 4.0 | 8,675,160 | 754,176 | 8,482 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
10025032 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements-and-when-should-i-use-it | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 10,025,032 | What is the meaning of the prefix N in T-SQL statements and when should I use it? | 529 | 502,762 | 4 | true | true | [
"sql",
"sql-server",
"t-sql"
] | 2012-04-05T08:19:53 | 2021-04-16T08:11:07 | Kartik Patel | false | CC BY-SA 4.0 | 10,025,043 | 1,253,970 | 9,703 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
970562 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/970562/postgres-and-indexes-on-foreign-keys-and-primary-keys | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 970,562 | Postgres and indexes on foreign keys and primary keys | 529 | 260,299 | 9 | true | true | [
"sql",
"postgresql",
"indexing",
"foreign-keys",
"primary-key"
] | 2009-06-09T14:56:40 | 2024-04-29T19:40:16 | mainstringargs | false | CC BY-SA 4.0 | 970,605 | 33,863 | 14,123 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3556890 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3556890/altering-a-column-to-be-nullable | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,556,890 | Altering a column to be nullable | 527 | 834,020 | 12 | true | true | [
"sql"
] | 2010-08-24T13:26:40 | 2025-06-25T22:27:12 | challengeAccepted | true | null | 3,556,942 | 397,062 | 7,786 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
10643379 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/10643379/how-do-i-query-for-all-dates-greater-than-a-certain-date-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 10,643,379 | How do I query for all dates greater than a certain date in SQL Server? | 526 | 2,153,918 | 8 | true | true | [
"sql",
"sql-server",
"datetime"
] | 2012-05-17T20:56:14 | 2022-11-15T04:42:04 | Eric Francis | false | CC BY-SA 4.0 | 10,643,403 | 843,542 | 24,697 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4629979 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4629979/nested-select-statement-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,629,979 | Nested select statement in SQL Server | 525 | 1,095,647 | 3 | true | true | [
"sql",
"sql-server",
"nested",
"subquery",
"querying"
] | 2011-01-07T20:27:26 | 2022-08-01T21:33:18 | Brennan Vincent | false | CC BY-SA 4.0 | 4,630,000 | 242,814 | 11,058 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
31211506 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/31211506/how-stuff-and-for-xml-path-work-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 31,211,506 | How Stuff and 'For Xml Path' work in SQL Server? | 523 | 990,078 | 9 | true | false | [
"sql",
"sql-server",
"for-xml-path",
"stuff"
] | 2015-07-03T17:03:05 | 2025-01-25T09:42:04 | Puneet Chawla | false | CC BY-SA 4.0 | null | 4,823,805 | 6,081 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
24929 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/24929/difference-between-exists-and-in-in-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 24,929 | Difference between EXISTS and IN in SQL? | 520 | 691,053 | 22 | true | false | [
"sql",
"exists",
"sql-in"
] | 2008-08-24T08:42:23 | 2025-10-22T04:39:42 | Krantz | false | CC BY-SA 4.0 | null | 2,528 | 6,323 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
722221 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/722221/how-to-log-postgresql-queries | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 722,221 | How to log PostgreSQL queries? | 519 | 699,167 | 14 | true | true | [
"sql",
"database",
"postgresql",
"logging"
] | 2009-04-06T16:34:32 | 2023-09-26T09:49:57 | Paul | false | CC BY-SA 4.0 | 722,236 | 83,313 | 12,859 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
530012 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/530012/how-to-convert-java-util-date-to-java-sql-date | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 530,012 | How to convert java.util.Date to java.sql.Date? | 517 | 800,273 | 17 | true | true | [
"java",
"sql",
"datetime",
"date"
] | 2009-02-09T21:16:18 | 2022-08-03T17:23:22 | David Ackerman | false | CC BY-SA 3.0 | 31,238,011 | 2,504 | 12,729 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1490942 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1490942/declare-a-variable-in-a-postgresql-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,490,942 | Declare a variable in a PostgreSQL query | 515 | 943,495 | 18 | true | true | [
"sql",
"database",
"postgresql",
"postgresql-8.3",
"user-variables"
] | 2009-09-29T06:41:05 | 2024-04-25T09:01:25 | EMP | false | CC BY-SA 4.0 | 1,491,329 | 20,336 | 62,773 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
30290880 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/30290880/rename-a-column-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 30,290,880 | Rename a column in MySQL | 513 | 795,764 | 18 | true | true | [
"sql",
"mysql",
"rename",
"alter"
] | 2015-05-17T18:59:13 | 2024-11-25T17:24:24 | Michael Okoli | false | CC BY-SA 4.0 | 30,290,915 | 4,831,534 | 5,337 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1515969 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1515969/exporting-data-in-sql-server-as-insert-into | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,515,969 | Exporting data In SQL Server as INSERT INTO | 512 | 565,640 | 11 | true | true | [
"sql",
"sql-server",
"insert",
"data-migration"
] | 2009-10-04T08:57:36 | 2025-06-04T19:26:44 | Jack Kada | false | CC BY-SA 3.0 | 1,515,975 | 122,528 | 25,482 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
34115174 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/34115174/error-related-to-only-full-group-by-when-executing-a-query-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 34,115,174 | Error related to only_full_group_by when executing a query in MySql | 511 | 750,786 | 18 | true | true | [
"mysql",
"sql",
"group-by",
"mysql-error-1055"
] | 2015-12-06T07:42:07 | 2024-01-15T01:27:02 | Dan Bemowski | false | CC BY-SA 4.0 | 34,115,425 | 2,604,999 | 5,385 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1912095 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1912095/how-to-insert-a-value-that-contains-an-apostrophe-single-quote | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,912,095 | How to insert a value that contains an apostrophe (single quote)? | 510 | 1,317,785 | 13 | true | true | [
"sql",
"sql-update",
"sql-insert"
] | 2009-12-16T03:34:44 | 2025-01-06T20:03:19 | leora | false | CC BY-SA 3.0 | 1,912,100 | 4,653 | 198,465 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4076098 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4076098/how-to-select-rows-with-no-matching-entry-in-another-table | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,076,098 | How to select rows with no matching entry in another table? | 509 | 754,611 | 11 | true | true | [
"sql",
"foreign-keys"
] | 2010-11-02T08:47:50 | 2024-10-02T15:28:49 | Frosty840 | false | CC BY-SA 3.0 | 4,076,157 | 82,037 | 8,445 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
273238 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/273238/how-to-use-group-by-to-concatenate-strings-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 273,238 | How to use GROUP BY to concatenate strings in SQL Server? | 509 | 946,713 | 23 | true | true | [
"sql",
"sql-server",
"string-concatenation",
"sql-server-group-concat"
] | 2008-11-07T19:08:00 | 2024-03-07T03:19:59 | Eldila | false | CC BY-SA 3.0 | 273,330 | 889 | 15,856 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
15745042 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/15745042/efficiently-convert-rows-to-columns | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 15,745,042 | Efficiently convert rows to columns | 507 | 1,554,602 | 4 | true | true | [
"sql",
"sql-server",
"sql-server-2008",
"pivot"
] | 2013-04-01T14:11:17 | 2025-09-03T08:30:15 | tbag | false | CC BY-SA 4.0 | 15,745,076 | 2,218,311 | 5,111 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
27435839 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/27435839/how-to-list-active-connections-on-postgresql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 27,435,839 | How to list active connections on PostgreSQL? | 505 | 781,996 | 5 | true | true | [
"sql",
"postgresql",
"database-connection",
"listings"
] | 2014-12-12T02:20:06 | 2024-06-22T19:46:03 | Tregoreg | false | CC BY-SA 4.0 | 27,435,868 | 1,137,187 | 23,356 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
164319 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/164319/is-there-any-difference-between-group-by-and-distinct | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 164,319 | Is there any difference between GROUP BY and DISTINCT? | 504 | 428,858 | 25 | true | true | [
"sql",
"group-by",
"distinct"
] | 2008-10-02T20:09:06 | 2023-12-31T19:08:13 | Brettski | false | CC BY-SA 4.0 | 164,544 | 5,836 | 20,341 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
44917 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/44917/explicit-vs-implicit-sql-joins | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 44,917 | Explicit vs implicit SQL joins | 503 | 249,280 | 12 | true | true | [
"sql",
"join"
] | 2008-09-04T22:49:58 | 2023-02-21T21:18:54 | dmanxiii | false | CC BY-SA 3.0 | 44,932 | 4,316 | 52,273 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
13674031 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/13674031/how-to-get-the-top-10-values-in-postgresql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 13,674,031 | How to get the top 10 values in postgresql? | 501 | 1,059,013 | 4 | true | false | [
"sql",
"postgresql",
"sql-limit"
] | 2012-12-02T21:27:03 | 2022-06-08T19:09:26 | Joey Franklin | false | CC BY-SA 4.0 | null | 1,181,215 | 7,053 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
43870 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/43870/how-to-concatenate-strings-of-a-string-field-in-a-postgresql-group-by-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 43,870 | How to concatenate strings of a string field in a PostgreSQL 'group by' query? | 501 | 458,712 | 15 | true | true | [
"sql",
"postgresql",
"group-by",
"string-aggregation"
] | 2008-09-04T14:27:16 | 2025-01-21T16:09:11 | Guy C | false | CC BY-SA 4.0 | 43,944 | 4,045 | 7,380 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3805958 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3805958/how-to-delete-a-record-in-django-models | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,805,958 | How to delete a record in Django models? | 499 | 643,389 | 10 | true | false | [
"python",
"sql",
"django",
"django-models",
"django-queryset"
] | 2010-09-27T16:48:06 | 2024-12-15T16:47:23 | user426795 | false | CC BY-SA 4.0 | null | 426,795 | 11,741 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
12789396 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/12789396/how-to-get-multiple-filtered-counts-with-one-sql-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 12,789,396 | How to get multiple filtered counts with one SQL query | 498 | 666,406 | 12 | true | true | [
"sql",
"filter",
"count"
] | 2012-10-08T21:00:05 | 2026-05-27T22:15:56 | Crobzilla | false | CC BY-SA 4.0 | 12,789,493 | 759,568 | 5,101 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4812933 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4812933/how-to-change-a-pg-column-to-nullable-true | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,812,933 | How to change a PG column to NULLABLE TRUE? | 498 | 295,057 | 1 | true | true | [
"sql",
"postgresql",
"nullable"
] | 2011-01-27T05:05:23 | 2022-11-01T20:43:30 | mateusmaso | false | CC BY-SA 3.0 | 4,813,062 | 420,661 | 8,593 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
16568 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/16568/how-to-select-the-nth-row-in-a-sql-database-table | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 16,568 | How to select the nth row in a SQL database table? | 497 | 1,109,825 | 34 | true | true | [
"mysql",
"sql",
"database",
"oracle-database",
"postgresql"
] | 2008-08-19T17:13:11 | 2023-06-15T19:17:20 | Charles Roper | false | CC BY-SA 4.0 | 16,777 | 1,944 | 20,695 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
19601948 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/19601948/must-appear-in-the-group-by-clause-or-be-used-in-an-aggregate-function | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 19,601,948 | must appear in the GROUP BY clause or be used in an aggregate function | 496 | 850,340 | 7 | true | true | [
"sql",
"group-by",
"aggregate-functions",
"postgresql-9.1"
] | 2013-10-26T01:50:26 | 2023-03-02T11:50:07 | RandomGuy | false | CC BY-SA 4.0 | 19,602,031 | 1,767,006 | 5,299 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
6127338 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/6127338/mysql-select-distinct-unique-but-return-all-columns | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 6,127,338 | MySQL: Select DISTINCT / UNIQUE, but return all columns? | 495 | 1,168,931 | 19 | true | true | [
"sql",
"select",
"distinct"
] | 2011-05-25T15:55:16 | 2022-11-22T06:17:11 | aryaxt | false | CC BY-SA 4.0 | 6,127,471 | 242,769 | 77,966 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2111384 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2111384/sql-join-selecting-the-last-records-in-a-one-to-many-relationship | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,111,384 | SQL join: selecting the last records in a one-to-many relationship | 494 | 444,846 | 14 | true | true | [
"sql",
"select",
"join",
"indexing",
"greatest-n-per-group"
] | 2010-01-21T17:29:50 | 2026-05-05T07:03:45 | netvope | false | CC BY-SA 4.0 | 2,111,420 | 250,827 | 8,057 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
37324 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/37324/what-is-the-syntax-for-an-inner-join-in-linq-to-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 37,324 | What is the syntax for an inner join in LINQ to SQL? | 490 | 701,216 | 18 | true | true | [
"c#",
".net",
"sql",
"linq-to-sql",
"join"
] | 2008-09-01T01:00:24 | 2024-10-04T07:45:10 | Glenn Slaven | false | CC BY-SA 3.0 | 37,332 | 2,975 | 34,323 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
861778 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/861778/how-to-avoid-the-divide-by-zero-error-in-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 861,778 | How to avoid the "divide by zero" error in SQL? | 489 | 1,320,339 | 19 | true | true | [
"sql",
"sql-server",
"sql-server-2008",
"sql-server-2005",
"dividebyzeroexception"
] | 2009-05-14T06:06:05 | 2026-06-03T08:27:10 | Henrik Staun Poulsen | false | CC BY-SA 4.0 | 861,791 | 106,843 | 14,074 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4685173 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4685173/delete-all-duplicate-rows-except-for-one-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,685,173 | Delete all Duplicate Rows except for One in MySQL? | 485 | 554,531 | 2 | true | true | [
"mysql",
"sql",
"duplicates"
] | 2011-01-13T20:58:38 | 2020-01-31T06:51:00 | Highway of Life | true | null | 5,016,434 | 463,038 | 24,697 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
13405572 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/13405572/sql-statement-to-get-column-type | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 13,405,572 | SQL statement to get column type | 481 | 1,335,369 | 31 | true | true | [
"sql",
"schema"
] | 2012-11-15T20:24:27 | 2025-06-23T17:26:01 | daniely | false | CC BY-SA 3.0 | 13,405,667 | 1,255,620 | 7,813 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
5125076 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/5125076/sql-query-to-select-dates-between-two-dates | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 5,125,076 | SQL query to select dates between two dates | 481 | 3,052,295 | 26 | true | true | [
"sql",
"sql-server",
"t-sql",
"datetime",
"sql-server-2005"
] | 2011-02-26T04:29:16 | 2025-07-03T16:48:08 | Neeraj | false | CC BY-SA 3.0 | 5,125,106 | 615,814 | 8,605 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2404565 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2404565/what-is-the-difference-between-partition-by-and-group-by | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,404,565 | What is the difference between PARTITION BY and GROUP BY | 479 | 797,445 | 13 | true | true | [
"sql",
"aggregate-functions",
"window-functions"
] | 2010-03-08T20:40:45 | 2024-08-09T08:27:37 | Mike Mooney | false | CC BY-SA 4.0 | 2,404,587 | 203,479 | 12,055 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1074212 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1074212/how-can-i-see-the-raw-sql-queries-django-is-running | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,074,212 | How can I see the raw SQL queries Django is running? | 477 | 348,168 | 26 | true | true | [
"python",
"sql",
"django",
"database",
"django-database"
] | 2009-07-02T13:03:07 | 2024-06-08T14:36:46 | spence91 | false | CC BY-SA 4.0 | 1,074,224 | 15,616 | 80,839 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
5836623 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/5836623/getting-lock-wait-timeout-exceeded-try-restarting-transaction-even-though-im | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 5,836,623 | Getting "Lock wait timeout exceeded; try restarting transaction" even though I'm not using a transaction | 476 | 1,244,713 | 30 | true | true | [
"mysql",
"sql"
] | 2011-04-29T19:40:25 | 2025-03-10T07:52:18 | Jason Swett | false | CC BY-SA 4.0 | 5,837,308 | 199,712 | 45,504 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1056323 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1056323/difference-between-numeric-float-and-decimal-in-sql-server | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,056,323 | Difference between numeric, float and decimal in SQL Server | 476 | 1,151,164 | 8 | true | true | [
"sql",
"sql-server",
"types"
] | 2009-06-29T02:22:15 | 2025-03-21T10:58:00 | priyanka.sarkar | false | CC BY-SA 4.0 | 7,158,770 | 111,663 | 26,706 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
7573590 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/7573590/can-a-foreign-key-be-null-and-or-duplicate | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 7,573,590 | Can a foreign key be NULL and/or duplicate? | 475 | 687,400 | 11 | true | true | [
"sql",
"sql-server",
"oracle-database",
"foreign-keys"
] | 2011-09-27T17:57:45 | 2023-01-28T05:30:02 | Amit | false | CC BY-SA 3.0 | 7,574,042 | 673,924 | 22,206 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4101739 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4101739/sql-server-select-into-existing-table | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,101,739 | SQL Server SELECT into existing table | 471 | 672,532 | 7 | true | true | [
"sql",
"sql-server",
"t-sql",
"stored-procedures"
] | 2010-11-04T21:49:42 | 2023-06-16T22:15:04 | Daniel | false | CC BY-SA 4.0 | 4,101,761 | 379,284 | 4,907 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3014940 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3014940/is-there-a-combination-of-like-and-in-in-sql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,014,940 | Is there a combination of "LIKE" and "IN" in SQL? | 469 | 877,226 | 29 | true | true | [
"sql",
"sql-server",
"oracle-database",
"t-sql",
"plsql"
] | 2010-06-10T13:44:16 | 2024-01-06T17:16:52 | selfawaresoup | false | CC BY-SA 4.0 | 3,016,918 | 235,308 | 15,933 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
12475850 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/12475850/sql-query-return-data-from-multiple-tables | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 12,475,850 | SQL query return data from multiple tables | 466 | 930,137 | 6 | true | true | [
"mysql",
"sql",
"select"
] | 2012-09-18T11:11:39 | 2018-04-12T20:51:36 | Fluffeh | false | CC BY-SA 3.0 | 12,475,851 | 1,450,077 | 33,587 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
10177208 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/10177208/update-a-column-value-replacing-part-of-a-string | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 10,177,208 | Update a column value, replacing part of a string | 466 | 602,472 | 6 | true | true | [
"mysql",
"sql"
] | 2012-04-16T15:36:37 | 2022-06-25T11:05:43 | Addev | false | CC BY-SA 4.0 | 10,177,250 | 853,836 | 32,461 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3974683 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3974683/how-to-set-variable-from-a-sql-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,974,683 | How to set variable from a SQL query? | 465 | 1,302,151 | 10 | true | false | [
"sql",
"sql-server",
"t-sql"
] | 2010-10-20T04:02:50 | 2025-04-07T09:52:21 | Mr Cricket | false | CC BY-SA 4.0 | null | 474,018 | 6,013 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1492411 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1492411/how-to-select-from-stored-procedure | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,492,411 | How to SELECT FROM stored procedure | 465 | 1,382,619 | 15 | true | true | [
"sql",
"sql-server",
"sql-server-2005",
"stored-procedures"
] | 2009-09-29T13:05:57 | 2023-05-23T12:29:28 | jonathanpeppers | false | CC BY-SA 4.0 | 1,492,446 | 132,442 | 26,595 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
149772 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/149772/how-to-use-group-by-to-concatenate-strings-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 149,772 | How to use GROUP BY to concatenate strings in MySQL? | 465 | 383,869 | 6 | true | true | [
"sql",
"mysql",
"string",
"aggregate",
"concatenation"
] | 2008-09-29T17:32:45 | 2020-12-29T00:38:07 | Paweł Hajdan | false | CC BY-SA 4.0 | 149,799 | 9,403 | 18,652 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
2876789 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/2876789/how-can-i-search-case-insensitive-in-a-column-using-like-wildcard | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 2,876,789 | How can I search (case-insensitive) in a column using LIKE wildcard? | 463 | 631,415 | 16 | true | true | [
"mysql",
"sql",
"sql-like",
"case-insensitive"
] | 2010-05-20T18:39:45 | 2024-08-09T09:17:29 | David Morrow | false | CC BY-SA 4.0 | 2,876,820 | 279,558 | 9,464 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
439056 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/439056/is-a-view-faster-than-a-simple-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 439,056 | Is a view faster than a simple query? | 462 | 359,236 | 16 | true | true | [
"sql",
"sql-server",
"performance"
] | 2009-01-13T14:09:03 | 2022-08-12T19:32:17 | JohnIdol | false | CC BY-SA 3.0 | 439,061 | 1,311,500 | 50,436 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
4429319 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/4429319/you-cant-specify-target-table-for-update-in-from-clause | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 4,429,319 | You can't specify target table for update in FROM clause | 460 | 374,156 | 12 | true | true | [
"sql",
"mysql",
"mysql-error-1093"
] | 2010-12-13T13:36:50 | 2024-01-22T11:33:08 | CSchulz | false | CC BY-SA 2.5 | 14,302,701 | 390,177 | 11,102 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
286039 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/286039/get-record-counts-for-all-tables-in-mysql-database | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 286,039 | Get record counts for all tables in MySQL database | 459 | 495,840 | 24 | true | true | [
"mysql",
"sql",
"rowcount"
] | 2008-11-13T01:41:32 | 2023-03-12T20:04:21 | Mark | false | CC BY-SA 3.0 | 286,048 | 37,204 | 4,979 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
20215744 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/20215744/how-to-create-a-mysql-hierarchical-recursive-query | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 20,215,744 | How to create a MySQL hierarchical recursive query? | 457 | 471,842 | 17 | true | false | [
"mysql",
"sql",
"hierarchical-data",
"recursive-query"
] | 2013-11-26T11:22:57 | 2024-02-16T00:38:44 | Tarun Parswani | false | CC BY-SA 4.0 | null | 3,036,105 | 4,823 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
8289100 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 8,289,100 | Create unique constraint with null columns | 456 | 275,070 | 6 | true | true | [
"sql",
"postgresql",
"database-design",
"null",
"referential-integrity"
] | 2011-11-27T21:16:12 | 2026-01-05T17:32:18 | Mike Christensen | false | CC BY-SA 4.0 | 8,289,253 | 392,044 | 91,934 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
141562 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/141562/sql-to-find-the-number-of-distinct-values-in-a-column | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 141,562 | SQL to find the number of distinct values in a column | 456 | 829,747 | 14 | true | true | [
"sql",
"distinct"
] | 2008-09-26T19:52:48 | 2023-04-18T13:38:44 | Christian Oudard | false | CC BY-SA 4.0 | 141,574 | 3,757 | 50,456 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
93539 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/93539/what-is-the-difference-between-views-and-materialized-views-in-oracle | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 93,539 | What is the difference between Views and Materialized Views in Oracle? | 456 | 805,041 | 9 | true | true | [
"sql",
"oracle-database",
"view",
"relational-database",
"materialized-views"
] | 2008-09-18T15:23:18 | 2025-12-15T12:06:15 | juan | false | CC BY-SA 4.0 | 93,559 | 1,782 | 82,342 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
5342440 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/5342440/reset-auto-increment-counter-in-postgres | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 5,342,440 | Reset auto increment counter in postgres | 454 | 481,559 | 18 | true | true | [
"sql",
"postgresql",
"reset",
"auto-increment"
] | 2011-03-17T16:55:03 | 2022-12-29T00:48:28 | Rad | false | CC BY-SA 4.0 | 5,342,503 | 287,964 | 5,031 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3311903 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3311903/remove-duplicate-rows-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,311,903 | Remove duplicate rows in MySQL | 454 | 494,015 | 28 | true | true | [
"mysql",
"sql",
"duplicates",
"subquery",
"sql-delete"
] | 2010-07-22T18:03:56 | 2023-07-24T01:57:39 | Chetan | false | CC BY-SA 4.0 | 3,312,066 | 161,216 | 5,005 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1110998 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1110998/get-day-of-week-in-sql-server-2005-2008 | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,110,998 | Get day of week in SQL Server 2005/2008 | 454 | 993,389 | 13 | true | true | [
"sql",
"sql-server",
"datetime"
] | 2009-07-10T17:49:14 | 2025-04-23T22:27:23 | aaaa | false | CC BY-SA 4.0 | 1,111,013 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
3432 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/3432/multiple-updates-in-mysql | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 3,432 | Multiple Updates in MySQL | 454 | 516,388 | 21 | true | true | [
"mysql",
"sql",
"sql-update"
] | 2008-08-06T14:12:09 | 2025-02-24T13:07:40 | Teifion | false | CC BY-SA 3.0 | 3,466 | 1,384,652 | 111,901 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
1885630 | question | stackoverflow | 2026-08-03T00:34:38 | null | null | null | null | null | https://stackoverflow.com/questions/1885630/whats-the-difference-between-varchar-and-char | bbltuCKN5Zsz7fs9S | Kl5DrSgEDQwc8Z3N5 | 1,885,630 | What's the difference between VARCHAR and CHAR? | 452 | 800,871 | 17 | true | true | [
"sql",
"mysql"
] | 2009-12-11T03:32:31 | 2021-09-22T11:48:01 | steven | false | CC BY-SA 2.5 | 1,885,635 | 174,719 | 13,617 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.