Best of SQL2024

  1. 1
    Article
    Avatar of communityCommunity Picks·1y

    Learn SQL while solving crimes! SQL Police Department

    Structured Query Language (SQL) is a powerful language used to access and manipulate data in tables. Key operations include selecting all or specific columns, filtering and sorting rows, eliminating duplicates, and using conditional statements to refine data queries. Understanding these basics enables effective data management and retrieval.

  2. 2
    Video
    Avatar of communityCommunity Picks·2y

    Stop using COUNT(id) to count rows

    Counting rows using COUNT(*) in MySQL is not slow as often believed. It is actually optimized to be the fastest way to count rows.

  3. 3
    Article
    Avatar of gcgitconnected·2y

    🐼 Mastering SQL Joins

    This post explores the concept of table joins in SQL, covering different join types such as inner join, left join, and right join. It also discusses how to identify and handle orphan records in a database.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Improve your SQL skills X2 in 5 minutes

    Learn how to advance your SQL skills by working with CTEs and window functions. Discover the importance of SQL for managers and how it can help answer business questions and assist with technical designs. Explore the different types of window functions available in SQL.

  5. 5
    Article
    Avatar of mlnewsMachine Learning News·2y

    10 GPTs for Software Developers

    GPTs are custom versions of ChatGPT that specialize in specific subject matters and can be used by software developers. They can help with coding, website generation, SQL queries, and more. GPTs are accessible to anyone with an internet connection and a ChatGPT account.

  6. 6
    Article
    Avatar of gcgitconnected·2y

    In Search of Improving Database Performance: A Comprehensive Guide with 8 Key Strategies

    The post explores eight key strategies to boost database performance. It covers query optimization techniques, avoiding correlated subqueries, batching operations, leveraging materialized views, utilizing indexes, and analyzing query execution plans. Additional strategies include configuring database settings, employing caching strategies, employing database partitioning, sharding, and replication methods to enhance read/write speeds and manage large datasets efficiently.

  7. 7
    Article
    Avatar of bytebytegoByteByteGo·2y

    EP99: What is the best way to learn SQL?

    Learn the best way to learn SQL and understand the concept of gRPC.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    Mastering Relational Database Design: A Comprehensive Guide

    Learn the fundamentals of relational databases, their management systems, and principles of effective database design. Understand the importance of naming conventions, data integrity, keys, indexes, and cardinality. Explore different types of joins and the benefits of using aliases. Plus, get an introduction to the Database Modeling Language (DBML).

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    How to Optimize Slow SQL Queries

    Learn how to identify and optimize slow SQL queries, including methods such as using parameterized queries, configuring the database for optimal performance, and properly indexing columns. Continuous feedback tools and monitoring can help in finding and optimizing these queries.

  10. 10
    Article
    Avatar of kdnuggetsKDnuggets·2y

    10 GitHub Repositories to Master SQL

    This post lists 10 GitHub repositories that can help readers master SQL and database management. The repositories include tutorials, practice exercises, comprehensive courses, and tools for SQL-related tasks.

  11. 11
    Article
    Avatar of phProduct Hunt·2y

    Anyquery - Query anything (Notion, GitHub, CSV, JSON, HN, etc) via SQL

    Anyquery is a versatile tool that allows users to query various data sources like Notion, GitHub, CSV, JSON, and Hacker News using SQL. Launched on August 7th, 2024, it falls under productivity and developer tools categories.

  12. 12
    Article
    Avatar of towardsdevTowards Dev·2y

    3 Essential SQL Tricks You Absolutely Need to Know

    Learn three essential SQL tricks that can improve efficiency and analytical capabilities. Topics include using Common Table Expressions (CTEs), creating Partial Indexes for faster searches, and implementing Conditional Aggregation in SQL queries.

  13. 13
    Article
    Avatar of devtoDEV·2y

    When to use SQL vs NoSQL

    Choosing between SQL and NoSQL databases can be daunting. SQL excels in data consistency and complex querying, while NoSQL offers scalability and flexibility. Common misconceptions include inflexibility of SQL databases and the lack of transactional support in NoSQL.

  14. 14
    Article
    Avatar of medium_jsMedium·2y

    Roadmap to Learn Data Engineering: How I Would Start Again

    A roadmap for learning data engineering, covering Python, SQL, command line, data warehouse, data modeling, data storage, data processing, data transformation, data orchestration, advanced topics, and staying updated.

  15. 15
    Video
    Avatar of dreamsofcodeDreams of Code·2y

    SQLc is the perfect tool for those who don't like ORMs

    SQLc is an efficient tool for developers who prefer writing raw SQL queries over using ORMs. It allows for type-safe SQL query generation, fitting neatly within the repository design pattern. SQLc supports multiple programming languages (TypeScript, Kotlin, Python, and Go) and SQL engines (Postgres, MySQL, SQLite). It eliminates boilerplate code, making database interactions more manageable and reusable across codebases. By using SQLc, developers can maintain full control over queries while ensuring type safety and reducing development time.

  16. 16
    Article
    Avatar of kdnuggetsKDnuggets·2y

    5 Tips for Improving SQL Query Performance

    Strong SQL skills are crucial in data roles, where optimizing query performance can significantly impact application efficiency. Key tips include avoiding SELECT * by specifying columns, using GROUP BY instead of SELECT DISTINCT, limiting query results, and employing indexes with caution. Balancing these techniques can improve query performance and ensure efficient database operations.

  17. 17
    Article
    Avatar of hnasrHussein Nasser·2y

    The Art of database systems

    Understanding database systems revolves around key principles: data must be read from the disk to memory and then to CPU cache to be useful, with each step significantly faster than the last. Disk space is limited, memory is scarce, and CPU caches are even scarcer, so it's crucial to fully utilize chunks of data at each stage. These insights stress the importance of efficient SQL queries and database configurations to maximize performance.

  18. 18
    Article
    Avatar of communityCommunity Picks·2y

    7+ Free PostgreSQL Hosting Platforms for Developers in 2024

    Several cloud providers offer free tiers for PostgreSQL hosting, ideal for developers working on small projects, personal experiments, or startup MVPs. Notable platforms include Neon, Supabase, EdgeDB, Xata, Tembo, Vercel Postgres, Koyeb, Aiven, and Nhost. These options provide scalable, fully managed databases with features like autoscaling, database branching, and integrated authentication, allowing developers to focus on development without worrying about infrastructure costs.

  19. 19
    Article
    Avatar of threedotslabsThree Dots Labs·2y

    Database Transactions in Go with Layered Architecture

    This post explores handling database transactions in Go while adhering to layered architecture principles. It emphasizes the importance of keeping critical logic separate from SQL queries using patterns such as the Repository pattern, the UpdateFn pattern, and the Transaction Provider pattern. Various approaches to transaction management are discussed, highlighting their advantages and drawbacks to help maintain code clarity and integrity.

  20. 20
    Article
    Avatar of devtoDEV·2y

    Guide To Choose A Database For Your Next Design

    Guide to choosing the right database for your next design. Discusses the differences between relational and non-relational databases, their features and drawbacks, and provides guidance on choosing the appropriate database for specific requirements.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    10 Cool SQL Optimisations That do not Depend on the Cost Model

    The post evaluates 10 SQL optimizations that do not depend on the cost model. It discusses the applications and support for transitive closure, removing 'silly' predicates, JOIN elimination, provably empty sets, and more.

  22. 22
    Article
    Avatar of substackSubstack·2y

    A Primer on Databases

    Databases have been fundamental to software development for decades. The post discusses their history, from the invention of SQL databases to the rise of unstructured and cloud-based databases. It highlights the current database landscape, including the significance of transaction processing and analytics. The piece also touches on emerging technologies like vector databases, which are crucial for AI development. The author emphasizes that while the core technology of databases is not extremely complex, distribution and platformization will be key factors for future success in the database market.

  23. 23
    Article
    Avatar of swizecswizec.com·2y

    Why SQL is Forever

    SQL and relational databases remain fundamental for transactional data, despite the advances and popularity of NoSQL technologies over the past decades. Many NoSQL systems have either been removed, adapted to include SQL/natively support transactions, or are mainly used for caching and analytics. This demonstrates the enduring flexibility and utility of SQL, including new features like JSON support and vector databases, which relational databases have successfully integrated while maintaining ACID properties.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    The Performance Impact of Writing Bad SQL Queries

    Poorly written SQL queries can severely degrade database performance, leading to slow response times and inefficient resource utilization. Common mistakes include using 'SELECT *', ignoring execution plans, and inefficient joins. SQL’s simplicity can lead to writing slow queries, especially without proper knowledge or under tight deadlines. Sometimes, systems can tolerate inefficient queries in non-critical applications or low-concurrency environments. However, these bad queries can cause hidden bottlenecks and increased resource consumption. Using tools like execution plans and IDE plugins can help optimize SQL queries, ensuring better system efficiency and scalability.

  25. 25
    Video
    Avatar of developedbyeddevelopedbyed·2y

    SQL Indexes Explained in 20 Minutes

    This post delves into the concept of SQL indexing, explaining its purpose, how it works, and its benefits and drawbacks. It includes a practical example of creating and using indexes to optimize query performance and discusses the potential impact of too many indexes on database size and update operations.