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

Why do we use view in sql?

1020


what is 'mysqld'? : Sql dba

1019


How do I run pl sql in sql developer?

1175


What is varchar data type in sql?

1140


How many developers work on postgresql?

1042


List out the acid properties and explain?

1018


What are different types of queries in sql?

1177


what is a composite primary key ? : Sql dba

1095


Is oracel sql developer written in java?

1169


what happens if you no create privilege in a database? : Sql dba

1050


Why we use triggers in mysql?

1041


How do you declare a variable in pl sql?

1071


Are left and right joins the same?

1161


Can we use two order by clause in query?

1017


what are all the different normalizations? : Sql dba

1122