PA (Premium Assistance) : Rowid Data Types

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Rowid Data Types

Every row stored in the database has an address. Oracle Database uses a ROWID data type to
store the address (rowid) of every row in the database. Rowids fall into the following categories:

Physical rowids store the addresses of rows in heap-organized tables, table clusters, and table and
index partitions.
Logical rowids store the addresses of rows in index-organized tables.
Foreign rowids are identifiers in foreign tables, such as DB2 tables accessed through a gateway.
They are not standard Oracle Database rowids.

PA (Premium Assistance) If you qualify, the government will send


advance payment directly to your insurance provider, lowering your monthly costs.

What are the means of values of: new and: old in the trigger?
These two: new and: old are use in database triggers. These are basically use for referencing the trigger
value by using triggers. For example we want to update anything in table and this table have database
trigger on After Update then we use these two keywords for updating the values again this table.
What is the Mutating in the trigger?
The mutating will occur when in Oracle when the table that originally fired the triggering event is being
accessed in the body of the trigger code, directly or implicitly in a procedure, or in a nested trigger called
from the trigger body. This is because the table is in middle of a transaction, and referencing the same
table again in the middle of the updating action causes the trigger to mutate.
Can we write a trigger for view?
Yes we can write a trigger on view by using key word instead of but did not use Before or After option on
trigger.
Can we create a view on another view?
Yes we can create a view on another view.
What are the advantages of view?
1- Restrict the data and column s of the base tables.
2- Use complex quires easy and show the data of complex quires.
3- Make different views according to requirement on many on table.
4- We can hide business rules by using view.
What are function and how many types of functions?
Functions or user defined function are set of SQL/PLSQL code that are store in database and return the
value. In function some data is manipulating by using some statement then return a specific value.
What is the difference between row level and Table level triggers?
Table level trigger are fire at one time but row level trigger fire on every row or on any transaction in the
table.
What is the difference between Database triggers and Form level triggers?
Database trigger are written in database directly and fire on behalf of any transaction like Insert, Update
and delete on table automatically. On the other hand we form level trigger are use in forms and fire on any
level like item level, row level or on block level on requirement of application. Main difference in database
trigger and form level triggers is that database trigger fire automatically and form level trigger fire on user or
application requirement.
What is the difference between BEFORE and AFTER in Database Triggers?
BEFORE triggers are usually used when validation needs to take place before accepting the change. They
run before any change is made to the database. Lets say you run a database for a bank. You have a table
accounts and a table transactions. If a user makes a withdrawal from his account, you would want to make
sure that the user has enough credits in his account for his withdrawal. The BEFORE trigger will allow to do
that and prevent the row from being inserted in transactions if the balance in accounts is not enough.
AFTER triggers are usually used when information needs to be updated in a separate table due to a
change. They run after changes have been made to the database (not necessarily committed). Lets go
back to our back example. After a successful transaction, you would want balance to be updated in the
accounts table. An AFTER trigger will allow you to do exactly that.
What is the advantage of stored procedure over the database triggers?
Store procedure are compile one time and stay in database and wait for calling but on the other hand
database trigger fire every time when we have to perfume any change in database.
What are cascading of triggers?
Cascading of trigger means if we insert data in one table and that table have trigger on it then trigger fire.
And in this trigger there is another table that we are using for insert the data in it and this table has also
trigger on it then this trigger also fire. This is called cascading of triggers.
What is Pseudo column?
Pseudo columns are database columns that are using for different purposes in oracle database like
ROWNUM, ROWID, SYSDATE, UID, USER, ORA_ROWSCN, SYSTIMESTAMP,
What is Dual and where it can be use?
Dual is a database table owner is sys and reside in data dictionary. It have only one column name DUMMY
and one data X. It is normally use for select the values of Pseudo columns.
Can we insert, update, delete, alter and drop DUAL table?
Yes we can Insert, update, delete alter and also drop Dual table in oracle.
If we create a table with name DUAL it can be work same as DUAL?
Yes we create table with same name of DUAL and also it will work like same of dual table.
What are group functions and how many types of group function?
Group functions return the single result on based on many rows. Like count, sum, min, max, avg first, last
these functions return one row result based on many rows.

GL- General Ledger

Table Name Description


GL_CODE_COMBINATIONS Stores valid account combinations
GL_SETS_OF_BOOKS Stores information about the sets of books
GL_IMPORT_REFERENCES Stores individual transactions from subledgers
GL_DAILY_RATES Stores the daily conversion rates for foreign currency Transactions
GL_PERIODS Stores information about the accounting periods
GL_JE_HEADERS Stores journal entries
GL_JE_LINES Stores the journal entry lines that you enter in the Enter Journals form
GL_JE_BATCHES Stores journal entry batches
GL_BALANCES Stores actual, budget, and encumbrance balances for detail and summary
accounts
GL_BUDGETS Stores Budget definitions
GL_INTERFACE Import journal entry batches
GL_BUDGET_INTERFACE Upload budget data from external sources
GL_DAILY_RATES_INTERFACE Import daily conversion rates

You might also like