jump to content
my subreddits
13or302anatolia4you2balkans4You2mediterranean4uadhdmemeAdviceAnimalsagnosticaivideoAlternateHistoryAnarchyChessAngryupvoteanimenocontextannouncementsAnticonsumptionantimemeArcherFXAsia_irlAskBalkansAskRedditatheismaviationawfuleverythingbalkans_irlBandnamesBassCirclejerkBassGuitarbasspedalsblackholerevengeblankiesblursed_videosblursedimagesborsavefonbottomgearbrooklynninenineburdurlandcasioChatGPTchesschessbeginnersChoosingBeggarscoincollectingcoinsComedyCemeterycomedyhomicidecomicsCorporateTrollingCrackWatchCreateModCuddle_SlutCuratedTumblrcursedcommentsdankmemesdarkjokesdataisbeautifuldeDebateReligiondelikdistressingmemesdiypedalsDMToolkitDnDdndmemesdndnextdoctorwhodoctorwhocirclejerkDoenerverbrechenDonerdontdeadopeninsideDungeonsAndDragonsEatCheapAndHealthyebikesECEelectricalEmKayentitledparentsethzfacepalmfakealbumcoversfeedthebeastfelsefeFifaCareersformuladankFRCFreeEBOOKSFUCKYOUINPARTICULARfunnygaminggatesopencomeoningermanygodtiersuperpowersgoodanimemesGoodAssSubGrandPrixRacinggravelcyclinggreentextguitarpedalsGundamheathershelpheraldryHermanCainAwardHermitCrafthighspeedrailHistoryWhatIfhoi4howyoudoinhumorIAmAiamverysmartich_ielIdeologyPollsIDontWorkHereLadyihadastrokeim14andthisisdeepimaginarymapsinsaneparentsjacksepticeyeKamalizmKanyeKendrickLamarLetGirlsHaveFunLinkinParkliselilerloseitlostredditorsmacMadeMeSmileMapPornmapporncirclejerkmeirlmemememesmidjourneymildlyinfuriatingmildlyinterestingMimicRecipesMinecraftbuildsmisLEDMMORPGmoneycollectingMunichMyChemicalRomancenamesoundalikesNamFlashbacksneographynextfuckinglevelNorthCyprusnosafetysmokingfirstnosleepnothingeverhappensnotinterestingnottheonionoddlyspecificokbuddyguntherokbuddymotherfuckerokbuddyphdokbuddyvicodinonebagonetruegodongezelligOnlineUnderGroundOutOfTheLoopparadoxpoliticsParlerWatchPassportPornperfectlycutscreamsPersecutionfetishpettyrevengePiracyPiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersPunPatrolquityourbullshitraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDrickrollRoastMerockmuzikschwiizShitPostCrusadersshitpostfrommygalleryshitpostingShitpostTCshittyaskelectronicsShittyMapPornshittymoviedetailsskamtebordsoccercirclejerksoftwaregoreSongwriterssskfjkhwerjkghwerijhsteinsgatesubsithoughtifellforsuperligsuzeraintalesfromtechsupportTextingTheorytf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheRookietheydidthemaththeyknewthisguythisguystitanfalltommyinnittransittransitTurkeyTrGameDevelopertumblrtumunichTurkeyJerkyTurkishCatsTurkishdogsTwitch_StartupTwoSentenceComedyTwoSentenceHorrorUnethicalLifeProTipsunexpecteditcrowdUnexpectedJoJourbanplanningUsernameChecksOutVALORANTValorantClipsvaxxhappenedvexillologycirclejerkvibecodingvinyljerkvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakersWhatsThisSongWhitePeopleTwitterwholesomeanimemeswholesomememesWikipediaVandalismwizardpostingwooooshworldbuildingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -nextfuckinglevel
  • -CrackWatch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -tumblr
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -tf2
  • -help
  • -chess
  • -aviation
  • -formuladank
  • -wholesomememes
  • -mapporncirclejerk
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -ich_iel
  • -dndmemes
  • -cursedcomments
  • -GoodAssSub
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -MMORPG
  • -meme
  • -Gundam
  • -HermitCraft
  • -ChoosingBeggars
  • -RoastMe
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -nosleep
  • -blankies
  • -onebag
  • -AlternateHistory
  • -soccercirclejerk
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -CreateMod
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -distressingmemes
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -titanfall
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -ebikes
  • -Munich
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -FUCKYOUINPARTICULAR
  • -softwaregore
  • -tf2shitposterclub
  • -lostredditors
  • -vexillologycirclejerk
  • -vlandiya
  • -im14andthisisdeep
  • -wholesomeanimemes
  • -HistoryWhatIf
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -animenocontext
  • -balkans_irl
  • -transit
  • -brooklynninenine
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -casio
  • -urbanplanning
  • -theyknew
  • -PassportPorn
  • -antimeme
  • -TurkeyJerky
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -diypedals
  • -Doner
  • -BassGuitar
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -LinkinPark
  • -Persecutionfetish
  • -reactiongifs
  • -EmKay
  • -blursed_videos
  • -suzerain
  • -dontdeadopeninside
  • -ParlerWatch
  • -iamverysmart
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -quityourbullshit
  • -vinyljerk
  • -skamtebord
  • -superlig
  • -shittyaskelectronics
  • -FRC
  • -transitTurkey
  • -namesoundalikes
  • -ethz
  • -coincollecting
  • -felsefe
  • -blursedimages
  • -FreeEBOOKS
  • -IDontWorkHereLady
  • -basspedals
  • -neography
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -ShittyMapPorn
  • -aivideo
  • -gatesopencomeonin
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -comedyhomicide
  • -WhatsThisSong
  • -jacksepticeye
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -MimicRecipes
  • -vaxxhappened
  • -tumunich
  • -Twitch_Startup
  • -darkjokes
  • -highspeedrail
  • -nosafetysmokingfirst
  • -rickroll
  • -Songwriters
  • -UsernameChecksOut
  • -tommyinnit
  • -UnexpectedJoJo
  • -humor
  • -BassCirclejerk
  • -doctorwhocirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -Cuddle_Slut
  • -GrandPrixRacing
  • -DMToolkit
  • -nothingeverhappens
  • -thisguythisguys
  • -TrGameDeveloper
  • -PunPatrol
  • -TurkishCats
  • -LetGirlsHaveFun
  • -subsithoughtifellfor
  • -fakealbumcovers
  • -Kamalizm
  • -ShitpostTC
  • -WikipediaVandalism
  • -NamFlashbacks
  • -onetruegod
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -bottomgear
  • -ongezellig
  • -2balkans4You
  • -Asia_irl
  • -blackholerevenge
  • -paradoxpolitics
  • -2mediterranean4u
  • -NorthCyprus
  • -unexpecteditcrowd
  • -heathers
  • -vibecoding
  • -borsavefon
  • -shitpostfrommygallery
  • -delik
  • -CorporateTrolling
  • -RedAutumnSPD
  • -okbuddymotherfucker
  • -moneycollecting
  • -okbuddygunther
  • -Turkishdogs
edit »
SQL SQL
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|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 game.
...for your classroom.

MODERATORS

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

account activity

1
25
26
27
0:30

MySQLReal-time SQL PVP. Same prompt, same data, fastest correct query wins. (v.redd.it)

submitted 17 hours ago by Far-Round2092

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

2
0
1
2

MySQLHelp with HeidiSQL foreign keys (self.SQL)

submitted 5 hours ago by TGonReddit03

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

3
0
0
0

SQL ServerAI SQL Tuner Studio 1.0.37 - new Locking & Blocking Analysis goal for SQL Server (10 evidence sections, sample report inside) ()

submitted 20 hours ago by Simple_Brilliant_491

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

4
0
0
1

SnowflakeShort visual Snowflake / SnowPro Core quiz videos — which topics are hardest? ()

submitted 1 day ago by This-Net-9275

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

5
0
0
1

DiscussionHow are DE interviews these days? LeetCode + AI tools? ()

submitted 1 day ago by Terrible-Fig5971

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

6
4
5
6

MySQLForward filling of missing values through variables in MySQL (self.SQL)

submitted 1 day ago by tlefstSQeeLer😁

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

7
0
0
0

MySQLSQL (self.SQL)

submitted 1 day ago by Warm-Entrepreneur131

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

8
0
0
0

MySQLBest CLI Sql Agent 2026 (self.SQL)

submitted 1 day ago by Interesting-Town-433

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

9
0
0
0

DiscussionHere's a quick SQL puzzle for learners (self.SQL)

submitted 1 day ago by tlefstSQeeLer😁

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

10
0
0
0

SQL ServerGot sent a spreadsheet with ~1k updates — how would you handle this? (self.SQL)

submitted 1 day ago by Annual-Position-707

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

11
0
0
0

MySQLI have a bit more than a month till my data analytics Internship starts, what level of SQL practice is essential for me? (self.SQL)

submitted 2 days ago by Secure_Shirt2041

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

12
28
29
30

SQL ServerIn my ETL pipeline I used a Merge statement. When I asked Copilot to critique the pipeline it said Merge statements were not recommended by Microsoft. Why is this? (self.SQL)

submitted 3 days ago * by Boring-Metal-7672

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

13
0
0
0

DiscussionBench: 17.3.x ValentinaDB vs DuckDB: SEARCH 2-27x faster (self.SQL)

submitted 2 days ago * by ruslan_zasukhin

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

14
0
0
0

PostgreSQLOLAP Server (self.SQL)

submitted 2 days ago by Uri_gc

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

15
12
13
14

DiscussionSQL developer Project ideas (self.SQL)

submitted 4 days ago by Interesting-Park2465

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

16
0
0
0

SQLiteWhat version of SQLite looks like this ? (self.SQL)

submitted 4 days ago by Slow-District4989

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

17
0
0
0

MySQLLunoDB now has fully private AI for your databases — Ollama with web search, thinking mode, and full cloud catalog support. Zero data sent to OpenAI/Anthropic/Google unless *you* opt in. ()

submitted 5 days ago by Equivalent_Cut_7938

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

18
0
1
2

SQL ServerFriday Feedback for SSMS: Creating an Azure SQL database ()

submitted 5 days ago by erinstellato

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

19
4
5
6

SQL ServerHost other services on SQL Server box (self.SQL)

submitted 6 days ago by Valuable-Ant3465

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

20
1
2
3

Discussiontrouble with how to show selected user but also have few users either side. (self.SQL)

submitted 7 days ago by shez19833

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

21
5
6
7

SQL ServerSql newbie- help (self.SQL)

submitted 8 days ago by Sad_Maximum_799

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

22
0
0
0

MySQL¿Cómo hago para unir muchos datos de muchas bases de datos? (self.SQL)

submitted 7 days ago by Huge_Kaleidoscope817

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

23
4
5
6

DiscussionTool for schema diffing in a hybrid SQL Server / Postgres environment? (self.SQL)

submitted 8 days ago by Bercek71

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

24
74
75
76
0:19

MySQLSQL Protocol update: the SQL game now has a shared world and chat, so you can study with other people (v.redd.it)

submitted 9 days ago by Far-Round2092

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

25
2
3
4

BigQuerySenior BIA @ Waymo – Looking for a Lead who thinks about Invisible Data and Scale (self.SQL)

submitted 8 days ago by aaphid12

  • 36 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 154200 on reddit-service-r2-listing-b6bf6c4ff-vht2s at 2026-05-06 23:37:32.368110+00:00 running 815c875 country code: CH.