Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Web Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • React
  • Maintenance
Mobile Development
  • React Native
  • iOS
  • Android
Design
  • UX, UI, and Product Design
  • Design Research
  • Design Systems
Product
  • Product Management
  • Product Design Sprint
  • Research and Strategic Insights
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
  • Level up your junior team
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
The business of great software
  • Playbook
  • Startup Incubator
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

SQL Articles

Written by thoughtbot, your expert strategy, design, product management, and development partner.

    • All Topics
    • Design
    • Web
    • iOS
    • Android
    • More topics
  1. Breaking Out of Ecto Schemas

    With Ecto, 🎶 you can always get what you want. And if you try sometimes, well, you might find, you can select want you need 🎶.

    German Velasco
    February 24, 2020
    • Ecto
    • Elixir
    • SQL
    • Web
  2. Using doobie; Scala with PostgreSQL vs ActiveRecord

    I’ve wrapped up my second Scala client project, and I enjoyed SQL.

    Matt Sumner
    June 6, 2019
    • Ruby
    • Scala
    • SQL
  3. Back to basics: psql

    The right tool for the right job, right? Well let me introduce you to psql.

    German Velasco
    March 14, 2019
    • psql
    • Postgres
    • SQL
    • Back To Basics
  4. Better Date Manipulation in PostgreSQL Queries

    Use interval and date_trunc to make working with SQL dates easier.

    Derrick Carr
    September 19, 2017
    • Postgres
    • SQL
    • Data
    • Web
  5. Querying the Oldest and Newest Records Within a SQL Group

    How to find the oldest or most recent record associated with a particular foreign key.

    Jack Wilson
    September 18, 2017
    • Postgres
    • SQL
    • Databases
    • Rails
  6. Advanced Postgres Performance Tips

    What do you do when indexes aren’t enough?

    Caleb Hearth
    July 29, 2016
    • Postgres
    • Databases
    • SQL
    • Performance
  7. Reading a Postgres EXPLAIN ANALYZE Query Plan

    Take a guided tour through a query plan for a “simple” SQL query.

    Caleb Hearth
    July 26, 2016
    • Postgres
    • Databases
    • SQL
    • Performance
  8. ActiveRecord Eager Loading with Query Objects and Decorators

    How can you plug complex, multi-model SQL queries into ActiveRecord models so that you can use them in your views?

    Joe Ferris
    September 19, 2014
    • Web
    • Rails
    • SQL
    • Performance
  9. Postgres Window Functions

    Take your queries to the next level with window functions.

    Simon Taranto
    September 16, 2014
    • Web
    • Performance
    • Postgres
    • SQL
  10. Why Postgres Won't Always Use an Index

    Use SQL EXPLAIN to understand when and why indexes are used (or not).

    Simon Taranto
    July 25, 2014
    • Web
    • Performance
    • Postgres
    • SQL
  11. Sign up to receive a weekly recap from thoughtbot

« First ‹ Prev 1 2 3 Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • GitHub
  • Instagram
  • YouTube
  • Twitch
© 2024 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy