Genpact SQL PL/SQL Interview Question Answers 2016

GENPACT SQL PL/SQL INTERVIEW QUESTIONS ANSWERS 2016 SET  Today I want to share my interview experience with you, Genpact was looking for ...

GENPACT SQL PL/SQL INTERVIEW QUESTIONS ANSWERS 2016 SET 
Today I want to share my interview experience with you, Genpact was looking for 4+ years SQL Server Experienced Developers, I attend this interview(25/05/2016) to know the latest SQL Server question asked in marked currently.
Before the I was attended TCS interview for same position.
Below are the set of query which are asked during my Genpact interview question answers session(tech round), Which was held in Gurgaon Genpact office.

1). Write down the query to print the first date of current month using Getdate() function?
Ans:


2). Can you explain SQL Server 2016 New Feature for Drop Object if Exist.(DROP IF EXISTS).
Ans: Click here for answer

3). What is the use of @@Error in SQL Server, please explain.
Ans: Click here for answer

4). Is view store data physically apart from table or not?
Ans: A view is just a macro, it has no persistent storage.The underlying table data is stored in the MDF file

5). Table Tbl1 has 100 rows, Table Tbl2 has 0 rows so number of rows returned by the below query?
SELECT Tbl1.* from Tbl1, Tbl2;
Ans : No row will be retun by this query

6). Write a query to print 1 to 100 in sql server without using loops?
Ans: Click here for answer

7). What is the difference between SQL, PL-SQL and TSQL
Ans: Click here for answer

8). When would you use stored procedure or functions ? 
Ans: Functions are computed values and cannot perform permanent environmental changes to SQL Server (i.e. no INSERT or UPDATE statements allowed).
A Function can be used inline in SQL Statements if it returns a scalar value or can be joined upon if it returns a result set.
for more see the difference between them, and use according to that.

9). What is function in SQL Server, Write a function to convert Decimal number to Binary number?
Ans: Click here for answer

10). Can you edit Sql Profiler existing/default templates? 
Ans: Click here for answer

11). How you will execute the stored procedure as a different user in SQL Server?
Ans: I will use EXECUTE AS
Example-
EXECUTE AS user = 'special_user'
EXECUTE YourProcerdure

Related

SQL SERVER INTERVIEW QUESTIONS 346699505569748003

Post a comment

emo-but-icon

Follow Us

Recent

Comments

Donate

Side Ads

Text Widget

Connect Us

Sql Server 2017 Interview Questions
Sql Server Basic Interview Query Set-1
Sql Server Basic Interview Query Set-2
Sql Server Date-Time Interview Query SET-3
Sql Server Salary Interview Query SET-4
Sql Server Group By Interview Query SET-5
Sql Server Join Interview Query SET-6
Sql Server Tricky Join Interview Query SET-7
Sql Server DDL Interview Query SET-8
Small but very Tricky Sql Server Query SET-9
Very Much Tricky Query (not 4 fresher)SET-10
Sql Server Complex Interview Query SET-11
Sql Server Datatype Interview Questions
Sql Server View Interview Questions
Sql Server Index Interview Questions
TCS Tricky Sql Interview Queries
HCL Sql Interview Queries
Sql Server SP Interview Questions
Sql Server Trigger Interview Questions
Sql Server Temp Table Interview Questions
Sql Server 2016 Interview Questions
Sql Server Performance Tuning Interview Q.
Sql Server Constraints Interview Questions
Sql Server Storage/Size Interview Questions
Sql Server Very Basic Interview Questions
Sql Server Quiz for Fresher
Sql Server Icon Quiz for All
Sql Server 300+ Theoretical Interview Questions
Sql Server Complete Set

ASP.NET AND JQUERY INTERVIEW QUESTION
ASP.NET: Web Config Interview Question
ASP.NET: View State Interview Question
ASP.NET: Session Interview Question
ASP.NET: Session Interview Question 
ASP.NET: Security Interview Question
ASP.NET: Catching Interview Question
C# OOPS Interview Question
MORE Interview Question
JQUERY: Interview Question Set-1
JQUERY: Interview Question Set-2
JAVA-SCRIPT: Interview Question Set-1
JAVA-SCRIPT: Interview Question Set-2
ASP.NET MVC: Interview Question Set-1

POPULAR POSTS
10 MOST DIFFICULT INTERVIEW QUESTIONS
5 BEST INTERVIEW TIPS
YOUR 10 MISTAKE DURING INTERVIEW
2016 TOP 20 GROUP DISCUSSION TOPICS
HOW SQL PERFORMANCE AFFECTED BY DATATYPE
item