|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SELECT TOP returns all record?
Hello,
Does using TOP return first all records before the total number of records you specify? "SELECT TOP 1 FROM TABLE" cheers, asptips |
|
#2
|
||||
|
||||
|
using 'TOP anynumber' will only return only that number of records. when using TOP it is best to use an ORDER BY clause.
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > SELECT TOP returns all record? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|