follwing scenario two table using find maximum salary?
table a table b
101 xxx 1000 106 6500
103 yyy 5000 108 800
104 din 6000 109 7000
105 dsh 200 110 3000
Answers were Sorted based on User's Feedback
Answer / ankit kansal
Using Informaica
src-->>sq-->>rnk(sal,bottom,1)
-->>union-->>tgt
src-->>sq-->>rnk(sal,bottom,1)
http://deepinopensource.blogspot.in/
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / asdf
select id,name,max(sal) from table a;
select id,max(sal) from table b;
if u want to join two tables
select id,sal from table a,table b where a.id=b.id;
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / gd
select max(sal) from table a,table b in (select
a.id,a.name,a.sal,b.id.b.sal from table a, tableb where
a.id=b.id);
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / murali udayagiri
select greatest(sub.emp_max_sal,sub.emp1_max_sal) from
(select (select max(sal) from emp) emp_max_sal,(select max
(sal) from emp1) emp1_max_sal from dual) sub;
Thanks,
Murali Udayagiri
| Is This Answer Correct ? | 0 Yes | 2 No |
what is the hint? how to use it to reduce the query processing in program?
Insert else update option in which situation we will use
how to return multiple columes through through un-connect lookup?
What is the benefit of partitioning a session?
What is a diff between joiner and lookup transformation
16 Answers CTS, Satyam, TCS, UHG,
How can we use batches?
what is threshold error in informatica?
When do we use dynamic cache and static cache in connected and unconnected lookup transformations?
What does refresh system mean, and what are its distinctive choice?
how to get the first row without using rank t/r?
How to implement security measures using repository manager?
I am having a table with columns ID NAME 1 x and the requirement is to get the o/p like this 1 y ID Count(*) 1 z 1 3 2 a 2 2 2 b 3 c so write a sql query to get the id n how many times its count of repetition n there u shouldn't get the distinct(i.e id-3) Reply as early as possible