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.6
Overall Rating
77%
14%
5%
0%
4%
Reviews
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.
N
nayazbasha sk
5
very useful thank you learnvern
M
Mahima Patel
5
very usefull......thanks
P
Priya Kushwaha
5
Very Good trainer
C
chanchal singh
5
you guys are doing nice job. thanks
U
Umesh Wankhede
5
Not too much interactive
M
Monesh Ram
5
Well Explained in Every Chapters..
G
GAJANAN DIGAMBAR MODE
5
very easy to understand SQL its was dream to learn SQL. Thanx for Learnvern
Share a personalized message with your friends.