Add office photos
Employer?
Claim Account for FREE

DataBeat

3.7
based on 15 Reviews
Filter interviews by

Infogain Interview Questions and Answers

Updated 28 May 2024

Q1. A village population increased by 20% in which 15% increased in male and 50% in female. Whose contribution is More?

Ans.

50% increase in female population contributed more to the overall population increase in the village.

  • Calculate the actual increase in male and female population separately.

  • Compare the percentage increase in male and female population.

  • The group with the higher percentage increase contributed more to the overall population increase.

Add your answer

Q2. What is primary key and foreign key

Ans.

Primary key uniquely identifies each record in a table, while foreign key establishes a link between two tables.

  • Primary key ensures each record is unique

  • Foreign key establishes a relationship between tables

  • Primary key can be a single column or a combination of columns

  • Foreign key references the primary key of another table

Add your answer

Q3. What we consider for creating table

Ans.

When creating a table, factors to consider include data types, column names, primary keys, relationships, and constraints.

  • Consider the data types for each column (e.g. integer, text, date)

  • Choose appropriate column names that are descriptive and easy to understand

  • Define primary keys to uniquely identify each row

  • Establish relationships between tables using foreign keys

  • Set constraints to enforce data integrity (e.g. unique, not null)

Add your answer

Q4. Difference between where and having

Ans.

WHERE is used to filter rows before grouping, HAVING is used to filter groups after grouping.

  • WHERE is used with SELECT statement to filter rows based on a condition

  • HAVING is used with GROUP BY statement to filter groups based on a condition

  • WHERE is applied before grouping, HAVING is applied after grouping

  • Example: SELECT * FROM table_name WHERE column_name = 'value'

  • Example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name HAVING COUNT(*) > 1

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

Q5. Difference between delete and truncate

Ans.

Delete removes rows one by one, while truncate removes all rows at once.

  • Delete is a DML command, while truncate is a DDL command

  • Delete can be rolled back, while truncate cannot be rolled back

  • Delete triggers delete triggers, while truncate does not trigger any triggers

  • Delete is slower than truncate for large tables

  • Example: DELETE FROM table_name WHERE condition;

  • Example: TRUNCATE TABLE table_name;

Add your answer

Q6. Explain about joins?

Ans.

Joins are used in databases to combine rows from two or more tables based on a related column between them.

  • Joins are used to retrieve data from multiple tables in a single query.

  • Common types of joins include inner join, left join, right join, and full outer join.

  • Inner join returns only the matching rows between the tables.

  • Left join returns all rows from the left table and the matching rows from the right table.

  • Right join returns all rows from the right table and the matching ...read more

Add your answer

More about working at DataBeat

HQ - hyderābād, telangana, india
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Infogain

based on 4 interviews in the last 1 year
Interview experience
3.8
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.1
 • 198 Interview Questions
3.9
 • 186 Interview Questions
3.8
 • 184 Interview Questions
3.7
 • 179 Interview Questions
4.2
 • 177 Interview Questions
3.6
 • 143 Interview Questions
View all
Top DataBeat 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