Click here to Skip to main content
15,880,796 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: A career first for me Pin
kapalmuks<329-Aug-21 11:49
kapalmuks<329-Aug-21 11:49 
GeneralRe: A career first for me Pin
obermd29-Oct-21 9:58
obermd29-Oct-21 9:58 
GeneralSqlFiddle : Test your sql online PinPopular
raddevus18-May-21 4:19
mvaraddevus18-May-21 4:19 
GeneralRe: SqlFiddle : Test your sql online Pin
Ravi Bhavnani18-May-21 6:18
professionalRavi Bhavnani18-May-21 6:18 
GeneralRe: SqlFiddle : Test your sql online Pin
raddevus18-May-21 7:24
mvaraddevus18-May-21 7:24 
GeneralRe: SqlFiddle : Test your sql online Pin
Richard Deeming18-May-21 21:45
mveRichard Deeming18-May-21 21:45 
GeneralRe: SqlFiddle : Test your sql online Pin
Kornfeld Eliyahu Peter18-May-21 22:19
professionalKornfeld Eliyahu Peter18-May-21 22:19 
GeneralRe: SqlFiddle : Test your sql online Pin
Peter Adam23-May-21 23:03
professionalPeter Adam23-May-21 23:03 
Quite standard Postgresql.


Which one of these you use is mainly a matter of style. The JOIN syntax in the FROM clause is probably not as portable to other SQL database management systems, even though it is in the SQL standard. For outer joins there is no choice: they must be done in the FROM clause. The ON or USING clause of an outer join is not equivalent to a WHERE condition, because it results in the addition of rows (for unmatched input rows) as well as the removal of rows in the final result.

GeneralRe: SqlFiddle : Test your sql online Pin
StarNamer@work24-May-21 4:45
professionalStarNamer@work24-May-21 4:45 
GeneralRe: SqlFiddle : Test your sql online Pin
raddevus24-May-21 8:54
mvaraddevus24-May-21 8:54 
GeneralRe: SqlFiddle : Test your sql online Pin
SeanChupas24-May-21 11:01
SeanChupas24-May-21 11:01 
GeneralRe: SqlFiddle : Test your sql online Pin
raddevus24-May-21 11:58
mvaraddevus24-May-21 11:58 
GeneralBelt and suspenders Pin
Jörgen Andersson14-May-21 4:23
professionalJörgen Andersson14-May-21 4:23 
GeneralRe: Belt and suspenders Pin
RickZeeland14-May-21 5:54
mveRickZeeland14-May-21 5:54 
GeneralRe: Belt and suspenders Pin
Bernhard Hiller18-May-21 20:54
Bernhard Hiller18-May-21 20:54 
GeneralRLIOTD Pin
Gary Wheeler5-May-21 10:47
Gary Wheeler5-May-21 10:47 
GeneralRe: RLIOTD Pin
Rick York5-May-21 11:34
mveRick York5-May-21 11:34 
GeneralRe: RLIOTD Pin
Gary Wheeler5-May-21 12:32
Gary Wheeler5-May-21 12:32 
PraiseRe: RLIOTD Pin
Slacker0075-May-21 12:25
professionalSlacker0075-May-21 12:25 
GeneralRe: RLIOTD Pin
Gary Wheeler5-May-21 12:32
Gary Wheeler5-May-21 12:32 
JokeRe: RLIOTD Pin
Super Lloyd5-May-21 15:07
Super Lloyd5-May-21 15:07 
GeneralRe: RLIOTD Pin
Gerry Schmitz5-May-21 16:49
mveGerry Schmitz5-May-21 16:49 
GeneralRe: RLIOTD Pin
jsc425-May-21 22:11
professionaljsc425-May-21 22:11 
GeneralRe: RLIOTD Pin
11917640 Member 7-Jun-21 20:15
11917640 Member 7-Jun-21 20:15 
JokeRe: RLIOTD Pin
Bernhard Hiller6-May-21 21:41
Bernhard Hiller6-May-21 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.