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
75%
15%
5%
0%
5%
Reviews
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
M
Mohmad Shadab
5
BEST VIDEOS
N
NAGASWETHA
5
very useful
M
mohd aamir
4
Hi Team,
Why you didn't teach/learn how to write select query, even you shared 15 question for practice :(
Share a personalized message with your friends.