Is it possible to set the database with nulls first for all its tables ?

Hello,
I have a schema of 117 tables and I would like Oracle to behave nulls first when doing any order by on any tables.
Is there a way to tell that respectable old database server to do such a thing ?
As it is today, I have to write some custom DAO specific to Oracle just so as to have a nulls first in the sql statements.
Kind Regards,

user573224 wrote:
I have a schema of 117 tables and I would like Oracle to behave nulls first when doing any order by on any tables.Basically this is an application (sql) issue. If you do not code explicitly, ascending ordering is default and also means that nulls last is the default.
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2171079
As 'nulls first' belongs to order by clause of select statment, this seems like a question for the SQL forum. {forum:id=75} That you happen to run sql on XE does not matter.
As it is today, I have to write some custom DAO specific to Oracle just so as to have a nulls first in the sql statements.Changing how a database engine behaves seems like the opposite of dbms agnostic application, if that's the purpose. Also in general, database agnostic/ignorant applications are often considered a sure way to unscalable and unmanageable systems.
One could also consider that customers having Oracle as part of their infrastructure, would like to see that applications make good use of Oracle's strong and highly capable features and options -- not treat it as some sort data dumping bin.
(Ok, granted, with XE this might not be true. Instead there are issues of limitations and lack of support (patches), that you might not want or can take on as an applications vendor.)
Btw, good to see that you've found a fix in sql for your problem, and thank you for reverting back with that to the forum!
Edited by: orafad on Dec 7, 2012 10:29 PM
Edited by: orafad on Dec 7, 2012 10:31 PM

Similar Messages

  • How to set the zoom out or in for all pages permanently?

    I wish to set my page size one size smaller than the default.
    The result of ctr - (zoom out) is exactly what I want (it decreases the size of text AND images). However this effect only lasts for the page I am currently on, as soon as I navigate to a different page (or just refresh the page I am at), it reverts back to the default size.
    I looked at Tools->Options->Content, however that deals only with text size (besides it looks only certain pages are affected by this setting anyway).
    In other words, how (or where) do I set my browser to automatically decrease size or 'Zoom Out' for all the pages I visit in order not to set it manually for every page every time.
    Regards
    PS.
    If this setting can be applied for individual users (I have a multi user PC) that would be even better, although I would be very grateful if I could just set it.
    PPS.
    Additional information. I just discovered it seems to be working now in normal browsing but not in private browsing, my apologies for the omission.

    Default FullZoom Level extension:
    https://addons.mozilla.org/en-US/firefox/addon/6965

  • How to set the magic wand tolerance once for all ?

    Each time i open illustrator i have to set the tolerance to the one i used last ime, it has not been saved
    In opposite to all other settings which are staying the same. how to save it once for all ?
    i tryed to saved my workspace , doesnt work
    in preference settings, nothing... !
    thanks for helping

    Two other suggestions: save it in the new document profile or open the preferences file (it's a text file, maybe the options are stored there and you can edit them)

  • Is it possible to connect the java with XL database

    Hi friends,
    Is it possible to connect the java with XL database.
    if it is possible can u send the detail for that .
    Thnax in Advance..............

    What the heck is a XL database?

  • Can I use  the database with as the ses as a regular database?

    I write a application base on SES recently, and I need to store some data in the database. Can I use the the database with ses?
    I can login using sqlplus login the database using the same pc as the ses installed, but I cannot login using sqldeveloper on other pc.
    I set ORACLE_HOME equals SES_HOME
    ORACLE_SID as ses

    I have similar requirement to connect to the database.
    I have removed those two lines from sqlnet.ora.
    However, when I using tnsping, I got below error
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=SES.us.oracle.com))(ADDRESS=(PROTOCOL=TCP)(HOST=144.25.165.5)(PORT=1521)))
    TNS-12541: TNS:no listener
    anythings else that I need to do

  • Is their a activeX api function to set the database option "database logging enabled" to true or false?

    Hello!
    I want to decide dynamically while running a sequence to log the results to a database or not.
    So I need to set the "database logging enabled" property by a activex function call.
    Does a activex api function exist? I didn't found one, or is their an other way to change the property value?
    Thanks and regards
    M. Brosig

    Hi,
    Ah! I understand.
    You can change the runtime properties from you sequence or inside your step by using the Lookup string of
    "RunState.Caller.Locals.DatabasesOptions.DisableDatabaseLogging"
    Use the TS API  PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) method with RunState.Caller.Locals as your ActiveX Reference. (where newValue would be True or False.)
    Depending at what level you perform this API method depends how many "RunState.Caller" you have in your lookup string.
    eg.
    My example of
    PropertyObject.SetValBoolean("DatabasesOptions.DisableDatabaseLogging", 0, newValue) with RunState.Caller.Locals as your ActiveX Reference is based on a step in MainSequence which has been called by the Process Model sequence.
    If you have a step in a Sub-Sequence of MainSequence then the lookup string would be
     "RunState.Caller.RunState.Caller.Locals" as the activeX reference.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Dynamic Portlet: Setting the database connection

    With OmniPortlet, I can set the database connection I wish to use for that instance of the portlet in the configuration, but I can't seem to find a way to accomplish this with Dynamic Page portlets. How can I configure what server/user the portlet is using?
    Thanks,
    Rick

    Damn. That is exactly what I was afraid of. We'll have dblinks all over the place!
    Is there a way to create multiple instances of the Dynamic Page Portlet that use different database providers, or is that impossible? (I'm somewhat new to Portal, so forgive me if that is an ignorant question)
    Thanks for the help!

  • Is it possible to set the firefox back button to a custom action in the context of a websocket connexion?

    Simply, is it possible to set the firefox back and forward button to custom javascript function to navigate in a websocket application.
    Thanks in advance

    You may get lucky, especially as Today is a "Sumo Day" with more contributors around than usual. Such a question tends to be slightly off topic, being a hack of a standard Firefox installation.
    What I would suggest is that you try other forums, either a specialist linux forum or the popular Mozillazine forums: http://forums.mozillazine.org/index.php

  • Is it possible to set the stateof a command button

    I want to call a function when the user presses a command button (left click), then wait until he releases the mouse button, then call a second function.
    Here is the code for EVENT_LEFT_CLICK:
    CallFunction_1(...)
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    CallFunction_2(...)
    My Problem is, that the button does not chage its state to "pressed", so it appears to the user that he has not clicked on it.
    Is there any possibility to set the command button th the pressed state?

    The reason for this is that the LEFT_CLICK event has not been processed yet. We allow you to "swallow" any event to basically eliminate the built in effect of that event. In your case you want the normal effect of the LEFT_CLICK event to occur (button appears pressed on the panel), but you also want to launch a loop to check when the mouse has been released. This is easily done through posting a deferred call. A deferred call allows the current event to be completed and then calls the deferred callback after that. So your code would be changed to:
    In LEFT_CLICK,
    CallFunction_1(...)
    PostDeferredCall (funcName, (void*)control);
    Then write a function "funcName" with prototype:
    void CVICALLBACK funcName (void *callbackData);
    and code:
    void CVICALLBACK fu
    ncName (void *callbackData)
    int control = (int)callbackData;
    int mouseLButton = 0;
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    CallFunction_2(...)
    This should solve your problem.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Is it possible to set lead time with reference to Inco term

    Is it possible to set lead time with reference to Inco term.I want to capture transit time in combination of Vendor & Material with reference to Inco term. Any other provision except the field of Plnd delivery time of Info record & GR processing time of Material Master.

    Hi,
    Your planned dely time should consider this.I think not possible.
    Thanks
    suresh

  • Is it possible to set the default colours in the swatches palette in Illustrator CS4?

    Is it possible to set the default colours in the swatches palette in Illustrator CS4? What I mean is replace the swatches default colour palette with my own, so that each time I create a new document it comes up with my colours rather than Illustrators.

    You might also consider using color groups with Illustrator. Let me know what you think. It may help you out with projects that use the same color preferences.
    Check out the tutorial here:
    http://www.adobe.com/designcenter/illustrator/articles/lrvid4019_ai.html
    Let me know if this helps you.
    Vicente Tulliano

  • REUSE_ALV_GRID_DISPLAY - updating the database with new values

    Hi,
    I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
    Thanks,
    Leanne

    Hi,
    The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
    I have coded the process as follows:
        when '&SUSPEND'.
          loop at tab
            where box = 'X'.
              update zzzz
                set status       = 'SP'
          endloop.
    Regards,
    Leanne

  • Setting the footer with the value of a cell - Excel 2010-2013

    Hi,
    is it possible to set the footer of a workbook with the value of a cell without using VBA code or macro?
    Thanks

    No; it is not possible to enter a formula that refers to cells in the header or footer. A VBA macro is the only way to set the header or footer to the value of a cell.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Forms 10g : How to set the Database Item property for an item dynamically ?

    Hello all,
    I have a requirement where I need to set the database item property of an item to TRUE/FALSE
    dynamically at runtime based on certain conditions.
    Earlier, in forms 6i I've used,
    Set_Item_Property (<item_name>, DATABASE_ITEM, PROPERTY_TRUE);
    But in Forms 10g it doesn't recognize this Database_Item property and gives a compilation error.
    Have I overlooked something or has this property become obsolete in Forms 10g ?
    If obsoleted what is the replacement property ?
    Regards,
    Sam

    Some options:
    1. Create a database-view, including the "real" column in databases where it exists and a "dummy"-column in databases where it doesn't exist.
    If that's not possible,
    2. set database="No" for your item and
    -- create a POST-QUERY-trigger which reads the data for that column from the database, if the column exists, and
    -- create a ON-UPDATE-trigger which includes an
    UPDATE_RECORD;
    UPDATE THETABLE SET
      THECOLUMN=thevalue
    WHERE  ROWID=:THEBLOCK.ROWID;3. Base your block on either a select-from-clause, a ref-cursor or a procedure to adjust he query-part,, for saving use a procedure.

  • Is it possible to set the project selection?

    The scripting guide tells me app.project.selection is read-only, so this might be a stupid question.  But I could swear I ran across a script recently that was able to select items in the project window (yes, it would be helpful if I could remember which script does this).  I'm hoping to write a script that will select in the project window all the comps that are queued for render.  Is it even possible to set the selection?

    Paul Tuersley over at aenhancers came up with the answer:
    http://www.aenhancers.com/viewtopic.php?f=8&t=1374&p=5243#p5243
    You add and remove items from the project selection by setting the item's .selected flag.

Maybe you are looking for

  • How to tracert to outside in ASA 5505/5520?

    Hi,everybody The tracert issue have troubled me for a long time. I don't know how to deal with it. Pls give me some advice. Thanks! Following is the details. The network have two firewall(ASA 5505,ASA 5520) placed in different cities. And all person

  • Adding field in Additional Tab page in CRMD_order

    hi all,         i want to add a field in the additional tab page in crmd_order Tcode, i did it by modifing the screen the strucutures are filled ex CRMT_SALES_BADI, CRMT_SALES_COM in the CRMC_MAP Tcode i have seen the field is added . wat are the fur

  • SetCurrentRowWithKey is not working for me

    I am very new to JDeveloper and attempting to do what seems like a very simple forward between pages. I have a Data Page that has Employee Roster information. I want to forward to a new page that has detailed information from an employee. I am using

  • Memory management problem

    hi everyone. I m trying to use OpenCV in After Effects. The problem is that OpenCV has its own management of memory. The AE memory management is kind of bound to the lock/unlock system for multi thread processing and is kind of difficult to use from

  • Blackberry desktop software glitch?!

    Hello my name is ashley,  I am not the brightest when it comes to smartphones because this is my first one!! (And I am actually very pleased with it.)but I have on teensy problem.  On the blackberry desktop software, in my media tab, it shows all the