Back to front pageView on Hacker News (opens in a new tab)Show HN: I wrote a free eBook about many lesser-known/secret database tricks (opens in a new tab)sqlfordevs.com865 pointsby tpetry (on Hacker News)3 years agosqlfordevs.com (opens in a new tab)SQLforDevs.com - Next-Level Database Techniques for Developers EbookStop treating the database as dumb storage and use its extended features. There's a lot you can use.Comments (174) 54 threadsEarlier commentsremram3 years ago# -- MySQL SELECT * FROM example WHERE NOT(column <> 'value'); -- PostgreSQL SELECT * FROM example WHERE column IS DISTINCT FROM 'value'; That doesn't seem equivalent?Ozzie_osman3 years ago#This was a great read, but I was surprised not to see window functions in here. They are so powerful and I'd estimate that less than 10% of developers I've worked with even know they exist.revskill3 years ago#Thanks. One suggestion: Could you put all materials in github for contribution ?benjy773 years ago#Might there be an error in "Simplified Inequality Checks With Nullable Columns" for mysql?NOT(column <> 'value') seems to be wrongDid you meanNOT(column <=> 'value')?Load more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
Show HN: I wrote a free eBook about many lesser-known/secret database tricks (opens in a new tab)sqlfordevs.com865 pointsby tpetry (on Hacker News)3 years ago
remram3 years ago# -- MySQL SELECT * FROM example WHERE NOT(column <> 'value'); -- PostgreSQL SELECT * FROM example WHERE column IS DISTINCT FROM 'value'; That doesn't seem equivalent?
Ozzie_osman3 years ago#This was a great read, but I was surprised not to see window functions in here. They are so powerful and I'd estimate that less than 10% of developers I've worked with even know they exist.
benjy773 years ago#Might there be an error in "Simplified Inequality Checks With Nullable Columns" for mysql?NOT(column <> 'value') seems to be wrongDid you meanNOT(column <=> 'value')?
Comments (174) 54 threads
Earlier commentsNOT(column <> 'value') seems to be wrong
Did you mean
NOT(column <=> 'value')
?
All comments shown.
Couldn't load more comments. Check your connection and try again.