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 |
|
madhu.paddu
Starting Member
6 Posts |
Posted - 2007-12-20 : 01:50:12
|
| hi friends can any one give syntax/suggestion to retrive the top two records from a table.regradsmadhunukala |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2007-12-20 : 01:52:20
|
| Select Top 2 * From YourTableChiraghttp://www.chirikworld.com |
 |
|
|
madhu.paddu
Starting Member
6 Posts |
Posted - 2007-12-20 : 01:55:59
|
| how to get the records in pl/sqlnukala |
 |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2007-12-20 : 02:23:05
|
| This is not an Oracle Forums, for Oracle related queries you can check out www.dbforums.com just a shot.. Select * From YourTable Where RowNum <=2I m not sure whether it will work or not.. !!!Chiraghttp://www.chirikworld.com |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-12-20 : 03:24:07
|
quote: Originally posted by madhu.paddu how to get the records in pl/sqlnukala
I think you can use LIMIT functionAs said post your question at Oracle forumsMadhivananFailing to plan is Planning to fail |
 |
|
|
sunsanvin
Master Smack Fu Yak Hacker
1274 Posts |
Posted - 2007-12-20 : 04:13:22
|
quote: Originally posted by chiragkhabaria This is not an Oracle Forums, for Oracle related queries you can check out www.dbforums.com just a shot.. Select * From YourTable Where RowNum <=2I m not sure whether it will work or not.. !!!Chiraghttp://www.chirikworld.com
correct oneVinodEven you learn 1%, Learn it with 100% confidence. |
 |
|
|
|
|
|