wa procedure to return the month and the no'f developers
joined in each month.

Answers were Sorted based on User's Feedback



wa procedure to return the month and the no'f developers joined in each month...

Answer / kiran

select count(*) "NoFDevelopers",to_char(hiredate,'Mon') from emp group by to_char(hiredate,'Mon');

Is This Answer Correct ?    1 Yes 0 No

wa procedure to return the month and the no'f developers joined in each month...

Answer / arrry.net

It's simple
No need to use Cursor for that

select Month(Joindate)as MONTH,count(*) as empCount from dbo.tblEmployee
Group by Month(Joindate)

Is This Answer Correct ?    1 Yes 1 No

wa procedure to return the month and the no'f developers joined in each month...

Answer / vishal narkhede

select to_char(hiredate, 'MON-RRRR'),count(1) from emp
group by to_char(hiredate, 'MON-RRRR')

Is This Answer Correct ?    1 Yes 1 No

wa procedure to return the month and the no'f developers joined in each month...

Answer / narenkumar reddy

create or replace procedure
procdure_name
cursor c1 is select count(*),month from table
is
begin
for i in c1
loop
dbms_output.put_line(i.count(*)||i.month)
end loop;
end;

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More SQL PLSQL Interview Questions

What is bulk compiling in pl/sql.?

0 Answers   MCN Solutions,


What is a data definition language?

0 Answers  


Is pl sql a scripting language?

0 Answers  


What is difference between my sql and sql?

0 Answers  


Mention what does the hierarchical profiler does?

0 Answers  






Explain the structure of pl/sql in brief.

0 Answers  


Can we debug stored procedure?

0 Answers  


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

0 Answers  


Does sql use python?

0 Answers  


explain mysql aggregate functions. : Sql dba

0 Answers  


How can a pl sql block be executed?

0 Answers  


What is parallel hint?

0 Answers  


Categories