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 normalization means?
What are the types of subqueries?
What is user in sql?
Can we use pl sql in mysql?
Why is pl sql used?
What are reports usually used for?
Can we join tables without foreign key?
What are views in sql?
What is cost in sql execution plan?
What is restrict in sql?
Explain the uses of control file.
What pl/sql package consists of?
what are the disadvantages of mysql? : Sql dba
Can we update views in sql?
Can a foreign key be null?