Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Explore the differences between Table Variables and Temporary Tables in SQL Server — covering syntax, scope, performance, and best practices with real-world examples to help you choose the right approach efficiently.
This article provides step-by-step instructions and examples for SQL Server, MySQL, and PostgreSQL. Master techniques using ROW_NUMBER(), RANK(), DENSE_RANK(), CROSS APPLY, and LIMIT with subqueries. Avoid common mistakes and optimize your queries for performance. Perfect for reporting, analytics, and data visualization.
This article reveals practical techniques like indexing, efficient joins, and smart WHERE clauses to dramatically reduce execution time. Learn how to analyze execution plans, leverage partitioning and caching, and optimize subqueries for peak performance.
This article provides a comprehensive overview of SQL, the standard language for relational databases. Learn core features, basic commands (CREATE, INSERT, SELECT, UPDATE, DELETE), and why SQL is essential for web development, data analytics, and business intelligence. Master SQL for efficient data management and a valuable skill in today's tech landscape.
A practical SQL cheatsheet covering queries, filtering, joins, aggregation, constraints, subqueries, CTEs, and window functions with short examples.
MySQL and SQL Server are popular RDBMS platforms. MySQL is ideal for web applications due to its speed and cost-effectiveness, while SQL Server is suited for enterprise systems, offering advanced security, scalability, and analytics.
Table sharding improves database scalability and performance by splitting large tables into smaller, distributed shards. It enhances speed, fault tolerance, and cost-efficiency—ideal for growing applications with heavy data loads.
Learn how to detect, manage, and resolve SQL Server fragmentation with live examples. Improve query performance, reduce I/O overhead, and optimize indexes and heaps using proven best practices and tools.
Horizontal and vertical partitioning are techniques in SQL to improve performance and manage large datasets. Learn how each method works, their use cases, and how they impact database design.
Learn the essentials of DBCC commands in SQL Server—powerful tools for monitoring, maintaining, and troubleshooting databases. Mastering them ensures performance optimization, deadlock resolution, and proactive database health checks.
Learn how SQL Server transaction locks ensure data integrity, identify locking issues using DMVs and Activity Monitor, and explore strategies like query optimization, isolation levels, and deadlock resolution for better performance.
This article will discuss when to use dynamic SQL Script and the conditions.
Explore the key differences between SQL and NoSQL databases, including structure, scalability, use cases, and performance.
In this article we are going to learn about the CDC and types of CDC approaches. It helps keep data in sync without causing a heavy load on the database.
Learn how SQL Common Table Expressions simplify complex queries, support recursive hierarchies, and organize aggregation and multi-step calculations.
Learn about SQL Aggregate Functions like SUM, COUNT, AVG, MIN, and MAX. These functions help perform calculations on grouped data, such as finding totals, averages, and minimum or maximum values, making data analysis more efficient.
SQL Server Sparse Columns optimize storage by not allocating space for NULL values, improving efficiency. They support filtered indexes and column sets for dynamic queries but add a 4-byte overhead for non-NULL values, requiring careful use.
This article covers the basics of SQL transactions, including BEGIN, COMMIT, and ROLLBACK commands, ACID properties, isolation levels, and error-handling techniques for effective database management.
SQL Server triggers are automated procedures executed on DML/DDL events. This guide explores trigger types, real-world examples, and implementations for logging, validation, and restriction in SQL Server databases.
In this article, we explore the key differences between distributed and monolithic SQL architectures. We delve into their respective advantages and disadvantages, focusing on scalability, performance, and data management.
A cursor in SQL is a database object that allows row-by-row processing of query results. It enables you to iterate through a result set, perform operations on each row, and manage data more efficiently in certain scenarios.
This article will discuss Interesting Query (3) --- Get Rolling Average
A relationship in DBMS links two or more data sets. This article explores types of relationships: one-to-one, one-to-many, and many-to-many, and their implementations in databases.
This article will discuss the issue that SQL: Not Using Aggregate Function in WHERE Clause, instead, Using HAVING Clause
In this article you will learn about Temporary Tables and Table Variables in SQL Server 2008. Temporary tables come in two types: Local (prefixed with "#", accessible only to the current connection) and Global (prefixed with "##", accessible by any connection).
Subqueries in SQL are powerful tools for complex queries. They include correlated subqueries, which depend on the outer query’s results, scalar subqueries that return single values, and EXISTS/NOT EXISTS subqueries used to check for record existence.
Common Table Expressions (CTEs) in SQL are a powerful tool for simplifying complex queries. They allow you to create temporary result sets that can be referenced within a SELECT, INSERT, UPDATE, or DELETE statement.
In SQL, INNER JOIN and CROSS APPLY differ in functionality; INNER JOIN merges rows based on a condition, while CROSS APPLY uses a table-valued function for dynamic row operations. LEFT OUTER JOIN includes unmatched rows as NULL, whereas OUTER APPLY combines this with table-valued functions for enhanced flexibility.
Everything on SQL, not only its articles: the SQL page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article