Formatting: Carefully use Indentation & White spaces.
Avoid Select *
Go for the ANSI-92 JOIN Syntax.
Use Common Table Expression (CTE)
Instead of several single-row statements, use multi-row statements. A single multi-row statement is faster than several single-row statements for INSERT, UPSERT, and DELETE statements. Instead of several single-row statements, utilise multi-row statements for DML queries whenever possible.
NOT NULL.
UNIQUE.
PRIMARY KEY.
FOREIGN KEY.
CHECK.
DEFAULT.
When compared to 'INSERT... SELECT,' INTO' constructs the destination table, owns it exclusively, and is faster. Because the 'INSERT... SELECT' inserts data into an existing table, it is slower and uses more resources because there are more logical reads and transaction log consumption.
When you edit a table, the system must retain the indexes on the columns that are being changed. As a result, while having a large number of indexes can speed up select statements, it can also slow down inserts, updates, and deletes.
Learner's Ratings
4.3
Overall Rating
71%
11%
7%
0%
11%
Reviews
V
Vishnu Suvaliya
5
Forums.learnvern.com cant work
A
Ankush Raj
5
good
R
ruhina qureshi
5
Awesome Classes ,Both tutors explains the concept very nice
Y
Yadav Aakash
5
very useful thank you learnvern
A
Ashish
5
The course is very good. I have stuck at a point that how you create multiple rows with a single insert in sales.customer table. I get only one customer data. this table is related to bikestore data.
Share a personalized message with your friends.