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

Which table is left in join?

1017


What are the advantages of normalization?

1129


Why is a trigger used?

992


describe transaction-safe table types in mysql : sql dba

1060


What is the usage of the distinct keyword?

1276


How do I restart sql?

1026


How would you convert date into julian date format?

1044


What is sql*loader?

1285


What is Collation Sensitivity ? What are the various type ?

1001


Can you selectively load only those records that you need? : aql loader

1093


what is data integrity? : Sql dba

1086


What are the two types of cursors in pl sql?

1124


How do I truncate a sql log file?

1136


what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

1163


what is an index? : Sql dba

1041