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
how to check server status with 'mysqladmin'? : Sql dba
What does subquery mean in sql?
Why are indexes and views important to an organization?
what is the stuff function and how does it differ from the replace function? : Sql dba
Which is faster joins or subqueries?
What are sql constraints?
Is grant a ddl statement?
How can you fetch common records from two tables?
Why does sql need a server?
Why use subqueries instead of joins?
How do I start pl sql?
what is schema? : Sql dba
Is drop table faster than truncate?
How many commands are there in sql?
what is a composite key ? : Sql dba