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


Please Help Members By Posting Answers For Below Questions

What is latest version of sql?

523


What is pls_integer in pl sql?

536


Why we use sql profiler?

560


What are different types of queries in sql?

520


What are the steps for performance tuning.

837






What is a string data type in sql?

512


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

562


What are the popular database management systems in the it industry?

559


Why do we need pl sql?

546


Is merge a dml statement?

520


what are all the different types of indexes? : Sql dba

526


How can triggers be used for the table auditing?

592


Is sql open source?

542


what is sp_pkeys? : Transact sql

697


What is difference between hql and sql?

503