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 cursor and its types?

560


What is a composite primary key?

583


What is consistency?

714


how to calculate the difference between two dates? : Sql dba

548


How is sql used in oracle?

581






Can a trigger call a stored procedure?

534


What is sql procedures and functions?

531


How can I change database name in sql?

529


How do I use google cloud in sql?

537


What is prepared statement in sql?

545


Can we delete column in sql?

562


What is the difference between view and stored procedure?

494


How do you clear the screen in sql?

600


What is cursor and why it is required?

553


What is benefit of creating memory optimized table?

540