We use WHERE clause to filter when reading, updating, and deleting data from a table. If we run select, Update, or delete statements without …
Read More »TSQL
Ambiguous column name Error and SQL Server Alias(TSQL)
When reading data from tables, we may need to give different names to tables and columns. We can do this by defining alias to …
Read More »Merge Statement in SQL Server(TSQL)
With the Merge Statement, we can run INSERT, UPDATE, and DELETE commands at one time to synchronize two tables of the same structure. First, …
Read More »Truncate Table Statement in SQL Server and Difference Between Delete and Truncate Table(TSQL)
If we want to delete all records in the Table, we can do this with the Truncate Table command. You can use the truncate …
Read More »How To Drop a Table in SQL Server
To create a table in SQL Server, you can read the article “How to Create a Table in SQL Server“. In this article, we …
Read More »How To Drop a Database in SQL Server
In this article, we will talk about two methods to drop a database. First Method (With SSMS): When you connect to SQL Server Instance …
Read More »How To Create a Table in SQL Server
We will create a table in SQL Server by using two methods in this article. First Method (With SSMS): Right-click on the corresponding database …
Read More »Delete Statement in SQL Server(TSQL)
With the Delete Statement, we can delete records in a table in the database. The most important thing to note when running this command …
Read More »Update Statement in SQL Server(TSQL)
With the Update Statement, we can update records in a table in the database. The most important thing to note when running this command is …
Read More »Select Into Statement in SQL Server(TSQL)
We use the Select Into Statement to export the data in a table to another table. You can see a few examples below. First, …
Read More »