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 / megha
select
'Quarter to '||to_char((to_date('01/01/'||substr(Src,2), 'dd/mm/rrrr')),'rrrr') as "Target"
from table
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Explain select statements in sql?
What are the usages of sql?
What is the most common sql injection tool?
Why is normalization important?
What is oracle pl sql developer?
Why is the cursor important?
Why is partition used in sql?
How do I kill a query in postgresql?
Can we alter stored procedure?
How many types of normalization are there?
What does varchar include?
Is sql scripting language?
What is pl sql package?
Why we use pl sql?
What is rtm stands for?