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 / abhiraj
with data as (select 'Q10' as src from dual)
select
'Quarter to '||to_char((to_date('01/01/'||substr(Src,2), 'dd/mm/rrrr')),'rrrr') as "Target"
from data
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are the types of subquery? : Sql dba
What is the starting oracle error number? What is meant by forward declaration in functions?
Explain the the delete statements in sql?
What is query optimization in sql?
What is sap sql?
Can we commit in trigger?
What is sqlcommand?
What is pl sql quora?
How do I view a sql trace file?
What are the types of records?
what are the different type of normalization? : Sql dba
Explain what is an index?
How do you modify a column in sql?
Differentiate between pl/sql and sql?
how to run 'mysql' commands from a batch file? : Sql dba