Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2004, 02:00 PM
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default What's this pls %Number%

Hi,
Can any one Explain this to me:

select top %Number%
        Gou.[Domain] as 'Domain',
    Nog.[Name] as 'Name',

Thanks
SAMI

 
Old December 3rd, 2004, 03:56 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SELECT TOP n [PERCENT] where n is the number or pecentage of rows you wish to return. Including the optional PERCENT keyword limits the rows returned to a perecentage of the total number of rows.
 
Old December 3rd, 2004, 07:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Note:
SELECT TOP n ...
is more or less meaningless without an ORDER BY clause...

 
Old December 8th, 2004, 10:08 AM
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greate,
Can u guide me to some resources to learn more about that



Thanx in advance
SAMI

 
Old December 8th, 2004, 10:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

http://msdn.microsoft.com/library/de...qd_04_13ec.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation For Phone Number and Mobile Number dhruthi.ram99 Javascript How-To 12 October 30th, 2011 07:24 AM
Pls help me! hoailing22 ASP.NET 1.0 and 1.1 Basics 5 June 9th, 2005 09:02 PM
Pls help me hoailing22 ASP.NET 1.0 and 1.1 Basics 3 May 24th, 2005 11:08 AM
Pls!!! I need your Help!!! Ariel Classic ASP Databases 1 May 10th, 2005 02:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.