1) In a dataset how to delete a single row?
2) i have 50 rows , i want to display 5-7 records only?
How to write the sql query?
3)i have 40 rows,i want to display last row? write sql query?
Answer Posted / srinu
1) using external filter we use command is sed we get
2)select * from (select rownum rno,emp.* from emp)
where rno in(5,6,7)
or
select * from (select rownum rno,emp.* from emp)
where rno between 5 and 7
or
select * from emp where rownum<8
minus
select * from emp where rownum<5
in first two are very efiiciency compare to third one
because in third iam using set operator
3)select * from emp where rowid=(select max(rowid) from emp);
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What are the difference types of stages?
what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees
project Steps,hits, Project level HArd things,Solved methods?
Name the different types of Lookups in Datastage?
disign the complex job in u r project?(they are aksing only complex job design and then data flow...)
file having these input and we have to get 3 output using same job Input 1 1 1 2 3 4 4 4 o/p1 o/p2 o/p3 1 1 2 2 1 3 3 1 4 4 4
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
Define Job control?
Can you explain repository tables in datastage?
How can you write parallel routines in datastage PX?
Have you have ever worked in unix environment and why it is useful in datastage?
Define ds designer?
Have you used Unstructured data?
What could be a data source system?
whom do you report?