PL/SQL BLOCK
The pl/sql block contains the following section:-------The DECLARE section.-----The Master BEGIN and END section that contains the EXCEPTION section.The declare section contains declaration of memory variables, constants, cursors etc. The begin section contains sql executable statements and pl/sql executable statements. The exception section contains code to handle errors that may arise during the execution of the code block. The end declares the end of pl/sql block.A bit about it's working. When you typed out the pl/sql block for execution. It is sent to the pl/sql engine, where procedural statements are executed; and sql statements are sent to the sql executor in the oracle engine. Since pl/sql engine resides in the oracle engine, the codes executes smoothly and efficiently.
PL/SQL DATA-TYPE
This is easy since it includes almost all the data types which u have used in sql such as date, varchar, number, char etc etc... Some of the attributes such as %TYPE is also used. This attribute automatically takes in the default data type of the sql table from which u have passed the query. We will discuss this later.Remember in pl/sql a variable name must begin with a character and can be followed by maximum of 29 other characters. Reserved words can't be used unless enclosed within double quotes. Variables must be separated from each other by at least one space or by a punctuation mark. You can assign values of operator using := operator. I won't discuss about logical comparisons operators such as <, > , >=, NOT, TRUE, AND, OR, NULL etc since they r quite easy to understand.
HOW TO DISPLAY MESSAGES ON SCREEN ---DBMS_OUTPUT :
is a package that includes a number of procedure and functions that accumulate information in a buffer so that it can be retrieved later. These functions can also be used to display messages to the user.PUT_LINE : Put a piece of information in the package buffer followed by an end-of-line marker. It can also be used to display message to the user. Put_line expects a single parameter of character data type. If used to display a message, it is the message 'string'.EG: dbms_output.put_line(x);REMEMBER:
To display messages to the user the SERVEROUTPUT should be set to ON. SERVEROUTPUT is a sql*plus environment parameter that displays the information pased as a parameter to the PUT_LINE function.EG: SET SERVEROUTPUT ONA bit about comments. A comment can have 2 forms i.e.-- The comment line begins with a double hyphen (--). The entire line will be treated as a comment.-- The C style comment such as /* i am a comment */
CONDITIONAL CONTROL AND ITERATIVE CONTROL AND SEQUENTIAL CONTROLIF and else.....IF --Condition THEN--ActionELSEIF --Condition THEN--ActionELSE--ActionEND IF;
SIMPLE LOOPloop--
Sequence of statements;end loop;the loop ends when u use EXIT WHEN statement --conditionWHILE LOOPWhile --conditionloop--sequence of statementsend loop;FOR LOOPFOR i in 1..10loop--sequence of statementsend loop;GOTO (sequential control)GOTO X;<<>>
EXAMPLES--ADDITIONdeclarea number;b number;c number;begina:=&a;b:=&b;c:=a+b; dbms_output.put_line('Sum of ' a ' and ' b ' is ' c);
Here & is used to take user input at runtime.....
--SUM OF 100 NUMBERS
Declarea number;
s1 number default 0;
Begin
a:=1;
loops1:=s1+a;
exit
when (a=100);
a:=a+1;end loop;
dbms_output.put_line('Sum between 1 to 100 is 's1);
End;
--SUM OF odd NUMBERS USING USER INPUT...
for loop
declaren number;
sum1 number default 0;
endvalue number;
begin
endvalue:=&endvalue;
n:=1;for n in 1.. endvalueloopif mod(n,2)=1
then
sum1:=sum1+n;
end ifend loop;
dbms_output.put_line('sum = ' sum1);
end;
--SUM OF 100 ODD NUMBER .. WHILE LOOP
declaren number;
endvalue number;
sum1 number
default 0;
beginendvalue:=&endvalue;
n:=1;while (n < endvalue)
loopsum1:=sum1+n;
n:=n+2;end loop;
dbms_output.put_line('Sum of odd numbers between 1 and ' endvalue ' is ' sum1);
end;
--CALCULATION OF NET SALARY
declare
ename varchar2(15);
basic number;
da number;
hra number;
pf number;
netsalary number;
begin ename:=&ename;
basic:=&basic;
da:=basic * (41/100);
hra:=basic * (15/100);
if (basic <>= 3000 and basic <= 5000)
then
pf:=basic * (7/100);
elsif (basic >= 5000 and basic <= 8000)
then
pf:=basic * (8/100);
elsepf:=basic * (10/100);
end if;
netsalary:=basic + da + hra -pf;
dbms_output.put_line('Employee name : ' ename);
dbms_output.put_line('Providend Fund : ' pf);
dbms_output.put_line('Net salary : ' netsalary);
end;
--MAXIMUM OF 3 NUMBERS
Declare
a number;
b number;
c number;
d number;
Begin
dbms_output.put_line('Enter a:');
a:=&a;
dbms_output.put_line('Enter b:');
b:=&b;dbms_output.put_line('Enter c:');
c:=&b;if (a>b) and (a>c)
then
dbms_output.putline('A is Maximum');
elsif (b>a) and (b>c)
then
dbms_output.putline('B is Maximum');
else
dbms_output.putline('C is Maximum');
end if;
End;
--QUERY EXAMPLE--IS SMITH EARNING ENOUGH
declare
s1 emp.sal %type;
beginselect sal into s1 from empwhere ename = 'SMITH';
if(no_data_found)
then
raise_application_error(20001,'smith is not present');
end if;
if(s1 > 10000)
then
raise_application_error(20002,'smith is earning enough');
end if;
update emp set sal=sal + 500where ename='SMITH';
end;
--PRIME NO OR NOT
DECLARE
no NUMBER (3) := &no;
a NUMBER (4);
b NUMBER (2);
BEGIN
FOR i IN 2..no - 1LOOPa := no MOD i;
IF a = 0
THEN
GOTO out;
END IF;
END LOOP;
<>IF a = 1
THEN
DBMS_OUTPUT.PUT_LINE (no ' is a prime number');
ELSE
DBMS_OUTPUT.PUT_LINE (no ' is not a prime number');
END IF;
END;
--SIMPLE EXAMPLE OF LOOP STATEMENT I.E.
EXIT WHENDeclarea number:= 100;
begin
loopa := a+25;
exit when a=250;end loop;
dbms_output.put_line (to_Char(a));
end;
--EXAMPLE OF WHILE LOOP
Declare
i number:=0;
j number:= 0;
begin
while i <=100
loopj := j+1;i := i +2;
end loop;
dbms_output.put_line(to_char(i));
end;
--EXAMPLE OF FOR LOOP
Declare
beginfor i in 1..10loop
dbms_output.put_line(to_char(i));
end loop;
end;--
SEQUENTIAL CONTROL GOTO
declare--takes the default datatype of the column of the table pricecost price.minprice%type;
begin
select stdprice into cost from price where prodial in (Select prodid from product where prodese = "shampoo");
if cost > 7000 thengoto Upd;end if;<<>>Update price set minprice = 6999 where prodid=111;end;
--CALCULATE THE AREA OF A CIRCLE FOR A VALUE OF RADIUS VARYING FROM 3 TO 7. STORE THE RADIUS AND THE CORRESPONDING VALUES OF CALCULATED AREA IN A TABLE AREAS.
Declare
pi constant number(4,2) := 3.14;
radius number(5);
area number(14,2);
Beginradius := 3;
While radius <=7Looparea := pi* power(radius,2);
Insert into areas values (radius, area);
radius:= radius+1;
end loop;
end;
--REVERSING A NUMBER 5639 TO 9365
Declare
given_number varchar(5) := '5639';
str_length number(2);inverted_number varchar(5);
Begin
str_length := length(given_number);
For cntr in reverse 1..str_lengthloopinverted_number := inverted_number substr(given_number, cntr, 1);
end loop;
dbms_output.put_line('The Given no is ' given_number);
dbms_output.put_line('The inverted number is ' inverted_number);
end;
Sunday, December 7, 2008
Monday, November 24, 2008
Java Questions
Question: What is transient variable?
Answer: Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.
Question: Name the containers which uses Border Layout as their default layout?
Answer: Containers which uses Border Layout as their default are: window, Frame and Dialog classes.
Question: What do you understand by Synchronization?
Answer: Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object's value. Synchronization prevents such type of data corruption.E.g. Synchronizing a function:public synchronized void Method1 () { // Appropriate method-related code. }E.g. Synchronizing a block of code inside a function:public myFunction (){ synchronized (this) { // Synchronized code here. }}
Question: What is Collection API?
Answer: The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.Example of interfaces: Collection, Set, List and Map.
Question: Is Iterator a Class or Interface? What is its use?
Answer: Iterator is an interface which is used to step through the elements of a Collection.
Question: What is similarities/difference between an Abstract class and Interface?Answer: Differences are as follows:
Interfaces provide a form of multiple inheritance. A class can extend only one other class.
Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static methods, etc.
A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class.
Interfaces are slow as it requires extra indirection to to find corresponding method in in the actual class. Abstract classes are fast.
Similarities:
Neither Abstract classes or Interface can be instantiated. Question: How to define an Abstract class?Answer: A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. Example of Abstract class:abstract class testAbstractClass { protected String myString; public String getMyString() { return myString; } public abstract string anyAbstractFunction();}
Question: How to define an Interface?
Answer: In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.Emaple of Interface:public interface sampleInterface { public void functionOne(); public long CONSTANT_ONE = 1000; }
Question: Explain the user defined Exceptions?
Answer: User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same way as normal exceptions. Example:class myCustomException extends Exception { // The class simply has to exist to be an exception }
Question: Explain the new Features of JDBC 2.0 Core API?
Answer: The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. New Features in JDBC 2.0 Core API:
Scrollable result sets- using new methods in the ResultSet interface allows programmatically move the to particular row or to a position relative to its current position
JDBC 2.0 Core API provides the Batch Updates functionality to the java applications.
Java applications can now use the ResultSet.updateXXX methods.
New data types - interfaces mapping the SQL3 data types
Custom mapping of user-defined types (UTDs)
Miscellaneous features, including performance hints, the use of character streams, full precision for java.math.BigDecimal values, additional security, and support for time zones in date, time, and timestamp values.
Question: Explain garbage collection?
Answer: Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program. Every class inherits finalize() method from java.lang.Object, the finalize() method is called by garbage collector when it determines no more references to the object exists. In Java, it is good idea to explicitly assign null into a variable when no more in use. I Java on calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected.
Question: How you can force the garbage collection?
Answer: Garbage collection automatic process and can't be forced.
Question: What is OOPS?Answer: OOP is the common abbreviation for Object-Oriented Programming.
Question: Describe the principles of OOPS.
Answer: There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.
Question: Explain the Encapsulation principle.
Answer: Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.
Question: Explain the Inheritance principle.
Answer: Inheritance is the process by which one object acquires the properties of another object.
Question: Explain the Polymorphism principle.
Answer: The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as "one interface, multiple methods".
Question: Explain the different forms of Polymorphism.
Answer: From a practical programming viewpoint, polymorphism exists in three distinct forms in Java:
Method overloading
Method overriding through inheritance
Method overriding through the Java interface
Question: What are Access Specifiers available in Java?
Answer: Access specifiers are keywords that determines the type of access to the member of a class. These are:
Public
Protected
Private
Defaults
Question: Describe the wrapper classes in Java.
Answer: Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type.
Following table lists the primitive types and the corresponding wrapper classes:
Primitive
Wrapper
boolean
java.lang.Boolean
byte
java.lang.Byte
char
java.lang.Character
double
java.lang.Double
float
java.lang.Float
int
java.lang.Integer
long
java.lang.Long
short
java.lang.Short
void
java.lang.Void
Question: Read the following program:
public class test {public static void main(String [] args) { int x = 3; int y = 1; if (x = y) System.out.println("Not equal"); else System.out.println("Equal"); }}
What is the result? A. The output is “Equal” B. The output in “Not Equal” C. An error at " if (x = y)" causes compilation to fall. D. The program executes but no output is show on console.Answer: CQuestion: what is the class variables ?Answer: When we create a number of objects of the same class, then each object will share a common copy of variables. That means that there is only one copy per class, no matter how many objects are created from it. Class variables or static variables are declared with the static keyword in a class, but mind it that it should be declared outside outside a class. These variables are stored in static memory. Class variables are mostly used for constants, variable that never change its initial value. Static variables are always called by the class name. This variable is created when the program starts i.e. it is created before the instance is created of class by using new operator and gets destroyed when the programs stops. The scope of the class variable is same a instance variable. The class variable can be defined anywhere at class level with the keyword static. It initial value is same as instance variable. When the class variable is defined as int then it's initial value is by default zero, when declared boolean its default value is false and null for object references. Class variables are associated with the class, rather than with any object.
Question: What is the difference between the instanceof and getclass, these two are same or not ?
Answer: instanceof is a operator, not a function while getClass is a method of java.lang.Object class. Consider a condition where we use if(o.getClass().getName().equals("java.lang.Math")){ }This method only checks if the classname we have passed is equal to java.lang.Math. The class java.lang.Math is loaded by the bootstrap ClassLoader. This class is an abstract class.This class loader is responsible for loading classes. Every Class object contains a reference to the ClassLoader that defines. getClass() method returns the runtime class of an object. It fetches the java instance of the given fully qualified type name. The code we have written is not necessary, because we should not compare getClass.getName(). The reason behind it is that if the two different class loaders load the same class but for the JVM, it will consider both classes as different classes so, we can't compare their names. It can only gives the implementing class but can't compare a interface, but instanceof operator can. The instanceof operator compares an object to a specified type. We can use it to test if an object is an instance of a class, an instance of a subclass, or an instance of a class that implements a particular interface. We should try to use instanceof operator in place of getClass() method. Remember instanceof opeator and getClass are not same. Try this example, it will help you to better understand the difference between the two. Interface one{}Class Two implements one {}Class Three implements one {}public class Test {public static void main(String args[]) {one test1 = new Two();one test2 = new Three();System.out.println(test1 instanceof one); //trueSystem.out.println(test2 instanceof one); //trueSystem.out.println(Test.getClass().equals(test2.getClass())); //false}
Answer: Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.
Question: Name the containers which uses Border Layout as their default layout?
Answer: Containers which uses Border Layout as their default are: window, Frame and Dialog classes.
Question: What do you understand by Synchronization?
Answer: Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object's value. Synchronization prevents such type of data corruption.E.g. Synchronizing a function:public synchronized void Method1 () { // Appropriate method-related code. }E.g. Synchronizing a block of code inside a function:public myFunction (){ synchronized (this) { // Synchronized code here. }}
Question: What is Collection API?
Answer: The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.Example of interfaces: Collection, Set, List and Map.
Question: Is Iterator a Class or Interface? What is its use?
Answer: Iterator is an interface which is used to step through the elements of a Collection.
Question: What is similarities/difference between an Abstract class and Interface?Answer: Differences are as follows:
Interfaces provide a form of multiple inheritance. A class can extend only one other class.
Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static methods, etc.
A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class.
Interfaces are slow as it requires extra indirection to to find corresponding method in in the actual class. Abstract classes are fast.
Similarities:
Neither Abstract classes or Interface can be instantiated. Question: How to define an Abstract class?Answer: A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. Example of Abstract class:abstract class testAbstractClass { protected String myString; public String getMyString() { return myString; } public abstract string anyAbstractFunction();}
Question: How to define an Interface?
Answer: In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.Emaple of Interface:public interface sampleInterface { public void functionOne(); public long CONSTANT_ONE = 1000; }
Question: Explain the user defined Exceptions?
Answer: User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same way as normal exceptions. Example:class myCustomException extends Exception { // The class simply has to exist to be an exception }
Question: Explain the new Features of JDBC 2.0 Core API?
Answer: The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. New Features in JDBC 2.0 Core API:
Scrollable result sets- using new methods in the ResultSet interface allows programmatically move the to particular row or to a position relative to its current position
JDBC 2.0 Core API provides the Batch Updates functionality to the java applications.
Java applications can now use the ResultSet.updateXXX methods.
New data types - interfaces mapping the SQL3 data types
Custom mapping of user-defined types (UTDs)
Miscellaneous features, including performance hints, the use of character streams, full precision for java.math.BigDecimal values, additional security, and support for time zones in date, time, and timestamp values.
Question: Explain garbage collection?
Answer: Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program. Every class inherits finalize() method from java.lang.Object, the finalize() method is called by garbage collector when it determines no more references to the object exists. In Java, it is good idea to explicitly assign null into a variable when no more in use. I Java on calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected.
Question: How you can force the garbage collection?
Answer: Garbage collection automatic process and can't be forced.
Question: What is OOPS?Answer: OOP is the common abbreviation for Object-Oriented Programming.
Question: Describe the principles of OOPS.
Answer: There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.
Question: Explain the Encapsulation principle.
Answer: Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.
Question: Explain the Inheritance principle.
Answer: Inheritance is the process by which one object acquires the properties of another object.
Question: Explain the Polymorphism principle.
Answer: The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as "one interface, multiple methods".
Question: Explain the different forms of Polymorphism.
Answer: From a practical programming viewpoint, polymorphism exists in three distinct forms in Java:
Method overloading
Method overriding through inheritance
Method overriding through the Java interface
Question: What are Access Specifiers available in Java?
Answer: Access specifiers are keywords that determines the type of access to the member of a class. These are:
Public
Protected
Private
Defaults
Question: Describe the wrapper classes in Java.
Answer: Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type.
Following table lists the primitive types and the corresponding wrapper classes:
Primitive
Wrapper
boolean
java.lang.Boolean
byte
java.lang.Byte
char
java.lang.Character
double
java.lang.Double
float
java.lang.Float
int
java.lang.Integer
long
java.lang.Long
short
java.lang.Short
void
java.lang.Void
Question: Read the following program:
public class test {public static void main(String [] args) { int x = 3; int y = 1; if (x = y) System.out.println("Not equal"); else System.out.println("Equal"); }}
What is the result? A. The output is “Equal” B. The output in “Not Equal” C. An error at " if (x = y)" causes compilation to fall. D. The program executes but no output is show on console.Answer: CQuestion: what is the class variables ?Answer: When we create a number of objects of the same class, then each object will share a common copy of variables. That means that there is only one copy per class, no matter how many objects are created from it. Class variables or static variables are declared with the static keyword in a class, but mind it that it should be declared outside outside a class. These variables are stored in static memory. Class variables are mostly used for constants, variable that never change its initial value. Static variables are always called by the class name. This variable is created when the program starts i.e. it is created before the instance is created of class by using new operator and gets destroyed when the programs stops. The scope of the class variable is same a instance variable. The class variable can be defined anywhere at class level with the keyword static. It initial value is same as instance variable. When the class variable is defined as int then it's initial value is by default zero, when declared boolean its default value is false and null for object references. Class variables are associated with the class, rather than with any object.
Question: What is the difference between the instanceof and getclass, these two are same or not ?
Answer: instanceof is a operator, not a function while getClass is a method of java.lang.Object class. Consider a condition where we use if(o.getClass().getName().equals("java.lang.Math")){ }This method only checks if the classname we have passed is equal to java.lang.Math. The class java.lang.Math is loaded by the bootstrap ClassLoader. This class is an abstract class.This class loader is responsible for loading classes. Every Class object contains a reference to the ClassLoader that defines. getClass() method returns the runtime class of an object. It fetches the java instance of the given fully qualified type name. The code we have written is not necessary, because we should not compare getClass.getName(). The reason behind it is that if the two different class loaders load the same class but for the JVM, it will consider both classes as different classes so, we can't compare their names. It can only gives the implementing class but can't compare a interface, but instanceof operator can. The instanceof operator compares an object to a specified type. We can use it to test if an object is an instance of a class, an instance of a subclass, or an instance of a class that implements a particular interface. We should try to use instanceof operator in place of getClass() method. Remember instanceof opeator and getClass are not same. Try this example, it will help you to better understand the difference between the two. Interface one{}Class Two implements one {}Class Three implements one {}public class Test {public static void main(String args[]) {one test1 = new Two();one test2 = new Three();System.out.println(test1 instanceof one); //trueSystem.out.println(test2 instanceof one); //trueSystem.out.println(Test.getClass().equals(test2.getClass())); //false}
Saturday, November 22, 2008
Sql Questions for campus
. how to write a query to unsort while retrieving the data. it should be niether in ascending nor descending
Comments: 1 Read/Add Answers
Last Update: February 17, 2007 By Harsh Athalye
2. How do you delete duplicate row from oracle table that does not have any primary key field?
Comments: 2 Read/Add Answers
Last Update: February 07, 2007 By Jayanth Saimani
3. What is SQL injection? What are the uses of it?
Comments: 3 Read/Add Answers
Last Update: January 24, 2007 By Lakshaman
4. can we delete master records from the parent table ? if yes justify
Comments: 2 Read/Add Answers
Last Update: February 27, 2007 By SHAMIK
5. How to generate 1...N (sequence Numbers) without using the sequence concept in SQL?
Comments: 5 Read/Add Answers
Last Update: February 06, 2007 By kaledhananjay
6. Write a query to find the list of employees whos age is greater than 30 or so given a date of birth colu
Comments: 4 Read/Add Answers
Last Update: February 12, 2007 By ggk.krishna
7. how to hide the code in procedures,packages?
Comments: 3 Read/Add Answers
Last Update: February 13, 2007 By vavasudevan
8. How many null values does a column accept if it is declared as a unique key?
Comments: 14 Read/Add Answers
Last Update: January 17, 2007 By bibhu
9. What is the main use of FOREIGN KEY?
Comments: 14 Read/Add Answers
Last Update: February 14, 2007 By abc
10. What is oracle hint? how do we use hints in SQL for the optimization of the query?
Comments: 1 Read/Add Answers
Last Update: December 05, 2006 By John Thomas Ambadan
11. What is the basic difference in MySQL & Stored SQL?
Comments: 1 Read/Add Answers
Last Update: November 28, 2006 By aa
12. How many trigger we can create on a table? How many column we can create in a table?
Comments: 6 Read/Add Answers
Last Update: February 05, 2007 By Atul Trikha
13. How do you find the number of rows in a table?
Comments: 9 Read/Add Answers
Last Update: February 06, 2007 By manohar
14. Difference between Cluster and Non-cluster index?
Comments: 2 Read/Add Answers
Last Update: December 07, 2006 By Rajesh Varma
15. What is a table called, if it does not have neither Cluster nor Non-cluster Index?
Comments: 1 Read/Add Answers
Last Update: October 19, 2006 By Jerrin
16. What de-normalization and when do you do it?
Comments: 8 Read/Add Answers
Last Update: February 06, 2007 By sivanesh.a
17. How do you know which index a table is using?
Comments: 2 Read/Add Answers
Last Update: November 12, 2006 By Nigam
18. How could i delete the distinct name from the table. the rest record would be available as it is in the
Comments: 2 Read/Add Answers
Last Update: January 09, 2007 By preethi
19. How to tune the following sql in order that the performance improve the query is SELECT DISTINCTA.BUSINESS_UNIT
Comments: 3 Read/Add Answers
Last Update: October 12, 2006 By zskhan
20. How do you subtract two columns in oracle database, two columns are in data format.Example : inserttime
Comments: 2 Read/Add Answers
Last Update: September 26, 2006 By condemnity
21. It is also mentioned that column aliases cannot be used in the WHERE clause, then how did this query
Comments: 3 Read/Add Answers
Last Update: November 02, 2006 By Hitesh
22. 1. Why is it so that the given query worked :"select * from (select rownum rnum,a.* from emp a) where
Comments: 1 Read/Add Answers
Last Update: October 03, 2006 By adarsh_sp
23. Which is more efficient('WHERE" or "HAVING") in SQL ?
Comments: 6 Read/Add Answers
Last Update: December 22, 2006 By rajneeshbajwa
24. What is the queary for Non equal joints ,self joints?
Comments: 2 Read/Add Answers
Last Update: September 06, 2006 By shivkumarojha
25. How to retrieve record number 70 from a table of 100 records?
Comments: 4 Read/Add Answers
Last Update: September 26, 2006 By krishna
26. 1. How to delete a duplicate records in a table without using rowid?2. What is the use of Connect by
Comments: 8 Read/Add Answers
Last Update: December 08, 2006 By appu
27. Using corelated subquery: Inner query results in more than one row/value, then can this values be concatenated
Comments: 1 Read/Add Answers
Last Update: August 17, 2006 By Bilkis
28. How to display duplicate rows in a table?
Comments: 7 Read/Add Answers
Last Update: February 22, 2007 By Nandu
29. What are the advantages and disadvantages of primary key and foreign key in SQL?
Comments: 2 Read/Add Answers
Last Update: September 06, 2006 By shivkumarojha
30. How to find second maximum value from a table?
Comments: 12 Read/Add Answers
Last Update: September 21, 2006 By chanti4u123
31. How to find out the 10th highest salary in SQL query?
Comments: 12 Read/Add Answers
Last Update: September 09, 2006 By Ram Pratap Singh
32. What the difference between UNION and UNIONALL?
Comments: 4 Read/Add Answers
Last Update: October 06, 2006 By Vasanth Kumar
33. What is materialized View?
Comments: 2 Read/Add Answers
Last Update: October 23, 2006 By thumatinagaraju
34. What is the advantage to use trigger in your PL?
Comments: 2 Read/Add Answers
Last Update: August 03, 2006 By chennoju
35. Given an employee and manager table, write a SQL syntax that could be used to find out an employee's
Comments: 4 Read/Add Answers
Last Update: July 11, 2006 By biswa
36. When using a count(distinct) is it better to use a self-join or temp table to find redundant data, and
Comments: 1 Read/Add Answers
Last Update: August 01, 2006 By Sujatha
37. How to test the complex view using manually testing?
Comments: 0 Read/Add Answers
38. What is difference between DBMS and RDBMS?
Comments: 10 Read/Add Answers
Last Update: March 01, 2007 By Meena
39. In subqueries, which is efficient ,the IN clause or EXISTS clause? Does they produce the same result?
Comments: 3 Read/Add Answers
Last Update: May 23, 2006 By Lokesh Bhat
40. What is the main difference between the IN and EXISTS clause in subqueries??
Comments: 1 Read/Add Answers
Last Update: June 03, 2006 By Rajeshwaran
41. How can i hide a particular table name of our schema.
Comments: 1 Read/Add Answers
Last Update: May 21, 2006 By rajaram
42. If Delete Any Table In Back-End Then. What Are The Triggers will Fire Automatically(Those Triggers Are
Comments: 1 Read/Add Answers
Last Update: May 04, 2006 By Alex T
43. What is cluster.cluster index and non cluster index?
Comments: 2 Read/Add Answers
Last Update: July 04, 2006 By vvijaychandra
44. How write a SQL statement to query the result set and display row as columns and columns as row?
Comments: 4 Read/Add Answers
Last Update: October 06, 2006 By Vasanth Kumar
45. Given an unnormalized table with columns:Name,Phone number,Address You notice that some records in Name
Comments: 3 Read/Add Answers
Last Update: May 05, 2006 By smrati saxena
46. How to write a sql statement to find the first occurrence of a non zero value?
Comments: 8 Read/Add Answers
Last Update: January 15, 2007 By SQL Devotee
47. Why do i get "Invalid Cursor State" errors when I insert/update/delete data with execute Query()?
Comments: 1 Read/Add Answers
Last Update: February 28, 2006 By D.V.Narasimha Rao
48. Difference between VARCHAR and VARCHAR2?
Comments: 14 Read/Add Answers
Last Update: July 26, 2006 By shyamprasad
49. How to store directory structure in a database?
Comments: 1 Read/Add Answers
Last Update: March 28, 2006 By Mainak Aich
50. What is database?
Comments: 10 Read/Add Answers
Last Update: August 14, 2006 By Yugma
51. Difference between a equijoin and a union?
Comments: 2 Read/Add Answers
Last Update: April 03, 2006 By aruna
52. What is normalazation,types with examples. with queries of all types?
Comments: 5 Read/Add Answers
Last Update: April 26, 2006 By Ranjeev
53. Can we call user defined packages in SQL statements?
Comments: 5 Read/Add Answers
Last Update: April 25, 2006 By falak narang
54. What is difference between Oracle and MS Access? What are disadvantages in Oracle and MS Access? What
Comments: 6 Read/Add Answers
Last Update: December 21, 2006 By Vijay Taneja
55. There are 2 tables, Employee and Department. There are few records in employee table, for which, the
Comments: 7 Read/Add Answers
Last Update: January 19, 2007 By Evghenii
56. What operator performs pattern matching?
Comments: 10 Read/Add Answers
Last Update: February 14, 2007 By srihari
57. What is reference cursor?
Comments: 9 Read/Add Answers
Last Update: March 31, 2006 By nandish
58. When we give SELECT * FROM EMP; How does oracle respond?
Comments: 18 Read/Add Answers
Last Update: January 11, 2007 By sim
59. There is a Eno & gender in a table. Eno has primary key and gender has a check constraints for the values
Comments: 2 Read/Add Answers
Last Update: February 27, 2007 By marutalksin
60. What is difference between Co-related sub query and nested sub query?
Comments: 1 Read/Add Answers
Last Update: January 19, 2006 By Sameeksha
61. What is table space?
Comments: 8 Read/Add Answers
Last Update: April 12, 2006 By shivkumar
62. What is the difference between SQL and SQL Server?
Comments: 6 Read/Add Answers
Last Update: November 12, 2005 By jj
63. Whats the back end processes when we type "Select * from Table"?
Comments: 1 Read/Add Answers
Last Update: October 25, 2005 By shashi
64. How can we backup the sql files & what is SAP?
Comments: 1 Read/Add Answers
Last Update: November 11, 2005 By shuaib
65. How to find out the database name from SQL*PLUS command prompt?
Comments: 3 Read/Add Answers
Last Update: January 09, 2006 By Nagarjuna Reddy
66. Explain normalization with examples?
Comments: 2 Read/Add Answers
Last Update: October 27, 2005 By sarala
67. Cursor Syntax brief history?
Comments: 3 Read/Add Answers
Last Update: September 17, 2005 By prabakaran
68. Difference between Store Procedure and Trigger?
Comments: 4 Read/Add Answers
Last Update: August 03, 2006 By chennoju
69. How to copy SQL table?
Comments: 5 Read/Add Answers
Last Update: June 12, 2006 By ravi
70. I have a table with duplicate names in it. Write me a query which returns only duplicate rows with number
Comments: 9 Read/Add Answers
Last Update: September 12, 2006 By Nitin Sharanagate
71. Is there any query which is use to find the case sensitivity in each records in database through visual
Comments: 1 Read/Add Answers
Last Update: January 19, 2006 By Sameeksha
72. How do I write a cron which will run a SQL query and mail the results to a group?
Comments: 1 Read/Add Answers
Last Update: October 18, 2005 By Kalyan
73. What is the difference between Single row sub-Query and Scalar sub-Query?
Comments: 2 Read/Add Answers
Last Update: September 01, 2005 By B.Vijay Karthik
74. What operator performs pattern matching?
Comments: 3 Read/Add Answers
Last Update: September 30, 2005 By sankar
75. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Comments: 9 Read/Add Answers
Last Update: December 12, 2006 By Mahesh
76. TRUNCATE TABLE EMP;,DELETE FROM EMP;, Will the outputs of the above two commands?
Comments: 13 Read/Add Answers
Last Update: June 24, 2006 By Manish
77. What is the use of the DROP option in the ALTER TABLE command?
Comments: 3 Read/Add Answers
Last Update: November 14, 2005 By chitra
78. Why does the following command give a compilation error?
Comments: 3 Read/Add Answers
Last Update: November 23, 2005 By Poonam Sachdeva
79. What will be the output of the following query?
Comments: 1 Read/Add Answers
Last Update: January 28, 2006 By sisira
80. What does the following query do?
Comments: 1 Read/Add Answers
Last Update: December 26, 2005 By prasath
81. Which date function is used to find the difference between two dates?
Comments: 1 Read/Add Answers
Last Update: November 14, 2005 By keerthy
82. What is the advantage of specifying WITH GRANT OPTION in the GRANT command?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
83. What is the value of comm and sal after executing the following query if the initial value of ‘sal’
Comments: 1 Read/Add Answers
Last Update: September 20, 2005 By rahul tripathi
84. What is the use of DESC in SQL?
Comments: 2 Read/Add Answers
Last Update: November 08, 2005 By Jayakumar M
85. What is the use of CASCADE CONSTRAINTS?
Comments: 1 Read/Add Answers
Last Update: October 13, 2005 By Anuradha
86. Which function is used to find the largest integer less than or equal to a specific value?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
87. What is the output of the following query?
Comments: 4 Read/Add Answers
Last Update: November 17, 2006 By thumati_nagaraju@yahoo.co.in
88. What operator tests column for the absence of data?
Comments: 3 Read/Add Answers
Last Update: February 06, 2007 By burelamanohar
89. Which command executes the contents of a specified file?
Comments: 2 Read/Add Answers
Last Update: October 17, 2005 By Anshul
90. What is the parameter substitution symbol used with INSERT INTO command?
Comments: 2 Read/Add Answers
Last Update: October 13, 2005 By Anuradha
91. Which command displays the SQL command in the SQL buffer, and then executes it?
Comments: 4 Read/Add Answers
Last Update: July 26, 2006 By Bala
92. What are the wildcards used for pattern matching?
Comments: 1 Read/Add Answers
Last Update: November 18, 2005 By prasuna
93. State true or false. EXISTS, SOME, ANY are operators in SQL.
Comments: 5 Read/Add Answers
Last Update: May 08, 2006 By Rajani
94. State true or false. !=, <>, ^= all denote the same operation.
Comments: 10 Read/Add Answers
Last Update: October 12, 2006 By vinnu
95. What are the privileges that can be granted on a table by a user to others?
Comments: 2 Read/Add Answers
Last Update: May 08, 2006 By Rajani
96. What command is used to get back the privileges offered by the GRANT command?
Comments: 1 Read/Add Answers
Last Update: October 15, 2005 By Hemangi
97. Which system tables contain information on privileges granted and privileges obtained?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
98. Which system table contains information on constraints on all the tables created?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
99. What is the difference between TRUNCATE and DELETE commands?
Comments: 3 Read/Add Answers
Last Update: December 05, 2006 By saravanan p
100. What command is used to create a table by copying the structure of another table?
Comments: 7 Read/Add Answers
Last Update: July 04, 2006 By vijay
Comments: 1 Read/Add Answers
Last Update: February 17, 2007 By Harsh Athalye
2. How do you delete duplicate row from oracle table that does not have any primary key field?
Comments: 2 Read/Add Answers
Last Update: February 07, 2007 By Jayanth Saimani
3. What is SQL injection? What are the uses of it?
Comments: 3 Read/Add Answers
Last Update: January 24, 2007 By Lakshaman
4. can we delete master records from the parent table ? if yes justify
Comments: 2 Read/Add Answers
Last Update: February 27, 2007 By SHAMIK
5. How to generate 1...N (sequence Numbers) without using the sequence concept in SQL?
Comments: 5 Read/Add Answers
Last Update: February 06, 2007 By kaledhananjay
6. Write a query to find the list of employees whos age is greater than 30 or so given a date of birth colu
Comments: 4 Read/Add Answers
Last Update: February 12, 2007 By ggk.krishna
7. how to hide the code in procedures,packages?
Comments: 3 Read/Add Answers
Last Update: February 13, 2007 By vavasudevan
8. How many null values does a column accept if it is declared as a unique key?
Comments: 14 Read/Add Answers
Last Update: January 17, 2007 By bibhu
9. What is the main use of FOREIGN KEY?
Comments: 14 Read/Add Answers
Last Update: February 14, 2007 By abc
10. What is oracle hint? how do we use hints in SQL for the optimization of the query?
Comments: 1 Read/Add Answers
Last Update: December 05, 2006 By John Thomas Ambadan
11. What is the basic difference in MySQL & Stored SQL?
Comments: 1 Read/Add Answers
Last Update: November 28, 2006 By aa
12. How many trigger we can create on a table? How many column we can create in a table?
Comments: 6 Read/Add Answers
Last Update: February 05, 2007 By Atul Trikha
13. How do you find the number of rows in a table?
Comments: 9 Read/Add Answers
Last Update: February 06, 2007 By manohar
14. Difference between Cluster and Non-cluster index?
Comments: 2 Read/Add Answers
Last Update: December 07, 2006 By Rajesh Varma
15. What is a table called, if it does not have neither Cluster nor Non-cluster Index?
Comments: 1 Read/Add Answers
Last Update: October 19, 2006 By Jerrin
16. What de-normalization and when do you do it?
Comments: 8 Read/Add Answers
Last Update: February 06, 2007 By sivanesh.a
17. How do you know which index a table is using?
Comments: 2 Read/Add Answers
Last Update: November 12, 2006 By Nigam
18. How could i delete the distinct name from the table. the rest record would be available as it is in the
Comments: 2 Read/Add Answers
Last Update: January 09, 2007 By preethi
19. How to tune the following sql in order that the performance improve the query is SELECT DISTINCTA.BUSINESS_UNIT
Comments: 3 Read/Add Answers
Last Update: October 12, 2006 By zskhan
20. How do you subtract two columns in oracle database, two columns are in data format.Example : inserttime
Comments: 2 Read/Add Answers
Last Update: September 26, 2006 By condemnity
21. It is also mentioned that column aliases cannot be used in the WHERE clause, then how did this query
Comments: 3 Read/Add Answers
Last Update: November 02, 2006 By Hitesh
22. 1. Why is it so that the given query worked :"select * from (select rownum rnum,a.* from emp a) where
Comments: 1 Read/Add Answers
Last Update: October 03, 2006 By adarsh_sp
23. Which is more efficient('WHERE" or "HAVING") in SQL ?
Comments: 6 Read/Add Answers
Last Update: December 22, 2006 By rajneeshbajwa
24. What is the queary for Non equal joints ,self joints?
Comments: 2 Read/Add Answers
Last Update: September 06, 2006 By shivkumarojha
25. How to retrieve record number 70 from a table of 100 records?
Comments: 4 Read/Add Answers
Last Update: September 26, 2006 By krishna
26. 1. How to delete a duplicate records in a table without using rowid?2. What is the use of Connect by
Comments: 8 Read/Add Answers
Last Update: December 08, 2006 By appu
27. Using corelated subquery: Inner query results in more than one row/value, then can this values be concatenated
Comments: 1 Read/Add Answers
Last Update: August 17, 2006 By Bilkis
28. How to display duplicate rows in a table?
Comments: 7 Read/Add Answers
Last Update: February 22, 2007 By Nandu
29. What are the advantages and disadvantages of primary key and foreign key in SQL?
Comments: 2 Read/Add Answers
Last Update: September 06, 2006 By shivkumarojha
30. How to find second maximum value from a table?
Comments: 12 Read/Add Answers
Last Update: September 21, 2006 By chanti4u123
31. How to find out the 10th highest salary in SQL query?
Comments: 12 Read/Add Answers
Last Update: September 09, 2006 By Ram Pratap Singh
32. What the difference between UNION and UNIONALL?
Comments: 4 Read/Add Answers
Last Update: October 06, 2006 By Vasanth Kumar
33. What is materialized View?
Comments: 2 Read/Add Answers
Last Update: October 23, 2006 By thumatinagaraju
34. What is the advantage to use trigger in your PL?
Comments: 2 Read/Add Answers
Last Update: August 03, 2006 By chennoju
35. Given an employee and manager table, write a SQL syntax that could be used to find out an employee's
Comments: 4 Read/Add Answers
Last Update: July 11, 2006 By biswa
36. When using a count(distinct) is it better to use a self-join or temp table to find redundant data, and
Comments: 1 Read/Add Answers
Last Update: August 01, 2006 By Sujatha
37. How to test the complex view using manually testing?
Comments: 0 Read/Add Answers
38. What is difference between DBMS and RDBMS?
Comments: 10 Read/Add Answers
Last Update: March 01, 2007 By Meena
39. In subqueries, which is efficient ,the IN clause or EXISTS clause? Does they produce the same result?
Comments: 3 Read/Add Answers
Last Update: May 23, 2006 By Lokesh Bhat
40. What is the main difference between the IN and EXISTS clause in subqueries??
Comments: 1 Read/Add Answers
Last Update: June 03, 2006 By Rajeshwaran
41. How can i hide a particular table name of our schema.
Comments: 1 Read/Add Answers
Last Update: May 21, 2006 By rajaram
42. If Delete Any Table In Back-End Then. What Are The Triggers will Fire Automatically(Those Triggers Are
Comments: 1 Read/Add Answers
Last Update: May 04, 2006 By Alex T
43. What is cluster.cluster index and non cluster index?
Comments: 2 Read/Add Answers
Last Update: July 04, 2006 By vvijaychandra
44. How write a SQL statement to query the result set and display row as columns and columns as row?
Comments: 4 Read/Add Answers
Last Update: October 06, 2006 By Vasanth Kumar
45. Given an unnormalized table with columns:Name,Phone number,Address You notice that some records in Name
Comments: 3 Read/Add Answers
Last Update: May 05, 2006 By smrati saxena
46. How to write a sql statement to find the first occurrence of a non zero value?
Comments: 8 Read/Add Answers
Last Update: January 15, 2007 By SQL Devotee
47. Why do i get "Invalid Cursor State" errors when I insert/update/delete data with execute Query()?
Comments: 1 Read/Add Answers
Last Update: February 28, 2006 By D.V.Narasimha Rao
48. Difference between VARCHAR and VARCHAR2?
Comments: 14 Read/Add Answers
Last Update: July 26, 2006 By shyamprasad
49. How to store directory structure in a database?
Comments: 1 Read/Add Answers
Last Update: March 28, 2006 By Mainak Aich
50. What is database?
Comments: 10 Read/Add Answers
Last Update: August 14, 2006 By Yugma
51. Difference between a equijoin and a union?
Comments: 2 Read/Add Answers
Last Update: April 03, 2006 By aruna
52. What is normalazation,types with examples. with queries of all types?
Comments: 5 Read/Add Answers
Last Update: April 26, 2006 By Ranjeev
53. Can we call user defined packages in SQL statements?
Comments: 5 Read/Add Answers
Last Update: April 25, 2006 By falak narang
54. What is difference between Oracle and MS Access? What are disadvantages in Oracle and MS Access? What
Comments: 6 Read/Add Answers
Last Update: December 21, 2006 By Vijay Taneja
55. There are 2 tables, Employee and Department. There are few records in employee table, for which, the
Comments: 7 Read/Add Answers
Last Update: January 19, 2007 By Evghenii
56. What operator performs pattern matching?
Comments: 10 Read/Add Answers
Last Update: February 14, 2007 By srihari
57. What is reference cursor?
Comments: 9 Read/Add Answers
Last Update: March 31, 2006 By nandish
58. When we give SELECT * FROM EMP; How does oracle respond?
Comments: 18 Read/Add Answers
Last Update: January 11, 2007 By sim
59. There is a Eno & gender in a table. Eno has primary key and gender has a check constraints for the values
Comments: 2 Read/Add Answers
Last Update: February 27, 2007 By marutalksin
60. What is difference between Co-related sub query and nested sub query?
Comments: 1 Read/Add Answers
Last Update: January 19, 2006 By Sameeksha
61. What is table space?
Comments: 8 Read/Add Answers
Last Update: April 12, 2006 By shivkumar
62. What is the difference between SQL and SQL Server?
Comments: 6 Read/Add Answers
Last Update: November 12, 2005 By jj
63. Whats the back end processes when we type "Select * from Table"?
Comments: 1 Read/Add Answers
Last Update: October 25, 2005 By shashi
64. How can we backup the sql files & what is SAP?
Comments: 1 Read/Add Answers
Last Update: November 11, 2005 By shuaib
65. How to find out the database name from SQL*PLUS command prompt?
Comments: 3 Read/Add Answers
Last Update: January 09, 2006 By Nagarjuna Reddy
66. Explain normalization with examples?
Comments: 2 Read/Add Answers
Last Update: October 27, 2005 By sarala
67. Cursor Syntax brief history?
Comments: 3 Read/Add Answers
Last Update: September 17, 2005 By prabakaran
68. Difference between Store Procedure and Trigger?
Comments: 4 Read/Add Answers
Last Update: August 03, 2006 By chennoju
69. How to copy SQL table?
Comments: 5 Read/Add Answers
Last Update: June 12, 2006 By ravi
70. I have a table with duplicate names in it. Write me a query which returns only duplicate rows with number
Comments: 9 Read/Add Answers
Last Update: September 12, 2006 By Nitin Sharanagate
71. Is there any query which is use to find the case sensitivity in each records in database through visual
Comments: 1 Read/Add Answers
Last Update: January 19, 2006 By Sameeksha
72. How do I write a cron which will run a SQL query and mail the results to a group?
Comments: 1 Read/Add Answers
Last Update: October 18, 2005 By Kalyan
73. What is the difference between Single row sub-Query and Scalar sub-Query?
Comments: 2 Read/Add Answers
Last Update: September 01, 2005 By B.Vijay Karthik
74. What operator performs pattern matching?
Comments: 3 Read/Add Answers
Last Update: September 30, 2005 By sankar
75. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Comments: 9 Read/Add Answers
Last Update: December 12, 2006 By Mahesh
76. TRUNCATE TABLE EMP;,DELETE FROM EMP;, Will the outputs of the above two commands?
Comments: 13 Read/Add Answers
Last Update: June 24, 2006 By Manish
77. What is the use of the DROP option in the ALTER TABLE command?
Comments: 3 Read/Add Answers
Last Update: November 14, 2005 By chitra
78. Why does the following command give a compilation error?
Comments: 3 Read/Add Answers
Last Update: November 23, 2005 By Poonam Sachdeva
79. What will be the output of the following query?
Comments: 1 Read/Add Answers
Last Update: January 28, 2006 By sisira
80. What does the following query do?
Comments: 1 Read/Add Answers
Last Update: December 26, 2005 By prasath
81. Which date function is used to find the difference between two dates?
Comments: 1 Read/Add Answers
Last Update: November 14, 2005 By keerthy
82. What is the advantage of specifying WITH GRANT OPTION in the GRANT command?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
83. What is the value of comm and sal after executing the following query if the initial value of ‘sal’
Comments: 1 Read/Add Answers
Last Update: September 20, 2005 By rahul tripathi
84. What is the use of DESC in SQL?
Comments: 2 Read/Add Answers
Last Update: November 08, 2005 By Jayakumar M
85. What is the use of CASCADE CONSTRAINTS?
Comments: 1 Read/Add Answers
Last Update: October 13, 2005 By Anuradha
86. Which function is used to find the largest integer less than or equal to a specific value?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
87. What is the output of the following query?
Comments: 4 Read/Add Answers
Last Update: November 17, 2006 By thumati_nagaraju@yahoo.co.in
88. What operator tests column for the absence of data?
Comments: 3 Read/Add Answers
Last Update: February 06, 2007 By burelamanohar
89. Which command executes the contents of a specified file?
Comments: 2 Read/Add Answers
Last Update: October 17, 2005 By Anshul
90. What is the parameter substitution symbol used with INSERT INTO command?
Comments: 2 Read/Add Answers
Last Update: October 13, 2005 By Anuradha
91. Which command displays the SQL command in the SQL buffer, and then executes it?
Comments: 4 Read/Add Answers
Last Update: July 26, 2006 By Bala
92. What are the wildcards used for pattern matching?
Comments: 1 Read/Add Answers
Last Update: November 18, 2005 By prasuna
93. State true or false. EXISTS, SOME, ANY are operators in SQL.
Comments: 5 Read/Add Answers
Last Update: May 08, 2006 By Rajani
94. State true or false. !=, <>, ^= all denote the same operation.
Comments: 10 Read/Add Answers
Last Update: October 12, 2006 By vinnu
95. What are the privileges that can be granted on a table by a user to others?
Comments: 2 Read/Add Answers
Last Update: May 08, 2006 By Rajani
96. What command is used to get back the privileges offered by the GRANT command?
Comments: 1 Read/Add Answers
Last Update: October 15, 2005 By Hemangi
97. Which system tables contain information on privileges granted and privileges obtained?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
98. Which system table contains information on constraints on all the tables created?
Comments: 1 Read/Add Answers
Last Update: January 27, 2006 By sisira
99. What is the difference between TRUNCATE and DELETE commands?
Comments: 3 Read/Add Answers
Last Update: December 05, 2006 By saravanan p
100. What command is used to create a table by copying the structure of another table?
Comments: 7 Read/Add Answers
Last Update: July 04, 2006 By vijay
Monday, October 13, 2008
Subscribe to:
Posts (Atom)
