I used to write SQL queries that worked but made zero sense to anyone else. Including future me. 👇 Here are few small habits that made my SQL way cleaner and easier to read: • Use CTEs instead of nested subqueries, CTEs (WITH statements) break your logic into steps. Much easier to follow than queries inside queries inside queries. • Name your columns clearly Instead of col1 or a.x, write what it actually means. Your teammates will thank you. So will you after 2 weeks. • Filter early Apply WHERE conditions as early as possible. Less data to process means faster queries. • Add comments for anything non obvious (One line above a tricky join explaining why it is there saves so much confusion later). SQL is not just about getting the right answer. It is about writing something others (and you) can actually understand and maintain. Still working on this myself honestly 😄 Which of these do you already do? Any habits I should add to this list? #SQL #DataAnalytics #DataScience #DataSkills #SQLTips
Excelente tu Post! Me encantan tu ideas y publicaciones! 👏 Te comparto mis ensayos mas recietnes 🙇♂️ - Domina ya la IA generativa: guía esencial para ingenieros y data scientists en 2026 https://www.garudax.id/pulse/domina-ya-la-ia-generativa-gu%C3%ADa-esencial-para-y-data-jxrxe - LA ELECCIÓN TÉCNICA DEL ALGORITMO DE IA ADECUADO. https://www.garudax.id/pulse/la-elecci%C3%B3n-t%C3%A9cnica-del-algoritmo-de-ia-adecuado-y-en-xtpbe - Acelera x10 tu aprendizaje profundo https://www.garudax.id/pulse/acelera-x10-tu-aprendizaje-profundo-en-2026-optimiza-umbxe - Optimiza YA tus redes neuronales: 7 secretos de algoritmos genéticos para parámetros perfectos en 2026 https://www.garudax.id/pulse/optimiza-ya-tus-redes-neuronales-7-secretos-de-para-bcvpe - EL PADRE DE LA IA QUE CAMBIÓ TODO https://www.garudax.id/posts/iamarcoantonio_management-marketing-innovacion-activity-7425538777730813953-iVJm?utm_source=share&utm_medium=member_desktop&rcm=ACoAADn4DrkBq-7bpJwuEWEQPtM4u8MPbtZpkkg - Ciberseguridad inteligente: cómo Python detecta riesgos antes de que ocurran https://www.garudax.id/pulse/ciberseguridad-inteligente-c%C3%B3mo-python-detecta-antes-cpbme
I totally agree with that first point! Ctes are way better than Subqueries