Mani
Quaerendo Invenietis
Originally posted by Mani Ram:
The record selected in step #3 should give you the second highest element.
Originally posted by Joe Ess:
Unfortunately you've changed the result by measuring it. What was once the second highest element is now the highest!
Mani
Quaerendo Invenietis
Originally posted by Mani Ram:
But I have nullified the changes by inserting the record again in step #4.
At the moment when I picked up the record, it was the highest. But at the end of step #4, what I have in hand is the second highest!
Originally posted by Amit Saste:
pls tell me to find out second highest element from the database using sql.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
And my joking answer: use SQL to return all the elements. Find highest. Find second highest.
Regards Pete
Originally posted by Amit Saste:
pls tell me to find out second highest element from the database using sql.
Expect trouble as an inevitable part of life and repeat to yourself the most comforting words of all: This, too, shall pass." --Ann Landers
Don't get me started about those stupid light bulbs. |