Write a query to genarate target column.Please answer me.
Advance Thanks.
Src Tgt
Q10 Quarter to 2010
Q90 Quarter to 1990
Q80 Quarter to 1980
Q74 Quarter to 1974
Answer Posted / megha
select
'Quarter to '||to_char((to_date('01/01/'||substr(Src,2), 'dd/mm/rrrr')),'rrrr') as "Target"
from table
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Difference between truncate, delete and drop commands?
what are the authentication modes in sql server? : Sql dba
What is the main reason behind using an index?
Can instead of triggers be used to fire once for each statement on a view?
how to get help information from the server? : Sql dba
What pl/sql package consists of?
Inline the values in PL/SQL, what does it mean.?
How many sql databases can you have on one server?
What are the different types of constraints?
How many sql statements are used?
What is the life of an sql statement?
What is the execution plan in sql?
How can one get sql*loader to commit only at the end of the load file? : aql loader
Can we call procedure in select statement?
What is sql procedures and functions?