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
What is time based sql injection?
What is not null in sql?
what is an index? : Sql dba
what is dbms? : Sql dba
Do stored procedures prevent sql injection?
explain the difference between myisam static and myisam dynamic. : Sql dba
Why stored procedures are faster than query?
What is record type in pl sql?
how can we submit a form without a submit button? : Sql dba
Are null values same as that of zero or a blank space?
How to read/write files from pl/sql?
What is composite primary key in sql?
What is posting?
What is the use of sqlerrd 3?
what is the use of double ampersand (&&) in sql queries?