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 / kavitha n

BEGIN

FOR DATA IN (SELECT LEVEL num
FROM DUAL
CONNECT BY LEVEL <= 100
MINUS
SELECT num
FROM missingsquence)
LOOP
exit when sql%notfound;

DBMS_OUTPUT.put_line (DATA.num);
END LOOP;
END;
/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sqlerrd 3?

889


How do you respond to dementia behavior?

924


Can a table contain multiple primary key’s?

1041


What is primary key and unique key?

1048


Do ddl statements need commit?

922


What is pl sql script?

976


How to Execute a Package in PL/SQL.?

1108


Explain what is sql*plus?

1084


What is rank function in sql?

961


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

1176


What are the possible values that can be stored in a boolean data field?

946


Why do we need cursors in pl sql?

1001


What is trigger types in sql?

942


how does a local variable is defined using t-sql? : Transact sql

947


How do you delete data from a table?

973