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

SELECT SUM(PRODQTY) FROM EMP WHERE TO_CHAR(PRODDATE,'MON-YYYY')='APR-2014';

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the base_object_type column shows in the user.triggers data dictionary view?

754


What are the different types of sql commands?

779


What is pl sql code?

749


Why are aggregate functions called so?

681


What can you do with pl sql?

764






what is a scheduled jobs or what is a scheduled tasks? : Sql dba

729


How can check sql version from command line?

714


Does sap use sql?

715


how to enter numeric values as hex numbers? : Sql dba

764


What is not in sql?

666


what are the 'mysql' command line options? : Sql dba

735


Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

890


Can we edit a view in sql?

711


How can we solve sql error: ora-00904: invalid identifier?

881


Why join is faster than subquery?

790