table name: prod there are three fields in the table that are
1.proddate
2.prodQty
3.model
Day wise prodQty is stored in the table prod
write a query to display total prodqty in the year 2004 april.

Answer Posted / sunnil

select sum(prodqty) from emp where to_char('proddate','yyyy')=2014 and to_char('proddate','mm')=04;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many functions are there in sql?

535


Mention what plvcmt and plvrb does in pl/sql?

636


Explain foreign key in sql?

621


What is full form of rtm?

530


What are the types of join and explain each?

577






Is sql a programming?

545


Explain the steps needed to create the scheduled job?

557


What is a join?

621


How many types of functions are there in sql?

501


How do I clear the screen in sql plus?

546


What are the 3 modes of parameter?

675


What are %type and %rowtype for?

613


What is the process of copying data from table a to table b?

596


What is a sql select statement?

562


What will you get by the cursor attribute sql%rowcount?

549