Add office photos
Employer?
Claim Account for FREE

Prosper Informatics

4.4
based on 14 Reviews
Filter interviews by

Genpact Interview Questions and Answers

Updated 16 Jul 2024

Q1. How many types of joins are there and explain with example

Ans.

There are four types of joins in SQL: INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.

  • INNER JOIN: Returns rows when there is at least one match in both tables.

  • LEFT JOIN: Returns all rows from the left table, and the matched rows from the right table.

  • RIGHT JOIN: Returns all rows from the right table, and the matched rows from the left table.

  • FULL JOIN: Returns rows when there is a match in one of the tables.

Add your answer

Q2. What is the flow of execution in sql

Ans.

SQL statements are executed in a specific order to retrieve, manipulate, or delete data from a database.

  • SQL statements are parsed and validated first

  • Next, the query optimizer creates an execution plan

  • The execution plan is executed by the SQL engine

  • Finally, the results are returned to the user

Add your answer

Q3. With what synonym was over comed

Ans.

Overcome

  • To conquer or defeat

  • To successfully deal with a problem or difficulty

  • To prevail over obstacles

Add your answer

Q4. Is stored procedures gives return result

Ans.

Yes, stored procedures can return result sets or scalar values.

  • Stored procedures can return result sets containing multiple rows and columns

  • They can also return scalar values like integers, strings, etc.

  • Results can be accessed by calling the stored procedure and fetching the output

Add your answer
Discover Genpact interview dos and don'ts from real experiences

Q5. Difference between unique and primary key

Ans.

Primary key uniquely identifies a record in a table, while unique key ensures all values in a column are different.

  • Primary key enforces uniqueness and not null constraint

  • Unique key enforces uniqueness but allows null values

  • A table can have only one primary key but multiple unique keys

  • Primary key is automatically indexed for faster retrieval

Add your answer

Q6. How functions are defined

Ans.

Functions are defined by specifying the function name, parameters, return type, and body of the function.

  • Functions are defined using the 'function' keyword followed by the function name.

  • Parameters are listed inside parentheses after the function name.

  • The return type of the function is specified before the function name.

  • The body of the function is enclosed in curly braces {} and contains the code to be executed.

  • Example: function add(int a, int b) { return a + b; }

Add your answer

Q7. What is magic table

Ans.

Magic table is a virtual table in SQL Server that is used to access the inserted, deleted, or updated data during triggers.

  • Magic table is used in SQL Server triggers to access the data affected by INSERT, UPDATE, or DELETE operations.

  • It is not a physical table, but a virtual table that stores the affected data temporarily.

  • The 'inserted' and 'deleted' tables are examples of magic tables in SQL Server triggers.

Add your answer

Q8. Index and their types

Ans.

Indexes are data structures used to improve the speed of data retrieval operations in databases.

  • Types of indexes include clustered, non-clustered, unique, and composite indexes.

  • Indexes can be created on one or multiple columns in a table.

  • Examples of indexes are primary key indexes, foreign key indexes, and secondary indexes.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 686 Interview Questions
3.7
 • 319 Interview Questions
4.2
 • 147 Interview Questions
3.8
 • 143 Interview Questions
4.1
 • 139 Interview Questions
4.1
 • 129 Interview Questions
View all
Top Prosper Informatics Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter