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
Mention what problem one might face while writing log information to a data-base table in pl/sql?
What are different types of functions in sql?
What are the indexing methods?
What is the current version of sql?
how to rename an existing column in a table? : Sql dba
How do I add a primary key to a table?
What is the location of pre_defined_functions.
Are pl sql variables case sensitive?
Where the sql database files are stored?
What is sql deadlock?
how to select unique records from a table? : Sql dba
explain primary keys and auto increment fields in mysql : sql dba
Explain raise_application_error.
What is the difference between local variables and global variables?
How do you clear the screen in sql?