Professional Documents
Culture Documents
Top 50 SQL Server Interview Questions & Answers
Top 50 SQL Server Interview Questions & Answers
Windows Mode
Mixed Mode
https://career.guru99.com/top-50-sql-server-questions-answers/ 1/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
https://career.guru99.com/top-50-sql-server-questions-answers/ 2/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
[https://cdn.career.guru99.com/wp-
content/uploads/2014/07/ms-sql-server.jpg]
https://career.guru99.com/top-50-sql-server-questions-answers/ 3/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
The SQL Server agent plays a vital role in day to day tasks
of SQL server administrator(DBA). Server agents purpose is
to implement the tasks easily with the scheduler engine
which allows our jobs to run at scheduled date and time.
Example
https://career.guru99.com/top-50-sql-server-questions-answers/ 4/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
1 FLOOR(6.7)
Returns 6.
Example
1 SIGN(-35) returns -1
Insert
Delete
Update
Instead of
https://career.guru99.com/top-50-sql-server-questions-answers/ 5/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
https://career.guru99.com/top-50-sql-server-questions-answers/ 6/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
1. Case sensitive
2. Case Insensitive
3. Binary
1 Select SERVERPROPERTY(productversion)
https://career.guru99.com/top-50-sql-server-questions-answers/ 7/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
1 SUBSTR(Smiley,3)
1 CHARINDEX(Smiley,i,1)
https://career.guru99.com/top-50-sql-server-questions-answers/ 8/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
Example
Both are same but GETDATE can give time till milliseconds
and SYSDATETIME can give precision till nanoseconds.
SYSDATE TIME is more accurate than GETDATE.
SELECT INTO
https://career.guru99.com/top-50-sql-server-questions-answers/ 10/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
Start
https://career.guru99.com/top-50-sql-server-questions-answers/ 11/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
[/#facebook]
[/#twitter]
Top 50 Oracle
Interview
17
REPLIES
Rahul Dwivedi
Reply
christ x
Hello Rahul,
you are correct.. it should be opposite. Union All
accept duplicate whereas Union returns without
duplicate using distinct keyword implicitly
Reply
Rahul Dwivedi
Hi Christ,
Yes, you are right. Funny part is that none
of the mistakes have been corrected,
despite being pointed out.So, if someone
prepares for an interview with this blog
https://career.guru99.com/top-50-sql-server-questions-answers/ 13/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
Reply
Guru99
Reply
Guru99
Reply
Ron Warshawsky
Reply
Guru99
Error Fixed.
Reply
subhransu
https://career.guru99.com/top-50-sql-server-questions-answers/ 14/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
Reply
Guru99
Reply
G Krishna Rao
Reply
Raza
Reply
Tee kwame
Reply
Ag
Thank you
https://career.guru99.com/top-50-sql-server-questions-answers/ 15/16
10/5/2017 Top 50 SQL Server Interview Questions & Answers
Reply
SHINU MP
Good questions
Reply
Shiv Ram
Reply
admin
Reply
C K MATHAPATI
Reply
https://career.guru99.com/top-50-sql-server-questions-answers/ 16/16