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.
Answers were Sorted based on User's Feedback
Answer / ajit
SELECT SUM(PRODQTY) FROM EMP WHERE TO_CHAR(PRODDATE,'MON-YYYY')='APR-2014';
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
what is global table
Will truncate release space?
how to retrieve the top 3 salaries of the table using rownum
How do I count rows in sql query?
Do ddl statements need commit?
Can we use rowid as primary key?
What is a string data type in sql?
What cursor type do you use to retrieve multiple recordsets?
17 Answers Apollo, CTS, IonIdea, Microsoft, Oracle, TCS, Vmoksha, Wipro,
What is duration in sql profiler trace?
What are the syntax and use of the coalesce function?
How do you modify a table in sql?
What is the source code of a program?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)