Delete vs Truncate vs Drop in SQL Server (2023)

What is the Difference between Delete, Truncate, and Drop command?

The “DELETE” command removes one or more records from a table in the database, and the “TRUNCATE” command removes all rows from a table, but Still, it keeps the table structure, and the “DROP” command completely removes the entire table from the database.

delete-vs-truncate-vs-drop-command-in-sql
Delete vs Truncate vs Drop command in SQL

Read more >>

CREATE, ALTER, AND DROP DATABASE IN SQL SERVER

In this article, we will discuss how to Create, Alter, and Drop a database in SQL Server.
In my previous article, we have discussed all about the Types of SQL Commands.

Database Introduction

 Database  : In the SQL server a database is a place to store the data in an electronic format. It is an organized collection of database objects such as tables, views, functions, stored procedures, triggers and so on.
It allows a user to easily access or manipulate the data.

SQL server database

Create Database In SQL Server

In SQL Server, there are two ways to create a user-defined database, either by using the Transact-SQL statements or by using SQL Server Management Studio.

Read more >>

5 Types of SQL Commands: DML, DDL, DCL, TCL, DQL with Query Example

SQL commands are a set of instructions used for interacting with relational database management systems (RDBMS).

SQL (Structured Query Language) is the standard language for managing and manipulating data in databases like SQL Server, MySQL, Oracle, Sybase, and Postgres.

Here, We will learn SQL commands like DML, DDL, DCL, TCL and DQL commands in SQL with examples.

image-types of SQL Commands
Types of SQL Commands

Read more >>