Add office photos
Employer?
Claim Account for FREE

Nsight Inc

3.0
based on 56 Reviews
Filter interviews by

The Sleep Company Interview Questions and Answers

Updated 26 Feb 2025

Q1. Difference between AS and IS in Procedure

Ans.

AS is used to assign an alias to a column or table in SQL, while IS is used to compare values or check for null values.

  • AS is used in SELECT statements to assign a temporary name to a column or table

  • AS can also be used in JOIN statements to assign aliases to tables

  • IS is used in WHERE clauses to compare values or check for null values

  • IS NULL is used to check if a value is null

  • IS NOT NULL is used to check if a value is not null

View 1 answer

Q2. How do you design an APIGateway and 3 Microservices in your project?

Ans.

Designing an APIGateway and 3 Microservices involves defining endpoints, communication protocols, and service interactions.

  • Define the endpoints for the APIGateway to route requests to the appropriate microservices.

  • Choose communication protocols such as REST or gRPC for interactions between services.

  • Implement service discovery and load balancing for efficient communication.

  • Ensure security measures like authentication and authorization are in place.

  • Use tools like Swagger for AP...read more

Add your answer

Q3. Tell practical implementation of Design pattern in your project code?

Ans.

Implemented Singleton design pattern in a project to ensure only one instance of a class is created.

  • Used a private constructor to prevent instantiation of the class from outside.

  • Created a static method to provide a single point of access to the instance.

  • Stored the single instance as a private static variable within the class.

  • Ensured thread safety by using synchronized keyword or double-checked locking.

Add your answer

Q4. 1. Use of with cluse

Ans.

WITH clause is used to define a temporary result set that can be used in a subsequent SQL statement.

  • WITH clause is also known as Common Table Expression (CTE)

  • It improves the readability and maintainability of complex SQL queries

  • It can be used to simplify complex queries by breaking them down into smaller, more manageable parts

  • It can be used to create recursive queries

  • Example: WITH sales AS (SELECT * FROM sales_data) SELECT * FROM sales WHERE amount > 1000;

  • Example: WITH recurs...read more

Add your answer
Discover The Sleep Company interview dos and don'ts from real experiences

Q5. Use of Case condition

Ans.

Case condition is used to perform conditional logic in SQL queries.

  • It allows for conditional statements in SELECT, WHERE, and ORDER BY clauses.

  • Syntax: CASE WHEN condition THEN result ELSE alternative END

  • Can be nested for complex logic

  • Useful for data transformation and reporting

Add your answer

Q6. Use of NTILE in sql

Ans.

NTILE is a SQL function used to divide a result set into a specified number of groups.

  • NTILE requires an integer argument that specifies the number of groups to divide the result set into.

  • It assigns a group number to each row in the result set based on the specified number of groups.

  • NTILE is often used in conjunction with the ORDER BY clause to divide the result set based on a specific column.

  • NTILE can be used to calculate percentiles by dividing the result set into 100 groups...read more

Add your answer

Q7. How do you check network teaming

Ans.

Network teaming can be checked using tools like ethtool, nmcli, and ifconfig.

  • Use ethtool to check the status of network interfaces and teaming configuration

  • Use nmcli to view and manage network teaming settings

  • Check the output of ifconfig to verify the network teaming configuration

Add your answer

Q8. How do you increase or reduce lvm

Ans.

To increase or reduce LVM, you can use the lvextend or lvreduce commands.

  • To increase LVM, use the lvextend command with the desired size parameter

  • To reduce LVM, use the lvreduce command with the desired size parameter

  • Make sure to resize the filesystem after increasing or reducing LVM using resize2fs or xfs_growfs

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

Interview Process at The Sleep Company

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

Top Interview Questions from Similar Companies

4.2
 • 667 Interview Questions
4.0
 • 570 Interview Questions
3.5
 • 438 Interview Questions
3.9
 • 366 Interview Questions
3.9
 • 177 Interview Questions
3.8
 • 157 Interview Questions
View all
Top Nsight Inc 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
75 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