i
HCLTech
Filter interviews by
I applied via Approached by Company and was interviewed in Sep 2023. There were 3 interview rounds.
Window functions in SQL are used to perform calculations across a set of table rows related to the current row.
Window functions are used to calculate values based on a set of rows related to the current row.
They allow you to perform calculations without grouping the rows into a single output row.
Examples of window functions include ROW_NUMBER(), RANK(), and LAG().
Packages in PL/SQL are used to group related procedures, functions, variables, and other PL/SQL constructs together for better organization and security.
Packages help in modularizing code for easier maintenance and debugging
They provide encapsulation and hide implementation details
Packages can contain multiple procedures, functions, variables, cursors, and exceptions
They improve performance by reducing network traffic
E...
I applied via Referral and was interviewed before Jun 2023. There was 1 interview round.
Oracle pl sql developer
What people are saying about HCLTech
I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.
Use a self-join query to delete duplicates from the same table.
Use a self-join query to identify the duplicate records based on a unique identifier column.
Delete the duplicate records using the DELETE statement with the self-join condition.
Query to display 5th max salary in a table
Use the RANK() function to assign a rank to each salary
Filter the results to only show the row with rank 5
Order the salaries in descending order to get the 5th max salary
A cursor is a pointer to a result set for a SQL query. It allows you to iterate through the rows of the result set.
Cursors are used in PL/SQL to process individual rows returned by a query.
Attributes of a cursor include %NOTFOUND, %FOUND, %ROWCOUNT, and %ISOPEN.
Example: OPEN cursor_name; FETCH cursor_name INTO variable; CLOSE cursor_name;
Exception handling is a mechanism to handle errors or unexpected events in a program.
Syntax: BEGIN -- code block EXCEPTION -- exception handling block END;
Exceptions can be predefined or user-defined
Common predefined exceptions include NO_DATA_FOUND, TOO_MANY_ROWS, etc.
User-defined exceptions can be declared using the EXCEPTION keyword
Performance tuning is the process of optimizing the speed and efficiency of a system or application.
Identifying and resolving bottlenecks in the system
Optimizing SQL queries and database design
Improving code efficiency and reducing resource usage
Monitoring system performance and making adjustments as needed
Merge statement in PL/SQL combines insert and update operations based on a condition.
Use MERGE INTO statement followed by target table name
Specify USING clause with source table or subquery
Define ON condition to match rows for update or insert
Use WHEN MATCHED THEN UPDATE SET for update operation
Use WHEN NOT MATCHED THEN INSERT VALUES for insert operation
Triggers are PL/SQL blocks that are automatically executed when certain events occur on a table.
Triggers can be used to enforce business rules, audit changes, or maintain data integrity.
Syntax: CREATE OR REPLACE TRIGGER trigger_name BEFORE/AFTER INSERT/UPDATE/DELETE ON table_name FOR EACH ROW BEGIN -- trigger logic here END;
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Developed a PL/SQL project for managing inventory and sales data in a retail store.
Designed database tables to store product information, sales transactions, and customer details.
Implemented PL/SQL procedures and functions for adding, updating, and querying data.
Created triggers to enforce business rules and maintain data integrity.
Developed reports using PL/SQL queries to analyze sales performance and inventory levels
I work on performance optimization by analyzing query execution plans, indexing, and code refactoring.
Analyzing query execution plans to identify bottlenecks
Creating appropriate indexes to improve query performance
Refactoring code to optimize resource usage
Using tools like Explain Plan and SQL Tuning Advisor
Factorial of a number is the product of all positive integers up to that number.
To calculate factorial of a number, multiply all positive integers up to that number.
Factorial of 0 is 1.
Example: Factorial of 5 is 5*4*3*2*1 = 120.
Modelling of schema involves designing the structure of a database to organize and represent data.
Identify entities and their relationships
Define attributes for each entity
Establish primary and foreign keys
Normalize the schema to reduce redundancy
Consider performance and scalability
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
A view is a virtual table created by a query. It does not store data itself but displays data from one or more tables. Views can be used for querying data as if it were a table.
Views are created using a SELECT statement with optional joins, WHERE clauses, etc.
Views can simplify complex queries by pre-defining joins and filters.
Views do not store data themselves, they display data from underlying tables.
Views can be upd...
A synonym is an alternative name for a table, view, sequence, or other database object.
Synonyms can be used to provide a different name for an object, making it easier to reference.
They can be created to reference objects in other schemas or databases.
Synonyms can be public (accessible to all users) or private (accessible only to the creator).
A sequence is a database object in Oracle that generates unique numbers in a specified order.
Used to generate unique numbers for primary key columns
Can be used in INSERT statements to automatically generate values
Can be defined to increment by a specific value and start at a specific number
Procedures are named PL/SQL blocks that perform a specific task. They can accept parameters and return values.
Procedures are stored in the database and can be called by other PL/SQL blocks or applications.
They can accept input parameters to perform operations and can also return output values.
Procedures help in modularizing code and promoting reusability.
Example: CREATE PROCEDURE calculate_salary (emp_id IN NUMBER) IS
Procedures do not return any value while functions return a value.
Procedures are used to perform an action, while functions are used to calculate and return a value.
Procedures do not have a return statement, while functions must have a return statement.
Functions can be called from SQL queries, while procedures cannot be called directly in SQL queries.
Partitions in PL/SQL are used to divide a table into smaller, more manageable pieces.
Partitions help improve query performance by allowing data to be stored in separate segments based on a specified criteria.
Common partitioning methods include range, hash, list, and composite partitioning.
Example: Partitioning a sales table by month can improve query performance when searching for sales data within a specific time fram
I applied via Naukri.com and was interviewed in Aug 2023. There were 4 interview rounds.
It is little bit easy
2 coding question in python
based on 3 interviews
Interview experience
based on 9 reviews
Rating in categories
Software Engineer
23k
salaries
| ₹1.7 L/yr - ₹8 L/yr |
Technical Lead
21.1k
salaries
| ₹7 L/yr - ₹28 L/yr |
Senior Software Engineer
15.7k
salaries
| ₹4 L/yr - ₹16.5 L/yr |
Lead Engineer
14.9k
salaries
| ₹4.2 L/yr - ₹14 L/yr |
Analyst
14.3k
salaries
| ₹0.8 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant