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 are character functions in sql?
How do you declare a constant?
What's the difference between a primary key and a clustered index?
Is ms sql traffic encrypted?
how many tables will create when we create table, what are they? : Sql dba
How do I access sql anywhere database?
Can you skip header records while loading? : aql loader
What is a sql statement?
What is break?
Whis is not false in primary key?
what is a cursor? : Sql dba
How do you select unique values in sql?
what are numeric data types? : Sql dba
what is bcp? When is it used?
What is a .db file?