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
what is meant by urlencode and urldocode? : Sql dba
Which are sql * plus commands?
what are set operators in sql? : Sql dba
Mention what is the function that is used to transfer a pl/sql table log to a database table?
Can we call procedure in select statement?
What is difference between hql and native sql?
What are all the different normalizations?
Is postgresql a nosql database?
What is the difference between sql and t sql?
What is a temporal table?
Explain the commit statement.
What is int identity in sql?
How can a pl sql block be executed?
How do you update a value in sql?
how to convert character strings to numeric values? : Sql dba