write a sql query following source?
subject mark
maths 30
science 20
social 80
requird output
maths science social
30 20 80
Answers were Sorted based on User's Feedback
Answer / srikanth
select (select marks from sub where subject='maths') maths,
(select marks from sub where subject='science') science,
(select marks from sub where subject='social') social from
sub group by 1;
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / brij
select
decode(subject,'maths',mark) maths
,decode(subject,'science',mark) science
,decode(subject,'social',mark) social
from <<table>>
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / keshava
We can use pivot finction on 11g instead of multiple
decodes.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we trouble shoot the commas in a column of a comma delimited flat file in Informatica
Types of error logs in Informatica?
Briefly define a session task?
what is worklet and what use of worklet and in which situation we can use it?
How to create a non-reusable instance of reusable transformations?
Hello...... How can i set my mapping as read-only? Please answer me. Advance thanks
scenario: dept_no emp_nem 10 A, 10 B, 10 C, 10 D, 20 P, 20 Q, 20 R, 20 S output: dept_no emp_nem 10 A, 10 AB, 10 ABC, 10 ABCD, 20 ABCDP, 20 ABCDPQ, 20 ABCDPQR, 20 ABCDPQRS
What is the default join that source qualifier provides?
Hi Experts, Performance Wise Which transformation is better in LOOKUP AND JOINER TRansformations? Why? Can anybody please explain it ? Please help me out from this Question. Thanks In Advance.
In router source is a boy age 20 I given 3 conditions in router a>20, a<=20, a=20 which one exit first?
what is surrogatekey ? In ur project in which situation u has used ? explain with example ?
Explain the shared cache and re-cache?