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?

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


Please Help Members By Posting Answers For Below Questions

How do you generate sequence number in datastage?

1101


Triggers,VIEW,Procedures

1227


Can you explain repository tables in datastage?

1411


What are transforms and what is the differenece between routines and transforms?

1066


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

1163


Define orabulk and bcp stages?

1126


What is quality stage?

992


If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?

2048


Why do we use link partitioner and link collector in datastage?

1139


Name the different types of Lookups in Datastage?

1264


Why we use surrogate key?

1239


Explain connectivity between datastage with datasources?

985


EXPLAIN SCD

1412


Can you explain kafka connector?

1314


What is the difference between orabulk and bcp stages?

1028