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
What is before and after trigger?
Is stored procedure faster than query?
What is triggering circuit?
What is pl sql variable?
Can we change the table name in sql?
What are expressions?
How do I quit sql?
What are the three pl sql block types?
Which query operators in sql is used for pattern matching?
What are the ddl commands?
Why do we use procedures in sql?
How to handle bulk data?
What is update query?
How can one get sql*loader to commit only at the end of the load file? : aql loader
Are stored procedures faster than queries?