by Aman Raiyyani | Mar 13, 2023 | SQL Server
SQL Server has many features and functionalities that may not be well-known or widely used by many. Here are a few hidden gems in SQL Server that you may find useful: The OUTPUT clause: This clause allows you to return the values of the inserted, deleted, or updated...
by Aman Raiyyani | Mar 13, 2023 | SQL Server
There are several methods to encrypt table values in SQL Server. One of the most common methods is to use built-in encryption functions such as ENCRYPTBYPASSPHRASE and DECRYPTBYPASSPHRASE. Here’s an example of how to encrypt the values in a table column called...
by Aman Raiyyani | Mar 8, 2023 | SQL Server
Transparent Data Encryption (TDE) is a feature in SQL Server that allows you to encrypt the entire database, including the data and log files, to protect sensitive data from unauthorized access. Here’s an example of how to implement TDE at the database level...
by Aman Raiyyani | Mar 8, 2023 | SQL Server
A primary key is a column or set of columns in a table that uniquely identifies each row in the table. A primary key cannot contain null values and must have a unique value for each row. It is used to enforce the integrity of the data and to create a link between...
by Aman Raiyyani | Mar 7, 2023 | SQL Server
This is the most commonly used type of join. It returns only the rows that have matching values in both tables. The syntax for an inner join is: SELECT column1, column2 FROM table1 JOIN table2 ON table1.column = table2.column; Real-life example: A retail store has a...
by Aman Raiyyani | Mar 6, 2023 | SQL Server
LEFT JOIN: This type of join returns all the rows from the left table and the matching rows from the right table. If there is no match, the result will contain NULL values. The syntax for a left join is: <!– wp:paragraph –> <p>SELECT column1,...