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...

define a variable representing the expression used to
calculate on emps total annual remuneration.use the
variable in a statement which finds all emps who can earn
30000 a year or more.

Answer Posted / venkat

Declare
cursor cl is select ename,sal,(sal*12) AS annualSAL FROM EMP;
i emp%rowtype;
Begin
for i in cl
loop
if i.annualSAL > 30000 then

dbms_output.put_line(i.ename);

end if;
end loop;
end;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a table contain multiple primary key’s?

1078


What is scalar data type in pl sql?

1053


Explain polymorphism in pl/sql.

1093


What is the difference between partition and index?

966


What is the usage of when clause in trigger?

1031


What is sql injection owasp?

1033


What is the difference between count 1 and count (*) in a sql query?

962


What is sql keyword?

980


explain access control lists. : Sql dba

977


What is difference between left and right outer join?

966


How to execute a stored procedure?

1066


How can you know that statistics should be updated?

1063


what does the t-sql command ident_current does? : Transact sql

964


what is the command used to fetch first 5 characters of the string? : Sql dba

1622


What is nvarchar in sql?

914