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 / sumit

declare i number :=1;

begin
a number;
while (i<=100) loop
select num from table into a where num=i;
If a is null then dbms_output.put_line(i);
i:=i+1;
end loop;
end;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is group by in sql?

1124


Is it possible to link two groups inside a cross products after the cross products group has been created?

1067


How do you identify a primary key?

1113


what is the difference between char_length and length? : Sql dba

1105


How do you bind variables in pl sql?

1156


How to fetch alternate records from a table?

1305


What is a temp table?

1070


what are date and time data types? : Sql dba

1026


What is union, minus and interact commands?

1361


Does oracle use sql?

986


How do I run a pl sql program?

1189


What is rownum and rowid?

1074


write an sql query to find names of employee start with 'a'? : Sql dba

1084


how to fetch common records from two tables? : Sql dba

1249


What is sql scripting?

1191