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 / manohar

select 'Quarter to' ||to_char(cast('1/1/'||substr(Src) as
char),'YYYY') from table

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create clustered index without primary key?

517


What is difference between stored procedure and trigger?

527


How can we avoid duplicating records in a query?

558


What are the types of subqueries?

568


Which join is default?

513






What do you mean by rowid?

535


What are the various restrictions imposed on view in terms of dml?

514


what are dynamic queries in t-sql? : Transact sql

553


Can we use distinct and group by together?

581


What is a constraint? Tell me about its various levels.

632


What is memory optimized table?

569


How do you respond to dementia behavior?

523


How to write html code in pl sql?

571


What is sqlca in powerbuilder?

556


What are the main features of cursor?

618