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 is sql not null constraint?

600


what are the advantages of sql ? : Sql dba

541


What are transaction and its controls?

557


How many rows can sqlite handle?

579


What is meant by truncate in sql?

520






what are tables and fields? : Sql dba

575


What is auto increment feature in sql?

616


Is oracle sql free?

534


Which command is used to delete a trigger?

768


Is it possible to update views?

532


What do you understand by exception handling in pl/sql?

573


What is view explain with example?

517


How many types of sql are there?

523


How do I run a sql query?

528


Can you call pl/sql package functions from within a fast formula?

560