Add office photos
Employer?
Claim Account for FREE

CCS Global Tech

2.4
based on 11 Reviews
Filter interviews by

TKIL Interview Questions and Answers

Updated 5 Feb 2024

Q1. Write q query to fetch the details of employees who are in the same department

Ans.

Query to fetch details of employees in the same department

  • Use SELECT statement to fetch employee details

  • Use JOIN to join employee and department tables

  • Use WHERE clause to filter employees in the same department

Add your answer

Q2. What is difference between delete and truncate command in SQL?

Ans.

Delete command removes rows one by one while truncate command 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 command fires triggers for each row deleted, while truncate does not.

  • Delete command is slower as it maintains logs for each row deleted, while truncate is faster as it does not maintain logs.

  • Delete command can have a WHERE clause to specify which rows to delete, whil...read more

Add your answer

Q3. What's the difference between where and having clause

Ans.

WHERE clause filters rows before grouping, HAVING clause filters groups after grouping.

  • WHERE clause is used to filter rows based on a condition

  • HAVING clause is used to filter groups based on a condition

  • WHERE clause is used before GROUP BY clause

  • HAVING clause is used after GROUP BY clause

  • WHERE clause cannot contain aggregate functions

  • HAVING clause can contain aggregate functions

  • Example: SELECT department, AVG(salary) FROM employees WHERE age > 30 GROUP BY department HAVING AVG...read more

Add your answer

Q4. How to delete duplicate records in a table?

Ans.

Use SQL query with GROUP BY and HAVING clause to delete duplicate records in a table.

  • Identify the columns that define a duplicate record

  • Write a SQL query to select the duplicate records using GROUP BY and HAVING clause

  • Delete the duplicate records using DELETE statement with the identified criteria

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

Q5. What is oops and what are its advantages

Ans.

OOPs is a programming paradigm that uses objects to represent real-world entities and provides encapsulation, inheritance, and polymorphism.

  • Encapsulation: Hides the implementation details of an object from the outside world

  • Inheritance: Allows creating a new class from an existing class

  • Polymorphism: Allows objects of different classes to be treated as if they are of the same class

  • Advantages: Reusability, Modularity, Flexibility, Maintainability

  • Example: A car can be represented...read more

Add your answer

Q6. How to join two table with inner join?

Ans.

To join two tables with inner join, use the JOIN keyword along with the ON clause to specify the join condition.

  • Use the JOIN keyword to combine rows from two tables based on a related column between them

  • Specify the join condition using the ON keyword followed by the columns to join on

  • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column

Add your answer

Q7. Different types of joins

Ans.

Different types of joins are Inner Join, Left Join, Right Join, and Full Outer Join.

  • Inner Join returns only the matching rows from both tables.

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

  • Right Join returns all the rows from the right table and matching rows from the left table.

  • Full Outer Join returns all the rows from both tables, including non-matching rows.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at TKIL

based on 2 interviews
Interview experience
3.0
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 699 Interview Questions
3.7
 • 638 Interview Questions
4.1
 • 210 Interview Questions
3.4
 • 171 Interview Questions
4.1
 • 162 Interview Questions
4.1
 • 148 Interview Questions
View all
Top CCS Global Tech 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

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