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 are the built in functions of sql?
How show all rows in sql?
What is sql used for?
What is the difference between having and a where in sql?
What are the different dcl commands in sql?
What is foreign key and example?
Why triggers are used?
What is the difference between a database and a relational database?
What is insert command in sql?
What is pls integer?
How many disk partitions should I have?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
What is the need of a partition key?
What is pl sql in dbms?
how to get a list of columns in an existing table? : Sql dba