Ask a Question related to ASP, Design and Development.

  1. #1

    Default quick question

    if you want to select top 100 records, you will use

    SELECT TOP 100 *
    FROM tableName

    Is there anyone knows how to find bottom 100 records?

    Thanks.

    Karen


    Karen Guest

  2. Similar Questions and Discussions

    1. very quick question
      In my database a field is designated as 0 or -1 . When i make my form how do i set up the drop down menu so that the user chooses yes or no and...
    2. Quick CSS question
      Hi, I have a css file that I used when building my template. Now that I'm building additional pages from the template, do I edit the same css file...
    3. quick MX question....
      how do you get rid of that window on the right where it says 'color swatches', 'components', etc.. it really bothers me, it makes the working area...
    4. A Quick Question
      Does anyone know if it is possible to create a Flash movie that has the ability to let the user click on a button to begin the installation of a...
    5. QUICK SSA QUESTION
      AIXers, I'm looking for a quicker way to determine the physical locations of ssa drives in a SSA drawer w/o having to use diag/ssa service aides...
  3. #2

    Default Re: quick question

    try :

    select top 10 * from tableName order by 1

    "Karen" <karen_lau@hotmail.com> wrote in message
    news:eUOlicWRDHA.3796@tk2msftngp13.phx.gbl...
    > if you want to select top 100 records, you will use
    >
    > SELECT TOP 100 *
    > FROM tableName
    >
    > Is there anyone knows how to find bottom 100 records?
    >
    > Thanks.
    >
    > Karen
    >
    >

    Chao Gao Guest

  4. #3

    Default quick question

    In the scenario if you have clustered index on a column of
    this table, you can use order by clause (with descending
    order) on that column

    SELECT TOP 100 *
    FROM tableName
    ORDER BY clusteredcol DESC

    >-----Original Message-----
    >if you want to select top 100 records, you will use
    >
    >SELECT TOP 100 *
    >FROM tableName
    >
    >Is there anyone knows how to find bottom 100 records?
    >
    >Thanks.
    >
    >Karen
    >
    >
    >.
    >
    sender Guest

  5. #4

    Default quick question

    User order by descending clause

    Select top 100 * from tablename order by fieldname desc
    >-----Original Message-----
    >if you want to select top 100 records, you will use
    >
    >SELECT TOP 100 *
    >FROM tableName
    >
    >Is there anyone knows how to find bottom 100 records?
    >
    >Thanks.
    >
    >Karen
    >
    >
    >.
    >
    Ricky Guest

  6. #5

    Default Re: quick question

    I want to say thank to all of you. It is really helpful.

    Thanks.

    Karen

    "Karen" <karen_lau@hotmail.com> wrote in message
    news:eUOlicWRDHA.3796@tk2msftngp13.phx.gbl...
    > if you want to select top 100 records, you will use
    >
    > SELECT TOP 100 *
    > FROM tableName
    >
    > Is there anyone knows how to find bottom 100 records?
    >
    > Thanks.
    >
    > Karen
    >
    >

    Karen Guest

  7. #6

    Default Quick Question

    In my asp.net page I am currently showing an XML Document
    using the XML Object. What I am trying to accomplish is in
    the tags of the XMLDocument adding HTML as Below

    <PowerViewXMLDocument>
    <Row>
    <C001>
    Data for row 1<Span style="BACKGROUND-
    COLOR: blue">Some Text</Span>
    </C001>
    </Row>
    <Row>
    <C001>Data for row 2</C001>
    </Row>
    ...
    </PowerViewXMLDocument>

    Simply put....trying to color the background of some text
    by inserting HTML tags into the XML. Is this possible? Is
    there a better way?
    Thanks for the help!

    Jorell
    Jorell Guest

  8. #7

    Default Quick question

    how can I count specific charaters in a string?

    like the amount of backslashes in-

    "D:\Inetpub\site\this\string"



    TIA


    Qwip Guest

  9. #8

    Default Re: Quick question

    sString = "D:\Inetpub\site\this\string"
    iNumberOfSlashes = UBound(Split("\" & sString, "\")) - 1

    Ray at work


    "Qwip" <asdas@emailasdasd.com> wrote in message
    news:eh3tqg6gDHA.3784@tk2msftngp13.phx.gbl...
    > how can I count specific charaters in a string?
    >
    > like the amount of backslashes in-
    >
    > "D:\Inetpub\site\this\string"
    >
    >
    >
    > TIA
    >
    >

    Ray at Guest

  10. #9

    Default Re: Quick question



    [url]http://www.aspin.com/func/search?cob=aspkey&qry=count+characters[/url]


    --
    ================================
    [url]http://www.ASPkey.net/[/url]
    A Resource Site for Web Developers
    *Free OnLine web Tools
    *Free development services
    ================================


    "Qwip" <asdas@emailasdasd.com> wrote in message
    news:eh3tqg6gDHA.3784@tk2msftngp13.phx.gbl...
    > how can I count specific charaters in a string?
    >
    > like the amount of backslashes in-
    >
    > "D:\Inetpub\site\this\string"
    >
    >
    >
    > TIA
    >
    >

    TJS Guest

  11. #10

    Default Re: Quick question

    Thank you
    Thank you


    "Qwip" <asdas@emailasdasd.com> wrote in message
    news:eh3tqg6gDHA.3784@tk2msftngp13.phx.gbl...
    > how can I count specific charaters in a string?
    >
    > like the amount of backslashes in-
    >
    > "D:\Inetpub\site\this\string"
    >
    >
    >
    > TIA
    >
    >

    Qwip Guest

  12. #11

    Default Quick question

    Hi,

    Is there any command to know which application/program is listening
    on a given socket.

    For example, some daemons are running on the current system.
    I want to know what application is listening on socket 1234.

    Is this possible??

    Thanks in advance.
    tvr1729
    tvr Guest

  13. #12

    Default Re: Quick question

    On 15 Nov 2003 18:21:06 -0800, tvr wrote:
    > Hi,
    >
    > Is there any command to know which application/program is listening
    > on a given socket.
    >
    > For example, some daemons are running on the current system.
    > I want to know what application is listening on socket 1234.
    >
    > Is this possible??

    netstat -ta # maybe
    Bit Twister Guest

  14. #13

    Default Re: Quick question

    Bit Twister <BitTwister@localhost.localdomain> wrote in message news:<slrnbrdnoi.6ks.BitTwister@wb.home>...
    > On 15 Nov 2003 18:21:06 -0800, tvr wrote:
    > > Hi,
    > >
    > > Is there any command to know which application/program is listening
    > > on a given socket.
    > >
    > > For example, some daemons are running on the current system.
    > > I want to know what application is listening on socket 1234.
    > >
    > > Is this possible??
    >
    >
    > netstat -ta # maybe
    Nestat displays all the ports...
    I want a specific port.

    tvr
    tvr Guest

  15. #14

    Default Re: Quick question

    On 16 Nov 2003 18:20:02 -0800, tvr wrote:
    >
    > Nestat displays all the ports...
    > I want a specific port.
    Then pipe it through grep.
    Bit Twister Guest

  16. #15

    Default Re: Quick question

    Hi,

    Try the open source command 'lsof'. If you don't have it get it here:

    [url]http://freshmeat.net/projects/lsof/[/url]

    If you are working on Solaris 5.8 > then 'pfiles' is a good choice, however
    you will have to filter the output to get the info you need in this case.

    --- aj ---

    "tvr" <tvr1729@yahoo.com> wrote in message
    news:6f4d9f70.0311151821.1cd060bd@posting.google.c om...
    > Hi,
    >
    > Is there any command to know which application/program is listening
    > on a given socket.
    >
    > For example, some daemons are running on the current system.
    > I want to know what application is listening on socket 1234.
    >
    > Is this possible??
    >
    > Thanks in advance.
    > tvr1729

    Andrew Jury Guest

  17. #16

    Default Re: Quick question

    [email]tvr1729@yahoo.com[/email] (tvr) writes:
    > Bit Twister <BitTwister@localhost.localdomain> wrote in message news:<slrnbrdnoi.6ks.BitTwister@wb.home>...
    > > On 15 Nov 2003 18:21:06 -0800, tvr wrote:
    > > > Hi,
    > > >
    > > > Is there any command to know which application/program is listening
    > > > on a given socket.
    > > >
    > > > For example, some daemons are running on the current system.
    > > > I want to know what application is listening on socket 1234.
    > > >
    > > > Is this possible??
    > >
    > >
    > > netstat -ta # maybe
    >
    > Nestat displays all the ports...
    > I want a specific port.
    >
    Use netstat -ta | grep xxx

    But I think that is different for different Unixes.

    For Linux, that is netstat -anp | grep 1234
    and you can just list your own processes or you have to be root.

    There are some unixes without such a command.

    Install and try lsof or fuser.

    Uli

    --
    '''
    (0 0)
    +------oOO----(_)--------------+
    | |
    | Ulrich Herbst |
    | |
    | Tel. ++49-7271-940775 |
    | |
    | [email]Ulrich.Herbst@gmx.de[/email] |
    +-------------------oOO--------+
    |__|__|
    || ||
    ooO Ooo
    Ulrich Herbst Guest

  18. #17

    Default Re: Quick question

    Ulrich Herbst <ulrich.herbst@gmx.de> wrote in message news:<877k1zgc2h.fsf@pculi.herbst.fam>...
    > [email]tvr1729@yahoo.com[/email] (tvr) writes:
    >
    > > Bit Twister <BitTwister@localhost.localdomain> wrote in message news:<slrnbrdnoi.6ks.BitTwister@wb.home>...
    > > > On 15 Nov 2003 18:21:06 -0800, tvr wrote:
    > > > > Hi,
    > > > >
    > > > > Is there any command to know which application/program is listening
    > > > > on a given socket.
    > > > >
    > > > > For example, some daemons are running on the current system.
    > > > > I want to know what application is listening on socket 1234.
    > > > >
    > > > > Is this possible??
    > > >
    > > >
    > > > netstat -ta # maybe
    > >
    > > Nestat displays all the ports...
    > > I want a specific port.
    > >
    > Use netstat -ta | grep xxx
    >
    > But I think that is different for different Unixes.
    >
    > For Linux, that is netstat -anp | grep 1234
    > and you can just list your own processes or you have to be root.
    >
    > There are some unixes without such a command.
    >
    > Install and try lsof or fuser.
    >
    > Uli
    >
    Guys,

    I am familiar with piping and tried that earlier.
    Netstat give some stream information
    but not the actual process that is listening.

    I dont know about others but in solaris it is giving out stream information
    for example:

    host:~ > netstat -a | grep 8001
    3003c3ba8d8 stream-ord 300116d0e50 00000000 8001

    So you see, I cant make out what the process is.

    Anyway, thanks for the replies
    tvr
    tvr Guest

  19. #18

    Default Re: Quick question

    > So you see, I cant make out what the process is.
    I'm a newbie to linux so maybe I'm off the mark here, but I found the -p
    returns the name of the program on that port. It seems like you netstat
    installed cause you're getting stuff back, what do the man pages say for
    programs?


    Flip Guest

  20. #19

    Default Re: Quick question

    "Flip" <[remove]phenry_w@hotmail.com> wrote in message news:<eP4vb.5658$G1.26726@tor-nn1.netcom.ca>...
    > > So you see, I cant make out what the process is.
    > I'm a newbie to linux so maybe I'm off the mark here, but I found the -p
    > returns the name of the program on that port. It seems like you netstat
    > installed cause you're getting stuff back, what do the man pages say for
    > programs?

    Man pages say,
    -p is used to "Show the net to media tables."

    Thanks
    tvr
    tvr Guest

  21. #20

    Default Re: Quick question

    tvr wrote:
    > Man pages say,
    > -p is used to "Show the net to media tables."
    Have you got lsof? If so this may show what program is using the socket
    you mention, "lsof -n -i" may be what you need.

    ---
    Money can't buy happiness, but allows a choice of misery.

    Andy Hibbins Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139