Statements

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...
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 separate article to cover the bases....
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...
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 was causing issues. In its code, a query...
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...
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 pieces of code that take zero or one...
Read More

Understanding DROP TABLE Statement in SQL Server

Database development, Statements, Tables

The SQL Server DROP TABLE statement serves to drop the table from the database. This article will...
Read More
Close