Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If there are 1 to 100 numbers in a table and in that 100
numbers some 10 numbers are deleted.I want to find out the
missing numbers between 1 to 100 by pl/sql how?

Answer Posted / ravi kumar singh

DECLARE
RETVAL NUMBER:=0;/*A_CHK IS TABLE AND A IS COLOUMN HAVING NOS*/
I NUMBER:=0;
BEGIN
FOR I IN 1..100
LOOP
SELECT COUNT(*) INTO RETVAL FROM A_CHK WHERE A=I;
IF (RETVAL=0) THEN
DBMS_OUTPUT.PUT_LINE(I);
ELSE NULL;
END IF;
END LOOP;
END;

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is relationship? How many types of relationship are there?

1188


What is use of term?

1068


How we can update the view?

1054


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1163


Difference between truncate, delete and drop commands?

1087


what is the difference between a web-garden and a web-farm? : Sql dba

1085


What is dml and ddl?

967


Is inner join same as self join?

1122


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

1117


What is difference between my sql and sql?

1079


how to extract a unit value from a date and time? : Sql dba

998


What are the types of functions in sql?

1022


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

1172


Explain constraints in sql?

1052


what is cursor. write example of it. What are the attributes of cursor.

1399