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 / ajit
select substr(src, 1,1 )||'uarter to '||to_char(to_date (substr(src, 2), 'rrrr'), 'yyyy') tgt
from <Table Name>
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what's the difference between a primary key and a unique key? : Sql dba
Explain cursor types?
How to run sql statements with oracle sql developer?
Why we use join in sql?
What is primary key and unique key?
how to write date and time literals? : Sql dba
What is the use of index in hive?
How to write a query to show the details of a student from students table whose
What are the basic techniques of indexing?
What is foreign key sql?
Why is the cursor important?
explain about mysql and its features. : Sql dba
Does sql support programming?
What is the sql case statement?
What are the benefits of pl/sql packages?