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...

We need to compare two successive records of a table based
on a field. For example, if the table is CUSTOMER, and the
filed is Account_ID, To compare Account_IDs of record1 and
record2 of CUSTOMER table, what can be the query ?

Answer Posted / suman rana

select * from
(SELECT account_id , lead(account_id, 1, 0) over (order by
1) nxt_account_id FROM customer)
where account_id = nxt_account_id

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are synonyms used for?

983


How many memory layers are in the oracle shared pool?

1107


What is the simplest tool to run commands on oracle servers?

957


What view(s) do you use to associate a users SQLPLUS session with his o/s process?

2309


Explain user account with reference to oracle.

929


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1939


How would you go about verifying the network name that the local_listener is currently using?

1996


What is tns service name?

1074


What is SQL access advisor in Oracle?

1138


What is the difference between primary key and unique key and foreign key in oracle?

921


How to connect to oracle using service name instead of sid?

964


Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun

2130


Why we use bulk collect in oracle?

973


How do I know if oracle client is installed on windows?

956


Does oracle partitioning improve performance?

947