Statements

SQL AVG Function: A Complete Guide

Database development, Statements

In mathematics, the Average value represents the middle value that we calculate by dividing the sum...
Read More

SQL Server TRIM, LTRIM, and RTRIM Functions

Database development, Statements

The TRIM function of SQL Server is designed to remove leading and trailing whitespaces from a character string. A leading space is...
Read More

SQL CASE: Know and Avoid 3 Lesser-Known Hassles

Database development, Statements

SQL CASE? Piece of cake! Really? Not until you bump into 3 troublesome issues that can cause runtime errors and slow performance. If you...
Read More

Query Optimization Techniques in SQL Server: 5 Best Practices to Boost Queries Performance

Database administration, Database development, Performance Tuning, Statements

What is query optimization in SQL Server? It’s a big topic. Each technique or problem needs a...
Read More

9 Best Practices for Writing SQL Queries

Database administration, Database development, MySQL, Oracle, Performance Tuning, PostgreSQL, SQL Server, Statements

If you are reading this article, most probably, you are already familiar with SQL. You know how to write basic SQL queries. There are many...
Read More

TOP 5 MySQL Delete Syntax with Tips for T-SQL Developers

Database development, Languages & Coding, MySQL, Statements, T-SQL

Our journey to MySQL started with CREATE TABLE followed by INSERT. Today, we are proceeding to the MySQL DELETE statement....
Read More

4 Ways to Count Rows in SQL Server Table with Pros and Cons

Database development, Statements, Tables

Recently, I was working on a database performance improvement project. One stored procedure there...
Read More

How to Avoid Inserting Duplicate Records in SQL INSERT Query (5 Easy Ways)

Database development, Statements

You probably know how to insert records into a table using single or multiple VALUES clauses. You also know how to do bulk inserts...
Read More

5 No-Hassle Tips to Use SQL UPDATE Statement with JOIN

Database development, Statements

“Oops! My bad.” How many times did you say this after an SQL UPDATE had gone wrong? The thing is, if you aren’t...
Read More

MIN and MAX Aggregate Functions in SQL Server

Database development, Statements

SQL Server Functions In database systems in general and in SQL Server in particular, functions are...
Read More
Close