Interview Questions 2019

Oracle:

Rehire through Form
Dates on termination form ? How it impacts the back end table
Can we rehire employee without Final Process Date?
Enable Half day leave for associates
Restrict Maternity Leave only for female associates
Accrual and Carryover Formula ?
Annual Leave and Flood leave is there , which has to be included in accrual, how we will do.
Costing and Costing of Payment Difference
EIT and SIT Difference
Costing Types: Costed, Fixed Costed and Distributed
GL Accounting Flexfield
Payroll and Core HR tables
AME
Flexfield Qualifiers
Per periods of service
Retro Pay : If after running retropay, we have to not process the records of few retro records how to do that
Prepayment: If default method is check, can it be overrided via direct deposit
Prepayment: salary has to be distributed in 30% HDFC and 70% in ICICI, how to do that.
How to place a validation in case gross salary is less then any fixed value, and payroll user should be aware . Report or message(Formula Result)
Dynamic And Static Approvals in AME?

Arowana:

Prepayments what it does, payment status ?
Costing : What it does and transfer to GL ,
Types of Costing
Nacha Process, what it does Setup of from where it picks the file
Costing not happening correctly in GL, what could be the reason for that.
Assignment Costing something
Approval for after payroll prcoess

 

GFI

Global Deployment
Employee Number Generation
Security List Maint.
Input Value Validation, How, If in case we put validation still validation fail what could be the reason for that?
Costing
Context and Reference Field in DFF
SIT in SSHR Page and Approvals
Maternity leave Validation and LOV control
Retropay
If we process retropay, we want to delete 10 records after that? If we don’t want any record to be processed in payroll ever then?
Distributed Costing
Major Customizatio Done?
AME Setup

 

 

New Interview Questions

1. What is interface and conversion and what interface you developed explain complete process along with error handling part.
2. API name and table for element entry
3. How to do conversion process.
4. Inbound interface name and outbounf interface name that you worked on.
5. AOL basics like tables for value set and types of value sets and table for indepdent VS.
6. Pragmatic autonomous transaction.
7. SQL function for string
8. Cascading Decode statement.
9. Bulk collect with limit syntax and limitation .
10. The largest component you have ever worked on explain that.
11. Unix basics command for file access.
12. XML publisher reports registration steps.
13. Trigger
14. All base tables name for Oracle HRMS
15. Workflow tables.
16. Hint in SQL
17. Public and private API in Oracle
18. Ref cursor and usage of that.
19. Collection type variables.
20. Count(*) will generate no data found exception or not if conditions don’t match in where clause.
21. How to generate XML file from PLSQL package.
22. How to migrate template from one instance to other.
23. How to skip records from ctl file.
24. What will be status after awaiting for shipping in o2c.
25. How to submit request set from back end.
26. Profile objective creation and order of precedence at different level.
27. Ddl dml and command for SQL.
28. Max number of the columns in oracle tables?
29. Total attributes in table atnd what is Global attribute.
30. Total segments in table kff enabled table.
31. Total size of any object in oracle database .
32. What is AuthID in create or replace. Package.
33. Difference between procedure and Function.
34. INOUT parameters what is the purpose of nocopy with that?
35. What is lookups and what all are the tables for the same.
36. If emp is terminated then what will be the current employer flag in per_all_peope_f table.
37. When to use NOCOPY parameters in parameters.

1. How to swap to different column values in a table
2. What is pragma autonomous transaction
3. API for emo cretion
4. How to continue the interface process if any errors comes in between
5. Ame steps to create rule for salary proposal
6.table to get the salary info And table if no payroll module is implemented.
7. PTO and absence formula for grade rule n fast formula
8. If we want to roll back the element entry processed through the batch process how we will do it
9. what is Batch process
10. Setup for Core HR , Payroll and setup level definition and what it is like organization, business group and payroll
11. Organization hierarchy for implementation setup
12. Payroll full life cycle before payroll process and after payroll process

Difference between Valuesets and Lookups

Difference 1
Value sets can be attached to parameters of a concurrent program or to a DFF segments where as Lookups are attached only to the fields of a Form/Page

Difference 2
Lookups can be maintained by end users where as Value Sets are almost never maintained by end users, with the exception of GL Flexfield codes. Value sets are usually maintained by System Administrators.

Difference 3
Lookups can have translated values in different languages but not the values in the Value Sets

Difference 4
Value sets can contain values that are a result of an SQL Statement. Hence it is possible to make Value Set list of values dynamic.
On the contrary, Lookup Codes are Static list of values which can only be entered through Lookups Form.

Difference 5
We have several different types of value sets but not lookups.

PL SQL Interview Important Questions

PL/SQL–

1) Difference between union and union all in oracle ?

Answer –> Union all does not remove duplicates
— Union removes duplicate records

Both queries should have same columns.

Number of columns in each UNION query must match

Data types must match.

For large data set queries UNION might have performance issues. So use it very carefully.

Link –>  http://sqlandplsql.com/2012/06/22/difference-between-union-and-union-all-clause-oracle/

***********************************************************************************************************

2) What is Subquery in Oracle?

Answer –> http://www.techonthenet.com/oracle/subqueries.php

Subquery can be used in 3 location –>
— Where Clause —

SELECT *
FROM all_tables tabs
WHERE tabs.table_name IN (SELECT cols.table_name
FROM all_tab_columns cols
WHERE cols.column_name = ‘SUPPLIER_ID’);

** Limitation: Oracle allows up to 255 levels of subqueries in the WHERE clause.

— From –it is known as Inline views

SELECT suppliers.name, subquery1.total_amt
FROM suppliers,
(SELECT supplier_id, SUM(orders.amount) AS total_amt
FROM orders
GROUP BY supplier_id) subquery1
WHERE subquery1.supplier_id = suppliers.supplier_id;

** Oracle allows an unlimited number of subqueries in the FROM clause.

—SELECT CLAUSE–

SELECT tbls.owner, tbls.table_name,
(SELECT COUNT(column_name) AS total_columns
FROM all_tab_columns cols
WHERE cols.owner = tbls.owner
AND cols.table_name = tbls.table_name) subquery2
FROM all_tables tbls;

The trick to placing a subquery in the select clause is that the subquery must return a single value.
This is why an aggregate function such as SUM function, COUNT function, MIN function, or MAX function is commonly used in the subquery.

**********************************************************************************************************************************************

3) Usage of INSTR and SUBSTR in oracle?

select  INSTR(‘1234-abc’,’-‘) from dual;   –will find postion, for eg. in this case it will give 5

select SUBSTR(‘1234-abc’,1,5-1) from dual ;   — over here 5 -1 is the position of separator -1 ;

**********************************************************************************************************************************************
— Not answered Completely

4) USage of regexp_substr to split single row into multiple columns?

select regexp_substr(‘111*222*333’, ‘[^*]+’, 1, level) str
from dual
connect by level <= length(‘111*222*333’)-length(replace(‘111*222*333′,’*’))+1

http://www.oracle-developer.net/display.php?id=508

**********************************************************************************************************************************************

5) Use of Execute Immediate Statement –>

The EXECUTE IMMEDIATE statement prepares (parses) and immediately executes a dynamic SQL statement .

DECLARE
sql_stmt    VARCHAR2(200);

BEGIN
EXECUTE IMMEDIATE ‘CREATE TABLE bonus (id NUMBER, amt NUMBER)’;
sql_stmt := ‘INSERT INTO dept VALUES (:1, :2, :3)’;

—–

In a PL/SQL program, you can invoke static SQL without any special notation. What is static SQL ? Static SQL is :

Data Manipulation Language (DML) Statements (except EXPLAIN PLAN) : INSERT, UPDATE, DELETE
Transaction Control Language (TCL) Statements : COMMIT, ROLLBACK…
SQL Functions
SQL Pseudocolumns : ROWID, ROWNUM…
SQL Operators

As you can see, CREATE statements are not static SQL. To invoke them, you have to use dynamic SQL, via EXECUTE IMMEDIATE.

———————————
**********************************************************************************************************************************************
6) what are the compound symbols? 
–Answer:

:= assignment operator
.. range operator
|| concatenation operator
— single-line comment indicator

**********************************************************************************************************************************************
7) To DEbug and Test PL / SQL package –>

set serveroutput on
Begin
dbms_output.put_line(‘Hello Tester’);
End;
/

**********************************************************************************************************************************************

8) HOW TO SAVE YOUR QUERY AND RESULT IN THE TEXT FILE(working in SQLplus and SQL Developer): 

SPOOL C:\TEST_FILE.TXT
—QUERY
SPOOL OFF

**********************************************************************************************************************************************
9) Global temporary tables –>

********************************************************************************************************************************************
10)-– COALESCE   Function
The COALESCE function returns first not null expression among the arguments. Minimum 2 arguments required.

If all expressions are null then it returns null.

Syntax:-

COALESCE (expr_1,expr_2,…expr_n)

Examples :-

1. select COALESCE(null,null,null,10) from dual;

would return 10.

2. select COALESCE(null,null,null) from dual;

would return null.

**********************************************************************************************************************************************
—Why procedure can’t be used in SQL statement, whereas Function can be used ?

Answer ==

1) This is because Function must return a value, while procedure may or may not.
2) Also function can be used as an assignment statement, while Procedure can never be used as an assignment.

Function can be used as assignmnet statement.

http://www.club-oracle.com/threads/why-procedure-can-not-be-used-in-select-query.3193/

Primary vs Unique Candidate vs Composite Keys

Primary Key Unique Key 
Can be only one in a table Can be more than one unique key in one table.
It never allows null values Unique key can have null values
Primary Key is unique key identifier and can not be null and must be unique. It can’t be candidate key
Unique key can be null and may not be unique.
 All databases allow the definition of one, and only one, primary key per table.
Candidate Key Composite key
A candidate key is a column, or set of columns, in a table that can uniquely identify any database record without referring to any other data. Each table may have one or more candidate keys, but one candidate key is special, and it is called the primary key. This is usually the best among the candidate keys.     When a key is composed of more than one column,
it is known as a composite key.

Difference between TRUNCATE, DELETE and DROP commands

Delete — The DELETE command is used to remove some rows from a table.
using where clause.
Note that this operation will cause all DELETE triggers on the table to fire.

TRUNCATE removes all rows from a table.
The operation cannot be rolled back ,
no triggers will be fired.
As such, TRUNCATE is faster and doesn’t use as much undo space as a DELETE.
Reason –>
TRUNCATE is much faster than DELETE.

Reason:When you type DELETE.all the data get copied into the Rollback Table space first.
then delete operation get performed.performed. That’s why when you type ROLLBACK after deleting a table ,
you can get back the data(The system get it for you from the Rollback Table space).
All this process take time.But when you type TRUNCATE,it removes data directly without copying it into the Rollback Table space.
That’s why TRUNCATE is faster.Once you Truncate you can’t get back the data.
)
Drop
The DROP command removes a table from the database
All the tables’ rows, indexes and privileges will also be removed.
No DML triggers will be fired.
The operation cannot be rolled back.

DROP and TRUNCATE are DDL commands
whereas DELETE is a DML command.
Therefore DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations cannot be rolled back.
DML can be rolled out whereas DDL can’t be rolled out.