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 is trigger price?
What are all the different types of indexes?
What is duration in sql profiler trace?
Explain the difference between drop and truncate commands in sql?
What is difference between sql and excel?
Can we join two tables without common column?
Why do we create stored procedures & functions in pl/sql and how are they different?
What is trigger in sql and its types?
Is json a nosql?
What are the query optimization techniques?
Which tcp/ip port does sql server run?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
What is exit statement?
What are properties of the transaction?
How do you concatenate in sql?