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 subsets of sql?
how to run 'mysql' commands from a batch file? : Sql dba
what are ddl statements in mysql? : Sql dba
What is the use of <> sql?
What is trigger and how to use it in sql?
How does a trigger work?
What is the cause of mutating table error and how can we solve it?
What are the advantages of normalization?
Are stored procedures faster than queries?
Should I use mbr or gpt?
what is sp_pkeys? : Transact sql
What is execute immediate?
Is it possible to remove child records without removing master table records...the two having pk,fk relationship?
Why is pl sql used?
How do we accept inputs from user during runtime?