Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:42:44+00:00 2026-05-23T13:42:44+00:00

If I submit the following SQL statement to a database: SELECT setting_value FROM dba.system_settings

  • 0

If I submit the following SQL statement to a database:

SELECT setting_value 
  FROM dba.system_settings 
 WHERE setting_name = 'RequestWebServiceURL' 
    OR setting_name = 'UNITS' 
    OR setting_name = 'FACTOR'

I get results in this order:

setting_value
---------------
www.requestURL 
1 
degrees

Even though I had specified “UNIT” before “FACTOR” in the SQL.

The table is, however, sorted by setting_name, which is why I got results in this order. May be a silly question but the order of the result based on the above query be preserved? Database in this case is Sybase.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:42:45+00:00Added an answer on May 23, 2026 at 1:42 pm

    The ANSI means would be to use a CASE expression in the ORDER BY clause:

      SELECT setting_value 
        FROM dba.system_settings 
       WHERE setting_name IN ('RequestWebServiceURL', 'UNITS', 'FACTOR')
    ORDER BY CASE setting_name
               WHEN 'RequestWebServiceURL' THEN 1
               WHEN 'UNITS' THEN 2
               WHEN 'FACTOR' THEN 3
               ELSE 4
             END
    

    An ORDER BY clause is the only means of guaranteeing result set order. Otherwise, you’re likely to see insertion order.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Django when i send the following string from an ajax submit i get the
In the following example I get title from this form using html id=title .
I have the following code: if ($_POST['submit'] == Next) { foreach($_POST['info'] as $key =>
I have the following javascript: $.ajax({ type: "POST", dataType: "json", url: "/Home/Submit", data: {
I have the following code: <script type=text/javascript> function SubmitForm() { form1.submit(); } function ShowResponse()
Is it acceptable to submit from an http form through https? It seems like
I've got the following php code printing out the contents of a SQL table.
I have the following error: Notice: Undefined index: submit in C:\wamp\www\registration\register.php on line 6
When trying to submit my Application using Application Loader i am getting the following
i have the following javascript file named coupon.js - jQuery(document).ready(function(){ jQuery('.appnitro').submit( function() { $.ajax({

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.