GeekInterview.com
Series: Subject: Topic:

Programmatic Constructs Interview Questions

Showing Questions 1 - 14 of 14 Questions
Sort by: 
 | 

How to declare a variable with float (2 decimal places) in table creation in Oracle?

Asked By: shivigupta | Asked On: Oct 11th, 2012

How to declare a variable with float (2 decimal places) in table creation in Oracle?

Which is better to use, procedures or packages? If a procedure within a package is called, will it load the entire package into memory? What is the best way to handle it?

Asked By: hari | Asked On: Jul 21st, 2007

Answered by: vinay on: Aug 11th, 2011

use interfaces

Answered by: sameer rokde on: Aug 3rd, 2010

If the procedure doing one part of your procedure then you can always use that procedure into the packages, and if you want to do the singal opration you can use procedure only.

If you call procedure  from package, package get load into the memory. We can use pragma to overcome from same. 

What  are  the  differences  between  database  trigger and integrity constraints ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

A declarative integrity constraint is a statement about the database that is always true. A constraint applies to existing data in the table and any statement that manipulates the table. a  trigger  does  not  apply  to  data  loaded before the definition of the...

Answered by: Chankey007 on: Oct 25th, 2010

An integrity constraint defines a business rule for a table column which automatically takes care by Oracle internally. Intefrity Constraints are NOT NULL, UNIQUE, CHECK, PRIMARY KEY, FOREIGN KEY. ...

Answered by: samiksc on: Jan 19th, 2006

A trigger is a piece of code which gets automatically executed upon occurrence of an event. It may not be meant for enforcing integrity. For example you may want to save the user info as soon as he ma...

What is difference between procedures and functions ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

A function returns a value to the caller where as a procedure does not.

Answered by: RPush on: Aug 5th, 2010

Procedure executes as a part of PL/SQL block wherein Function invoked as part of expression.Function must have RETURN keyword in the header , which is not applicable for Procedure.Function must return...

Answered by: sameer rokde on: Aug 3rd, 2010

Procedure is to do specific task where as function is to compute values.
Procedure may or may not return value at all, but function must return value.
Function can be used in SQL statement but Procedure is not used.

Wht is the logic to find whether the entered input is a number or the character. How can we design this program using a procedure or the function

Asked By: srinivas22338 | Asked On: Feb 6th, 2006

Answered by: sriatit on: Oct 12th, 2009

You can check this by using translate function. If the return value is NULL then the input is a number else it  is character or alpha numeric.Ex:select ('abcd', '~0123456789', ...

Answered by: PratikshaD on: Jun 12th, 2009

You can use translate function.translate(,'~0123456789','~') will return null if the input is numeric. Not null if the input is alphanumeric.

What are the advantages of having a package ?

Asked By: Interview Candidate | Asked On: Aug 25th, 2005

Increased  functionality  (for  example,global  package  variables  can  be declared  and  used  by  any proecdure in the package) and performance (for example  all  objects  of  the package are parsed compiled, and loaded into...

Answered by: laxma823 on: Jul 25th, 2008

pakage having more advantages
1)Modularity
2)Easily application dision

Answered by: Pankaj Gauba on: Sep 13th, 2006

Main advantage is OVERLOADING of function and procedures

What is a procedure ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

A  procedure consist of a set of SQL and PL/SQL statements that are grouped together  as a unit to solve a specific problem or perform a set of related tasks.  

Answered by: Shubhra on: Sep 11th, 2007

Procedure is a named PL/SQL block and a reusable database object which can accept multiple arguments, execute PL/SQL statements, do exception handling and return multiple results. Procedures are stored and executed in the database.

What is a form trigger?

Asked By: Joyce | Asked On: Jul 20th, 2006

Answered by: hongynj on: Feb 28th, 2007

A forms trigger may do nothing more than change the focus to a new item or show a new canvas

What are the contents and components of supplied packages?

Asked By: sivaraman.n | Asked On: Apr 13th, 2006

What  are  the  different  types  of PL/SQL program units that can be defined and stored in Oracle database ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

Procedures and functions,packages and database triggers.  

What is a package ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

A  package  is a collection of related procedures, functions, variables and other package constructs together as a unit in the database.

What is database trigger ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

A database trigger is procedure (set of SQL  and PL/SQL statements) that is automatically  executed  as  a  result of an insert in,update to, or delete from a table.

What are the uses of database trigger ?

Asked By: Interview Candidate | Asked On: Sep 6th, 2004

Database  triggers  can  be  used  to automatic data generation, audit data modifications, enforce complex integrity constraints, and customize complex security authorizations.

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.