Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / segu satish

answer for 3rd question:

select * from emp where rowid =(select max(rowid) from emp)

Is This Answer Correct ?    13 Yes 1 No

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

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

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / reddy obul

__for 2nd question answer is:
select * from table where rowid<8 minus select * from table
where rowid<5
__for 3rd quesion answer is:
select * from emp where rowid in(select max(rowid) from emp)

Is This Answer Correct ?    9 Yes 9 No

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / sarath

for 2nd:
select * from table where rownum<8 minus select * from table where rownum<5;

Is This Answer Correct ?    4 Yes 4 No

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / ravi

1 answere : we can use @rownum =1 and reject the first record....

Is This Answer Correct ?    0 Yes 0 No

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / subbu

2nd answer:

select * from(select rowid from tablename where rowid between 5 and 7);

Is This Answer Correct ?    0 Yes 2 No

1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only?..

Answer / ritesh chatterjee

Answer to Qust 1

Sed 1d "Dataset Name" from unix by this way you can delete
1st record from dataset,in place of 1 you can place any number.

Answer to Question 2

select * from tablename
where rowid between 2 and 7;

Answer to 3rd qus:-

select * from tablename
where rownum = 40;

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Data Stage Interview Questions

How can i approach to write datastage 7.5 Certification? and how much they will charge for examination .What exactly should i do? Can anyone guide me plz?

2 Answers  


How can we read latest records in a text file named file1.txt using seq file stage only? file1 having 100 records in that 5 record sare latest records.How can we read that latest records?

3 Answers   Caterpillar,


Can anybody tell me in detail any complex datastage job? I have worked only in direct load and full refresh jobs.But in all interviews this question arises

1 Answers   TCS,


In Informatica,for the table I can find coreesponding dependent mappings.Likewise can I find the dependent jobs with all the information by using the table name

0 Answers   TCS,


Is there any possibility to generate alphanumeric surrogate key?

3 Answers   ABC, IBM,


Emp login_timestamp Logout_timestamp A,2019-02-01 02:24:15,2019-02-01 04:59:42 B,2019-03-29 14:43:30,2019-03-29 20:22:00 ABC,2019-03-29 12:43:00,2019-03-29 23:22:59 In the above calculate the duration of hours spent in office for each emp in datastage.

1 Answers  


In merge stage can we update the values?

3 Answers   TCS,


What are the processing stages?

0 Answers  


what is the main differences between Lookup, Join and Merge stages?

9 Answers   HCL,


Hi Vijay here For Four CPU's how many nodes will required?

4 Answers   TCS,


What is the use of hoursfromtime() function in transformer stage in datastage?

0 Answers  


In Datastage, how you can fix the truncated data error?

0 Answers  


Categories