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
Do prepared statements prevent sql injection?
How much does sqlite cost?
Difference between global and parameter variables?
How are functions and procedures called in PL/SQL?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
what are null values? : Sql dba
What is db journal file?
Which command is used to call a stored procedure?
What is the use of non clustered index?
What is lookup table in sql?
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
What are secondary keys?
Why do we use view in sql?
What are sql functions? Describe in brief different types of sql functions?
What is a loop in sql?