Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
kamii47
Constraint Violating Yak Guru
353 Posts |
Posted - 2006-03-19 : 11:00:54
|
| i want to know that how can we select the nth maximum salary or anynumeric value from a column of a table which contain 1 or 5 lakh data inoracle as well as sql server.point to be noted we have to minimize the subqueries and this query isable to get data for the nth value which is any postive number.help me. this query is asked to me more than 5 interviews. |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-20 : 01:25:37
|
| [code]Select min(col) from( Select top N col from yourTable Order by col DESC -- Replace N by value) T[/code]Also refer this for more interview questionshttp://vyaskn.tripod.com/iq.htmMadhivananFailing to plan is Planning to fail |
 |
|
|
DBASlut
Yak Posting Veteran
71 Posts |
Posted - 2006-03-21 : 19:21:49
|
| .. in an interview say this, 'you want me to solve a complex query problem that seems to plague a lot of companies without compensation? I may be beautiful, heck maybe even slutty but I'm not dumb. you want me to solve that, I charge 110.00 per hour for consulting.' |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-22 : 01:07:21
|
MadhivananFailing to plan is Planning to fail |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2006-03-22 : 01:58:39
|
"I charge 110.00 per hour for consulting"At that price you are definitely a slut, and you didn't get the job. Sorry ... Kristen "Reassuringly expensive" |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-03-22 : 05:43:05
|
Lisa i think you need to post your pic so we can be objective about your sluttines Go with the flow & have fun! Else fight the flow |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2006-03-22 : 05:55:01
|
| "Object orientated sluttiness" ... hmmm ... |
 |
|
|
|
|
|