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

What is the difference between null value, zero, and blank space?

556


What is sql procedures and functions?

531


Why is stored procedure faster than query?

493


What are the various restrictions imposed on view in terms of dml?

521


What are analytic functions in sql?

550






What are the 3 modes of parameter?

679


Does sql*plus have a pl/sql engine?

572


Can we insert data into materialized view?

515


How can I speed up sql query?

524


what are all the different types of indexes? : Sql dba

528


what are the different type of sql's statements ? : Sql dba

522


What is varchar sql?

620


Can we alter stored procedure?

545


What is union, minus and interact commands?

750


What is the difference between partition and index?

485