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

DECLARE

l_id NUMBER;/* Temp IS TABLE AND ID IS COLOUMN HAVING
Numbers*/

BEGIN

FOR I IN 1..100 LOOP
SELECT COUNT(*) INTO l_id FROM temp WHERE id=I;
IF (l_id = 0) THEN
DBMS_OUTPUT.PUT_LINE(I);
ELSE
NULL;
END IF;
END LOOP;

END;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between having clause and where clause?

1063


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

963


What is difference between mysql and postgresql?

1160


Is ms sql traffic encrypted?

929


How to add a column ‘salary’ to a table employee_details?

1013


How do you bind variables in pl sql?

1102


Can we use pl sql in sql server?

1086


Why do we need pl sql?

982


What is rownum in sql?

1046


What are the different types of sql commands?

1128


what are numeric data types? : Sql dba

1065


How does one use sql*loader to load images, sound clips and documents? : aql loader

1188


What is trigger in sql? Explain

999


differentiate between float and double. : Sql dba

1060


Is sql a dbms?

1017