How can I show all results from my DB in reverse row order?

So if I have three rows in the database, called John, Steve,
Tom, if you usually display all results from a database to a web
page, you will get just this order. I have found order by SQL
syntax, but this orders numerically or alphabetically. How can I
order the table contents backwards so that the rows wil read Tom,
Steve, John?
Thanks,
Mark

"15266" <[email protected]> wrote in message
news:e4kbs9$poi$[email protected]..
>I think it should be something like:
>
> SQLQuery = "SELECT * FROM HCT122 ORDER BY ?firstvalue?
DESC"
>
> but how I define what is the first or last row name or
number, without
> referring to its name?
You misunderstood Joe's answer. You don't have to know any of
that. First
and Last were names Joe chose for the columns holding the
first and last
name. Since you mentioned first names as your values, he used
First (his
first name column) to order by.
In order to sort something, you have to know what it is
you're sorting.
Since you're unwisely using SELECT *, I'll make up column
names for you.
SELECT AB, BC, CD, DE
FROM HCT122
ORDER BY AB DESC
Now all my records come back in reverse order by column AB.

Similar Messages

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • How can I remove all photos from my iphone?

    How can I remove all photos from my iphone?

    Hi pjdemeo,
    I understand you want to delete all of the photos from your iPhone.  As a precaution, I would suggest importing the photos and videos from your iPhone into your computer.  This will give you a backup for the images, and after import you will be asked if you want to delete the photos.
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    https://support.apple.com/en-us/HT201302
    The iPhone User Guide has instructions for deleting photos directly from the device:
    Organize photos and videos - iPhone
    http://help.apple.com/iphone/8/#/iphf14943e
    Delete a photo or video from Photos. Tap the Photos tab, tap the photo or video, tap , then tap Delete Photo or Delete Video. Deleted photos and videos are kept in the Recently Deleted album on iPhone, with a badge showing the remaining days until the item is permanently removed from iPhone. To delete the photo or video permanently before the days expire, tap the item, tap Delete, then tap Delete Photo or Delete Video. If you use iCloud Photo Library beta, deleted photos and videos are permanently removed from all iOS 8.1 devices that use iCloud Photo Library beta with the same Apple ID.
    Cheers,
    - Judy

  • HT5557 how can you remove all books from books purchased file

    how can you remove all ibook from purchased file

    When I connected my iPhone, it automatically synced right away. I did click on the iPhone button and saw the contents of my iPhone including the Books. When I clicked that 'Books' button. But since the book in question was not on my iPhone, it did not show up in the list so I could not select it like you suggested. Therefore I could not sync that book to my iPhone. Thanks for the help though.
    The good news is I did manage to get the book on to my iPhone.
    When her book came out for preorder about a year or two ago, I looked for it in the iTunes store and preordered it. About a week after it came out, I found what was basically the same book for a dollar more. ($7.99 and $8.99) I figured there must be something additional (features) in the $8.99 book. So I bought it too. As far as I could tell though, they were exactly the same. So I decided to hide one of them so they would not both show up in my Library. Anyway, I went to my iTunes/iBooks account and managed the hidden books area. I unhid the Demi book and then it showed up in my iCloud to download on my iPhone. Now they are both on my computer so I need to figure out which one is the other one and hide it. So then I can delete it from my computer just have the one that is on my iPhone on both systems. But at least I found a way to get a copy on my iPhone.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

  • How can i reopen all windows from last session on safari 6?

    how can i reopen all windows from last session on safari 6?
    finally found it .... sorry ...
    Response:
    System Preferences > General
    Uncheck "Close windows when quitting an application"
    Close
    Ensure you have empty the Homepage on Safari
    Safari > Preferences
    Homepage = empty

    Or...  from the Safari menu bar click History > Reopen All Windows from Last Session

  • How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album :)?

    How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album, i want them in the camera roll ?

    How can I delete EVERY THING off my Mac and have it like new?
    Boot from the software install DVD and do an "erase and install" when prompted.

  • How can I show all missing content in iTunes library?

    How can I show all missing content (ie. show the exclamation mark against each track)? I can restore the missing content but need to know what is missing without running each track.

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    tt2

  • How can I show all of my keywords in iPhoto.  there seems to be a limit on the number that can be used.

    How can I show all of the keywords used in iPhoto.  There seems to be alimit on how many can be displayed.

    When I click the "Edit Keywords" button, I get a list of all keywords. I just added several hundred random keywords, and they are all visible, when I scroll the list in "Edit Keywords" view.
    Have you the scroll bars hidden? You can enable the scroll bars in the System Preferences > General tab:   enable "Show Scroll bars - always".

  • How can I save all photos from Iphone to my MacBook?

    How can I save all photos from Iphone to my MacBook?

    Here's a few simple steps to help you save the video messages: http://sillytechie.com/how-to-save-skype-video-messages
    This is a tutorial for mac users only. Hope it helps!

  • How can I prevent all workbooks from opening automatically when Excel starts?

    I am using Office 2011 (14.2.1) service pack 2 on Mac os X 10.7.3. Whenever I open Excel, all my workbooks open.  How can I prevent all workbooks from opening automatically when Excel starts?
    Please Help, Thanks

    You can look at: Stop Autoplay: https://addons.mozilla.org/firefox/addon/1765

  • F4IF_INT_TABLE_VALUE_REQUEST - how can I return all values from the line?

    Hi,
    I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values.  The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB.  ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
    How can I see all the values in the line I select in the return table?
    My code is as follows:
      DATA: tbl_cawnt LIKE cawnt OCCURS 0,
            wa_cawnt LIKE cawnt,
            BEGIN OF tbl_list OCCURS 0,
              atinn LIKE cawnt-atinn,
              atzhl LIKE cawnt-atzhl,
              atwtb LIKE cawnt-atwtb,
            END OF tbl_list,
            wa_list LIKE tbl_list,
            tbl_return LIKE ddshretval OCCURS 0,
            wa_return LIKE ddshretval,
            tbl_fields LIKE dfies OCCURS 0,
            tbl_dynp LIKE dselc OCCURS 0.
      REFRESH: tbl_list, tbl_cawnt.
      SELECT atinn atzhl atwtb
        FROM cawnt
        INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
        WHERE spras EQ sy-langu.
      LOOP AT tbl_cawnt INTO wa_cawnt.
        CLEAR wa_list.
        MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
              wa_cawnt-atinn TO wa_list-atinn,
              wa_cawnt-atzhl TO wa_list-atzhl.
        APPEND wa_list TO tbl_list.
      ENDLOOP.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ATWTB'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          value_org       = 'S'
        TABLES
          value_tab       = tbl_list
          return_tab      = tbl_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Thanks!

    Hi,
      Use the structure DYNPFLD_MAPPING
    With this internal table you can easily define that you want to return
    other columns of the hit list in addition to field RETFIELD to the
    screen.
    In this IT you can MAP the screen fields to the serch help screen fields this has three fields
    FLDNAME this is the field anme from the search help
    FLDINH This has to be blank which would be field with the field value that you want to map
    DYFLDNAME THis is the screen field name.
    So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
    Regards,
    Himanshu

  • How can I view all photos from a specific year?

    How can I view all photos taken in one calendar year like 2010? Is there a way to filter this way?

    Yes, create a smart album or a search with a "Date" rule or a Calendar rule.
    For example: New > Smart Album
    Add Rule:  Date
         Capture year is 2010.
    or: Add Rule: Calendar
    and click-step  the year back to 2010:
    In the Calendar it is a bit cumbersom to select a whole year, because it will only show 3 month at once. Select the first day and then scroll to to the end oft the year.

  • How can I share all photos from all devices automatically

    How can I share all photos with all my devices automatically?

    Hi pampachomski,
    I'm a bit unclear on your exact configuration or the devices in question, but from your description it sounds like you may want to look into the new iCloud Photo Library feature:
    Apple - iCloud - Photos
    iCloud Photo Library beta FAQ - Apple Support
    Regards,
    - Brenden

Maybe you are looking for

  • Can anyone tell me if this is something i should worry about?

    I just repaired permissions and it says this about ARD. Is this something i should worry about? Repairing permissions for "MacBook Pro" Reading permissions database. Reading the permissions database can take several minutes. Warning: SUID file "Syste

  • USB is no longer recognised by Macbook Pro

    I was trying to follow the instructions from this website: http://www.macworld.com/article/2056561/how-to-make-a-bootable-mavericks-install -drive.html to help my friend reboot her laptop. Prior to this my USB has never had a problem, and I was prepa

  • Different values between Rich Client and Web Intelligence

    Hi all, our landscape is BO Edge 4.1 SP2 Patch 5 we just create a report in Web Intelligence with a query bics from BW We discovered that sometimes the report retrives fake values from BW: the same report refreshed in Rich Client shows correct values

  • Windows insallation programm doesn't show my Partition

    Hey everyone, i want to install windows xp professional (version 2002) on my MacBook pro 13". I made a partition with 44 gb with bootcamp and clicked on "start installation". After the restart, the windows installation programm starts. I follow the i

  • Windows 10 fails to update from build 9860

    Could it be that these devices prevent an update of W10? Reports from $Windows.~BT\Sources\Panther\setuperr.log 2015-02-12 18:13:12, Error                 CONX   Found wireless device Intel(R) Dual Band Wireless-AC 7260 [pci\ven_8086&dev_08b2&subsys_