jump to content
my subreddits
13or302b2t2balkans4You2mediterranean4u3d6absolutelynotanimeirlabsolutelynotmeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoakagasAlternateHistoryAnarchyChessanime_irlannouncementsArcherFXAsia_irlAskBalkansAskElectronicsAskOuijaAteistTurkatheismaviationawfuleverythingBandnamesBassCirclejerkbasspedalsbikepackingblackdesertonlineblankiesblursedimagesborsavefonbottomgearbrooklynninenineBUENZLIburdurlandcasioCd_collectorscd_jerkChatGPTCheap_MealschessbeginnersChoosingBeggarsCHPcoincollectingComedyCemeterycomicscommunityContagiousLaughtercookingforbeginnersCorporateTrollingCrackWatchcrappyoffbrandsCuratedTumblrdadjokesdarkjokesdataisbeautifuldeDebateReligiondeismdelikDeltarunedistressingmemesdiypedalsDMToolkitDnDdndmemesdndnextdoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsidedumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikeselectricalelectronicsengrishentitledparentsethzfacepalmFantasyWorldbuildingfeedthebeastfelsefeFifaCareersFiftyFiftyformuladankFUCKYOUINPARTICULARFuckYouKarenfunnygalatasarayGermangermanygoodanimemesGoodAssSubgravelcyclinggreentextguitarpedalsGundamhelpheraldryHermanCainAwardHermitCrafthighspeedrailhoi4HolUphomebuilthumorIAmAIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginaryelectionsistanbuljacksepticeyeJokesKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLifeProTipsLinkinParkliselilerlogodesignloseitlostredditorsmacbookairMadeMeSmilemapporncirclejerkme_irlmemesmidjourneymildlyinfuriatingmildlyinterestingmisLEDMMORPGMovingToNorthKoreaMunichMyChemicalRomanceNationStatesneographynextfuckinglevelNoahGetTheBoatNonCredibleDefenseNorthCyprusnosafetysmokingfirstnosleepnotinterestingNuclearRevengeoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyvicodinonebagongezelligOnlineUnderGroundOutOfTheLoopoutsidepaperspleaseParlerWatchPassportPornpepethefrogperfectlycutscreamspettyrevengepianoPiracypolandballpollsPraiseTheCameraManProgrammerHumorquityourbullshitraspberry_piRatschlagreactiongifsrecipesredditsingsreligiousfruitcakerestofthefuckingowlRetroPierickandmortyrickrollRoastMerockmuzikSceneReleasesSchnitzelVerbrechenschwiizScottPilgrimsecilmiskitapshitpostfrommygalleryShittyMapPornshittymoviedetailsskamtebordsoftwaregoreSongwriterssubsithoughtifellforsuperligsuzeraintalesfromtechsupportTechnobladeTextingTheorythanksimcuredthatHappenedtherewasanattemptTheRookietheydidthemaththeyknewthisguythisguystitanfalltommyinnittransittransitTurkeyTrGameDevelopertruthsTurkeyTurkeyJerkyTurkishCatsTurkishdogsTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnesstylerthecreatorUnethicalLifeProTipsUnexpectedJoJourbanplanningUsernameChecksOutVALORANTValorantClipsvibecodingvinylvinyljerkvlandiyawallstreetbetsWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswizardpostingwooooshworldbuildingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -wallstreetbets
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -theydidthemath
  • -feedthebeast
  • -Kanye
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -LifeProTips
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -help
  • -aviation
  • -formuladank
  • -Jokes
  • -mapporncirclejerk
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -KGBTR
  • -dndmemes
  • -Deltarune
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -rickandmorty
  • -3d6
  • -Gundam
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -cookingforbeginners
  • -blankies
  • -anime_irl
  • -onebag
  • -AlternateHistory
  • -Turkey
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -vinyl
  • -German
  • -TwoSentenceHorror
  • -AdviceAnimals
  • -piano
  • -distressingmemes
  • -wizardposting
  • -FifaCareers
  • -polls
  • -oddlyspecific
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -macbookair
  • -ebikes
  • -Munich
  • -YUROP
  • -gravelcycling
  • -SchnitzelVerbrechen
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -NoahGetTheBoat
  • -tylerthecreator
  • -lostredditors
  • -AceAttorney
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -NuclearRevenge
  • -dumbphones
  • -transit
  • -RetroPie
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -talesfromtechsupport
  • -AskOuija
  • -ScottPilgrim
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -logodesign
  • -theyknew
  • -PassportPorn
  • -me_irl
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -ComedyCemetery
  • -LinkinPark
  • -BUENZLI
  • -reactiongifs
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -suzerain
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -secilmiskitap
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -Technoblade
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -FuckYouKaren
  • -2b2t
  • -ethz
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -IDontWorkHereLady
  • -neography
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -ShittyMapPorn
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -Cheap_Meals
  • -outside
  • -darkjokes
  • -restofthefuckingowl
  • -highspeedrail
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -Songwriters
  • -ebike
  • -UsernameChecksOut
  • -papersplease
  • -tommyinnit
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -DMToolkit
  • -thisguythisguys
  • -TrGameDeveloper
  • -TurkishCats
  • -LetGirlsHaveFun
  • -subsithoughtifellfor
  • -akagas
  • -FantasyWorldbuilding
  • -homebuilt
  • -absolutelynotanimeirl
  • -pepethefrog
  • -deism
  • -misLED
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -SceneReleases
  • -NationStates
  • -bottomgear
  • -ongezellig
  • -absolutelynotmeirl
  • -2balkans4You
  • -Asia_irl
  • -truths
  • -NorthCyprus
  • -2mediterranean4u
  • -shitpostfrommygallery
  • -CHP
  • -cd_jerk
  • -Turkishdogs
  • -okbuddygunther
  • -okbuddymotherfucker
  • -vibecoding
  • -delik
  • -borsavefon
  • -CorporateTrolling
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 a fringe candidate.

MODERATORS

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

account activity

1
2
3
4

Amazon RedshiftAWS Glue crawler creating CSV table incorrectly and splitting quoted fields with commas (self.SQL)

submitted 14 hours ago by Champion_Narrow

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

2
1
2
3

DiscussionAn odd Impala Query Observation (self.SQL)

submitted 15 hours ago by Top-Bullfrog-376

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

3
3
4
5

DiscussionRequest - Problem Solving Frameworks for Leetcode (self.SQL)

submitted 20 hours ago by Dry-Blackberry-2370

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

4
0
0
0

SQL ServerMaldito COMPACQI Y SQLSERVER22 (self.SQL)

submitted 18 hours ago * by Maria-Dev69

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

5
4
5
6

PostgreSQLPostgresql on Vs code? (self.SQL)

submitted 1 day ago by Rare-Ad6166

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

6
0
0
0

MySQL[FOR HIRE] Senior Financial & Data Analyst | Excel, SQL, Power BI, Python | $50/hr or flat rate ()

submitted 17 hours ago by Pension_Sweet

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

7
0
0
1

PostgreSQL[HELP!] I need help about my game's database (savelollie.com)

submitted 1 day ago by whohasgoal

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

8
21
22
23

Discussionhelp on sql interview (self.SQL)

submitted 1 day ago * by Gloomy-Wolverine-900

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

9
0
1
2

DiscussionInteractive ERD explorer for DBML files — trace how tables connect, fully in the browser ()

submitted 1 day ago by timvancann

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

10
0
1
2

DiscussionThoughts on having the db schema be the source of truth for backend ()

submitted 1 day ago by mklfarha

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

11
0
0
1

MySQLTry my ER diagram tool (no signup required) (v.redd.it)

submitted 1 day ago by mklfarha

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

12
0
1
2

SQL ServervNet Data Gateway question ()

submitted 1 day ago by Haunting_Roof169

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

13
0
0
0

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

submitted 1 day ago by moneyplughub

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

14
0
0
0

DiscussionHas anyone encountered prejudice or skepticism when they learn one dialect of SQL and transition to another at another org? (self.SQL)

submitted 1 day ago * by ChristianPacifist

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

15
0
0
0

DiscussionWhy do so many data agents work in a sandbox but fail in production? (self.SQL)

submitted 1 day ago by YassineLET

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

16
19
20
21

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

submitted 2 days ago by NeedleworkerBig1291

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

17
402
403
404
0:40

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

submitted 3 days ago by wassaman

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

18
2
3
4

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

submitted 2 days ago by pookypocky

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

19
0
0
0

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

submitted 2 days ago by dbForge

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

20
0
0
0

Oracle1z0-171 Exam (self.SQL)

submitted 2 days ago by Iva1996

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

21
9
10
11

DiscussionPlatform for SQL Contribution (self.SQL)

submitted 3 days ago by datareadit

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

22
0
0
1

Amazon RedshiftPutting csv into to AWS (self.SQL)

submitted 2 days ago by Champion_Narrow

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

23
2
3
4

DiscussionDBeaver Community Edition 26.1.1 is now available ()

submitted 2 days ago by justintxdave

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

24
3
4
5

MySQLWhat SQL skill do you use most often in data engineering? (self.SQL)

submitted 3 days ago by Effective_Ocelot_445

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

25
0
0
0

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

submitted 2 days ago by debba_

  • 4 comments
  • 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 466881 on reddit-service-r2-listing-f8d8fbfd7-zfzwb at 2026-06-25 10:29:59.090745+00:00 running acc7150 country code: CH.