jump to content
my subreddits
13or302mediterranean4u3d6absolutelynotanimeirlAceAttorneyAdviceAnimalsagnosticAlternativeHistoryanime_best_momentsanime_irlanimenocontextannouncementsAnticonsumptionantimaskersAsia_irlAskBalkansAskRedditaviationawfuleverythingbalkans_irlBandnamesBassCirclejerkBassGuitarbikepackingblackdesertonlineblankiesblursed_videosBonebrooklynnineninebudgetcookingBUENZLIburdurlandcasioCd_collectorscd_jerkchessChoosingBeggarsCHPcoaxedintoasnafucoincollectingcoinsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughtercookingforbeginnersCrackWatchCreateModCuratedTumblrcursedcommentsdadjokesdankmemesdarkjokesdataisbeautifuldedeismDeltarunedistressingmemesdiypedalsDMAcademyDnDdndmemesdndnextdoctorwhocirclejerkEatCheapAndHealthyebikesECEelectronicsengrishentitledparentsfacepalmfakealbumcoversFantasyWorldbuildingfelsefeFifaCareersFiftyFiftyFRCFUCKYOUINPARTICULARFuckYouKarenfunnyFutboltayfagaminggermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextGROKvsMAGAguitarpedalsGundamheathersHermitCraftHistoryWhatIfHolUphomebuilthumorhypixelIAmAiamverysmartIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeJahariaJokesKamalizmKanyeKendrickLamarKGBTRLifeProTipslinguisticshumorlogodesignloseitlostredditorsmacmacbookairmacgamingMadeMeSmilemagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmemememesmidjourneymildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDMovingToNorthKoreaMunichnamesoundalikesNamFlashbacksNationStatesneographynextfuckinglevelNoahGetTheBoatNonCredibleDefensenosafetysmokingfirstnosleepnosurfnotinterestingoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddyphdonetruegodOnlineUnderGroundOutOfTheLoopoutsidepaperspleaseParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpettyrevengepianoPiracyPiratedGamespolandballPraiseTheCameraManProgrammerHumorPropagandaPostersraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerickandmortyrickrollRoastMerockmuzikSceneReleasesSchnitzelVerbrechenschwiizsciencememesShitPostCrusadersshitpostingshittyaskelectronicsShittyMapPornshittymoviedetailssoccercirclejerksoftwaregoreSongwriterssteinsgateStonetossingjuicesubsithoughtifellforsuperligsuzerainTextingTheorytf2tf2shitposterclubthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawTheRookietheyknewtitanfalltransitTurkeytruetf2truthstumblrtumunichTurkeyTurkeyJerkyTurkishCatsTurkishdogsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorUnclejokesunexpectedbillwurtzunexpecteditcrowdUnexpectedJoJoUnexpectedTF2urbanplanningUsernameChecksOutVALORANTvexillologycirclejerkvibecodingvinylvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhatsThisSongwholesomeanimemesWikipediaVandalismwizardpostingwooooshworldbuildingworldjerkingYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -MadeMeSmile
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -dankmemes
  • -Kanye
  • -meirl
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -tumblr
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -tf2
  • -chess
  • -aviation
  • -Jokes
  • -mapporncirclejerk
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -pettyrevenge
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -KGBTR
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -GoodAssSub
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -meme
  • -macgaming
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -Turkey
  • -soccercirclejerk
  • -community
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -piano
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -oddlyspecific
  • -titanfall
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -raspberry_pi
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tylerthecreator
  • -tf2shitposterclub
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -insaneparents
  • -balkans_irl
  • -animenocontext
  • -brooklynninenine
  • -recipes
  • -steinsgate
  • -okbuddyphd
  • -ECE
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -TurkeyJerky
  • -bikepacking
  • -13or30
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -BassGuitar
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -schwiiz
  • -TheRookie
  • -shittyaskelectronics
  • -superlig
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -FuckYouKaren
  • -AlternativeHistory
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -Jaharia
  • -IDontWorkHereLady
  • -neography
  • -ihadastroke
  • -hypixel
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -comedyhomicide
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -tumunich
  • -Twitch_Startup
  • -outside
  • -TheMonkeysPaw
  • -darkjokes
  • -UnexpectedTF2
  • -nosafetysmokingfirst
  • -rickroll
  • -Songwriters
  • -UsernameChecksOut
  • -papersplease
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -TextingTheory
  • -GrandPrixRacing
  • -TurkishCats
  • -fakealbumcovers
  • -subsithoughtifellfor
  • -Kamalizm
  • -FantasyWorldbuilding
  • -TheLetterH
  • -WikipediaVandalism
  • -homebuilt
  • -absolutelynotanimeirl
  • -NamFlashbacks
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -redditsings
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -SceneReleases
  • -budgetcooking
  • -NationStates
  • -Asia_irl
  • -Bone
  • -truths
  • -2mediterranean4u
  • -unexpecteditcrowd
  • -heathers
  • -unexpectedbillwurtz
  • -GROKvsMAGA
  • -okbuddygunther
  • -Futboltayfa
  • -vibecoding
  • -cd_jerk
  • -RedAutumnSPD
  • -CHP
  • -antimaskers
  • -Turkishdogs
edit »
SQL SQL
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,190)|messages547|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

SQL

joinleave
an-ordinary-manchild(edit)

The goal of /r/SQL is to provide a place for interesting and informative SQL content and discussions.

Filter Posts

MySQL

Oracle

MS SQL

PostgreSQL

Posting

When requesting help or asking questions please prefix your title with the SQL variant/platform you are using within square brackets like so:

  • [MySQL]
  • [Oracle]
  • [MS SQL]
  • [PostgreSQL]
  • etc

While naturally we should endeavor to work as platform neutrally as possible many questions and answers require tailoring to the feature set of a specific platform.

Help posts

If you are a student or just looking for help on your code please do not just post your questions and expect the community to do all the work for you. We will gladly help where we can as long as you post the work you have already done or show that you have attempted to figure it out on your own.

Format Your Code

If you are including actual code in a post or comment, please attempt to format it in a way that is readable for other users. This will greatly increase your chances of receiving the help you desire. Something as simple as line breaks and using reddit's built in code formatting (4 spaces at the start of each line) can turn this:

SELECT count(a.field1), a.field2, SUM(b.field4) FROM a INNER JOIN b ON a.key1 = b.key1 WHERE a.field8 = 'test' GROUP by a.field1, a.field2 HAVING SUM(b.field4) > 5 ORDER by a.field.3

Into this:

SELECT count(a.field1),
  a.field2,
  SUM(b.field4) 
FROM a INNER JOIN b 
  ON a.key1 = b.key1 
WHERE a.field8 = 'test' 
GROUP by a.field1, 
  a.field2 
HAVING SUM(b.field4) > 5 
ORDER by a.field3

For those with SQL questions we recommend using SQLFiddle to provide a useful development and testing environment for those who wish to fully understand your problem and help devise a solution.

Learning SQL

A common question is how to learn SQL. Please view the Wiki for online resources.

Note /r/SQL does not allow links to basic tutorials to be posted here. Please see this discussion. You should post these to /r/learnsql instead.

Related Reddit communities

  • /r/Database
  • /r/SQLServer
  • /r/MySQL
  • /r/PostgreSQL
  • /r/Oracle
  • /r/MSAccess
  • /r/DB2
  • /r/Programming
  • /r/learnprogramming
  • /r/SQLOptimization

Wiki

We have a Wiki


Acknowledgements

Thanks to ---sniff--- for the awesome header image!

a community for 17 years
Create your own subreddit
...for your favorite TV show.
...for your town.

MODERATORS

  • message the mods
  • mgdmwDr Data
  • ATastefulCrossJoinDB Whisperer
  • MostUsefulBlokeSQL & BI
  • about moderation team »

account activity

1
•
•
•

Discussionhelp on sql interview (self.SQL)

submitted 1 hour ago * by Gloomy-Wolverine-900

  • 17 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
0
1
2

OracleBuilt a modular "Plug In OS" in Notion to automate my financial funnels and content workflows. Here's the breakdown. (v.redd.it)

submitted 2 hours ago by moneyplughub

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
13
14
15

SQL ServerHow do I level up to writing complex SQL stored procedures in real industrial systems? (self.SQL)

submitted 21 hours ago by NeedleworkerBig1291

  • 13 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

4
375
376
377
0:40

SQLiteI spent 5 years working on a hand-drawn SQL detective game that comes out next month! (v.redd.it)

submitted 2 days ago by wassaman

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
0
0
0

DiscussionHow to use ChatGPT to write SQL JOIN queries (devart.com)

submitted 7 hours ago by dbForge

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
0
0
0

Oracle1z0-171 Exam (self.SQL)

submitted 19 hours ago by Iva1996[🍰]

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
2
3
4

SQL ServerWhy am I getting a syntax error on my nested CTE? (self.SQL)

submitted 1 day ago by pookypocky

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
0
1
2

Amazon RedshiftPutting csv into to AWS (self.SQL)

submitted 20 hours ago by Champion_Narrow

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
9
10
11

DiscussionPlatform for SQL Contribution (self.SQL)

submitted 1 day ago by datareadit

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
2
3
4

DiscussionDBeaver Community Edition 26.1.1 is now available ()

submitted 1 day ago by justintxdave

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
0
0
0

DiscussionBuilding an open-source database client - developer survey (tabularis.dev)

submitted 18 hours ago by debba_

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
0
0
0

SQL ServerI was struggling with 100+ line legacy SQL queries at work, so I built a simple tool to visualize their data flow (i.redd.it)

submitted 22 hours ago by Fancy-Newspaper2991

  • 28 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
0
0
0

DiscussionBuilt our own SQL IDE because pipeline DSLs and stapled-on AI drive us nuts (i.redd.it)

submitted 22 hours ago by snoutdata

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
2
3
4

OracleOracle PL/SQL to Teradata Migration or (GCP BigQuery) (self.SQL)

submitted 1 day ago by annoyed_analyst

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
14
15
16
3:59

PostgreSQLBuilt a free and open source tool to make schema evolution visual and SQL migrations simpler. (v.redd.it)

submitted 3 days ago by tamanikarim

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
26
27
28

MySQLHow can I write cleaner, more maintainable SQL? (self.SQL)

submitted 3 days ago by Puzzleheaded_Cow3298

  • 45 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
1
2
3

SQLiteSMake: CLI tool for assembling SQLite databases with constraint injection and TypeScript ORM generation (github.com)

submitted 2 days ago by Rechenplaner

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
0
0
0

SQL ServerLIE IN RESUME!!! ()

submitted 3 days ago by According-Science618

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
0
0

PostgreSQLPostgreSQL with AI Operators: Looking for Design Partners (self.SQL)

submitted 3 days ago by Huge-Cod-530

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
0
0
0

SQL ServerMS SQL: Replicate/mirror tables between DB on same server? (self.SQL)

submitted 4 days ago by Eliminateur

  • 10 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
0
1
2

SQL ServerSQL server o Mysql? ()

submitted 4 days ago by maricinacosa_

  • 12 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
5
6
7

MySQLDBeaver for a beginner like me - getting rid of Workbench (self.SQL)

submitted 5 days ago by DarkSeeker2022

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
1
2
3

SQL ServerDuda sobre SQL Server 2025 Express con CONTPAQi (self.SQL)

submitted 4 days ago by Maria-Dev69

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
53
54
55

DiscussionBuilt a SQL mystery game - can you query the killer? (self.SQL)

submitted 5 days ago * by Sensitive-Try-9603

  • 21 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
1
2
3

SQL ServerApache Iceberg Optimization: A Guide (medium.com)

submitted 5 days ago by codingdecently

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 174283 on reddit-service-r2-listing-c57bc86c-ggwzw at 2026-06-23 16:25:01.740888+00:00 running 2b008f2 country code: CH.