ETG assess "in order to" in the APEX SQL command window?

I need to recreate my table in order to change the order of the columns. When I use the SQL command window and run the SQL, it runs successfully, creates the table, but is not rearrange the columns.

This is expected behavior?

user648567 wrote:

Please update your forum profile with a real handle instead of 'user648567 '.

I need to recreate my table in order to change the order of the columns. When I use the SQL command window and run the SQL, it runs successfully, creates the table, but is not rearrange the columns.

What do you mean by "in order to"?

A clause using "ORDER BY" in a DEC (in SUMMIT or other anywhare) has no effect on the order of the columns , which is determined by the order in which the columns appear in the projection. It will affect the order in which the rows are returned from this query, and it will not determine the order in which lines will be returned by querying the new table in the future.

To change the order of columns, the columns in the SELECT of the ETG clause must be in a different order than the original table,

Tags: Database

Similar Questions

  • Access to SQL previously saved in the SQL command window

    Hi all

    If I kept some codes SQL in the SQL command window, should we not available to other developers when they click on the saved SQL tab? I saved an example query and one of my other developers can't see it. I don't see any setting available on the developer account that controls whether or not the account can see others saved SQL.

    If this is not allowed, then I see really the point of the drop in the saved SQL owner tab.

    Any advice?

    Thank you!!
    John

    My apologies - I've never used this tab so I was not aware of it.

    I played a little and it seems that if you are an administrator of the workspace, but your other user is just a developer, then in fact he or she cannot see your SQL. If you were to switch to the workspace administrators, they should be able to see.

  • help required on where in APEX SQL command

    Hi all!

    Someone knows how to use a url as a variable with the command reference WHERE?
    I have this url: http://10.10.10.2/apex/f?p=116:20:6597653175650651:NO:P20_TEST_N3:1 and I would like to have the: 1 or all the rest (depending on the user's selection) at the end of the url as a variable of the order WHERE in the P20_TEST_N3 of my application page.

    Thanks in advance for your answer!

    Hello

    Is it possible that you create a sample to apex.oracle.com so I can see?

    Kind regards
    Jari

  • The Clause SQL command

    Hello

    Could someone please help me with this spacial "order by" requirement, which I couldn't do...

    Thanks in advance!

    drop table test;

    create table (test)

    number of col1,

    col2 number,

    number of col3,

    COL4 date);

    Insert test values (1, 10, 20, to_date (1 January 2014 ',' MON-DD-YYYY ""));

    Insert test values (2, 20, NULL, to_date (February 1, 2014 ',' MON-DD-YYYY ""));

    Insert test values (3, 10, 30, to_date (March 1, 2014 ',' MON-DD-YYYY ""));

    Insert test values (4, 10, 50, to_date (April 1, 2014 ',' MON-DD-YYYY ""));

    Insert test values (5, NULL, NULL, to_date (May 1, 2014 ',' MON-DD-YYYY ""));

    Insert test values (6, 10, 10, to_date (June 1, 2014 ',' MON-DD-YYYY ""));

    Insert test values (7, NULL, NULL, to_date (1 July 2014 ',' MON-DD-YYYY ""));

    Insert test values (8, 60, NULL, to_date (August 1, 2014 ',' MON-DD-YYYY ""));

    insert into test values (9, NULL, 60, to_date ('01-SEP-2014', 'MON-DD-YYYY'));

    insert into test values (10, 30, 80, to_date (October 1, 2014 ',' MON-DD-YYYY ""));

    insert into test values (11, NULL, NULL, to_date (1 November 2014 ',' MON-DD-YYYY ""));

    Insert test values (12, 120, 100, to_date (December 1, 2014 ',' MON-DD-YYYY ""));

    COMMIT;

    SELECT * FROM TEST;

    COL1 COL2 COL3 COL4

    ---------- ---------- ---------- ---------

    1 10 20 1ST JANUARY 14

    2 20 1 FEBRUARY 14

    3 10 30 1ST MARCH 14

    4 10 50 1 APRIL 14

    5 1 MAY 14

    6 10 10 1 JUNE 14

    7 1 JULY 14

    8 60 1 AUGUST 14

    9 60 01 - SEP - 14

    10 30 80 1 OCTOBER 14

    11 1ST NOVEMBER 14

    12 120 100 1 DECEMBER 14

    12 selected lines.

    This is the result I'm looking for:

    Order by COL4, but NULL in COL2 and COL3 values must appear in the last...

    COL1 COL2 COL3 COL4

    ---------- ---------- ---------- ---------

    1 10 20 1ST JANUARY 14

    3 10 30 1ST MARCH 14

    4 10 50 1 APRIL 14

    6 10 10 1 JUNE 14

    10 30 80 1 OCTOBER 14

    12 120 100 1 DECEMBER 14

    2 20 1 FEBRUARY 14

    5 1 MAY 14

    7 1 JULY 14

    8 60 1 AUGUST 14

    9 60 01 - SEP - 14

    11 1ST NOVEMBER 14

    12 selected lines.

    so, something like

    ORDER BY CASE when col2 is null or col3 is null then 1 or 0 end CSA, CSA col4

    HTH

  • a summary of the set which are accepted by the developer SQL commands...

    Sorry, I searched for a list of commands that are used by the SQL Developer such as "game check out | on", etc.

    Can someone point me to a list of these commands (equivalent to SQL * more set controls)?

    Thanks in advance!
    Tom

    Hi Tom,

    Try help | Table of contents | SQL Developer concepts and use. With the help of the SQL worksheet | SQL * more statements support and not supported in the SQL worksheet.

    What you see depends on your version of SQL Developer. Over time, SQL * more supported continues to improve.

    Kind regards
    Gary Graham
    SQL development team

  • Install the APEX on a virtual machine with 11g db xe

    Hello.

    I'll install APEX in my Centos 64 bit (guest) running in a VMWare on my Mac OS (host).

    I'm downloading:

    (1) database 11 g R2 XE
    (2) Developer SQL 3.1
    (3) APEX 3.1
    (4) Web server

    And I have a few questions:

    (1) it is necessary to install the instant client on mac to install APEX or it is possible to install it by using sqldeveloper?
    (2) if I need to install the instant client, its possible to use those http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html here to access a 11 g R2 xe or there is a specific version for this version of the DB?
    (3) could you please share your experience using the above configuration? :)

    Thank you

    When you install a database, you'll have to SQL * more as a tool to access. You don't need additional client software (including SQL Developer). In order to install the Apex, SQL * more is all you need (Setup Guide walks you through SQL * Plus the facility anyway). Why you would do in SQL Developer? It only complicated things.

    So:
    -Download and install 11g XE
    -Run SQL * more
    -Download and install Apex

  • query works not in the APEX but works in TOAD

    Hello

    I had major problems trying to build a LOV cascading. I narrowed the problem down to SELECT which it depends.

    I have the following:

    SELECT pasv.vendor_name
    pasv.vendor_site_code
    pasv.vendor_id
    pasv.vendor_site_id
    OF po_asl_suppliers_v pasv
    po_asl_documents_v padv
    po_asl_attributes_v paav
    WHERE pasv.owning_organization_id = 26
    AND pasv.item_id = 131089
    AND pasv.asl_id = padv.asl_id
    AND pasv.asl_id = paav.asl_id
    AND padv.document_type = 'COVERAGE '.
    ORDER BY pasv.vendor_name
    pasv.vendor_site_code

    This query works well as a TOAD, but when I run it in APEX "SQL commands" it comes up with the error "ORA-01722: invalid number ' and when I try to generate a report about this no return value (the values are returned when you run the same query in TOAD and SQL Developer)."

    Any advice would be great.

    Thank you
    Chris

    Work around:

    SELECT RPAD (SUBSTR (pasv.vendor_name, 1, 20), 20,' ') | » '|| RPAD (SUBSTR (padv.document_type, 1, 20), 20,' ') | RPAD (SUBSTR (padv.document_num, 1, 10), 20,' ') PROVIDER
    pasv.vendor_id
    OF po_asl_suppliers_v pasv
    po_asl_documents_v padv
    po_asl_attributes_v paav
    WHERE pasv.owning_organization_id = 26
    AND pasv.item_id = 131089
    AND pasv.asl_id = padv.asl_id
    AND pasv.asl_id = paav.asl_id
    ORDER BY pasv.vendor_name
    pasv.vendor_site_code

    There seems to be a problem with the 'COVER' in the first SQL. Even if it is that a field of VARCHAR2 in the APEX database doesn't. It works somehow the other tool we use.

  • How to completely uninstall the APEX?

    Hello

    I want to install and run Jenkins CI on localhost: 8080 but he pointed me still http://localhost: 8080/apex/f? p = 4950:1.

    I uninstalled Oracle 11 g Express Edition and it seemed to go away but the APEX is still on port 8080.

    Any tips?

    Thanks in advance.

    Hi 2938071,

    2938071 wrote:

    Please change your login username of "2938071" to something meaningful. Reference: Video tutorial how to change username available

    I want to install and run Jenkins CI on localhost: 8080 but he pointed me still http://localhost: 8080/apex/f? p = 4950:1.

    I uninstalled Oracle 11 g Express Edition and it seemed to go away but the APEX is still on port 8080.

    If Oracle DB is uninstalled, then it is not possible that APEX will always remain. As APEX Oracle is installed in Oracle DB, Oracle DB uninstallation will certainly remove it as well. Check if your browser renders page caching.

    If it's not the cached page, then check if you have another instance of Oracle DB installed on which runs Oracle APEX.

    There is no need to uninstall Oracle APEX, you use according to the webserver option you can change the port on which runs Oracle APEX.

    If you use Oracle APEX on built-in PL/SQL gateway (EPG), you can change the port by connecting to sqlplus with the SYS user and SYSDBA privileges and by running the following SQL command:

    EXEC DBMS_XDB. SETHTTPPORT (8090);

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/epg.htm#HTMIG29208

    Also, if you want to uninstall Oracle APEX, you can use the 'apxremov.sql' script to uninstall.

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/trouble.htm#HTMIG270

    Kind regards

    Kiran

  • Display of XML in the APEX problems

    Hello.

    Help pls, have an Oracle XE and APEX 4.2.1 when trying to display 1 data sell shema form DB (xmltype) (xml document example - 1116 symbols to sell table DB-) in the report of the APEX (SQL query type), in application Apex data report displayed not fully, as 500 symbols off 1116.

    What is and how to fix it?

    Police says:

    I'll try to explain my problem in detail.

    I create a report > report APEX Classic with 1 column and 1 row to display a 1 query xml data document form sql. These data should be displayed in a cell in report APEX > classic report, but as I mentioned earlier, the data in my cell completely visible, as 500 symbols off 1116.

    Is this clear?

    Not really. I don't know what is meant by "symbols" in an XML context. It would be more useful to see an explanation using standard SQL and XML terms such as rows/columns and documents, elements, tags, attributes. Illustrating the problem with an example on apex.oracle.com, it is usually the most effective way to get help. The report query view can also be useful.

    Note that the maximum size of an APEX report line (including all HTML) is also 32 K. This means that the size of these "symbols" (whatever they are) must be less than 29 bytes each for each of them to fit in a cell in a row, which can call this 'design' in question.

  • Creating a collection of a query at the Apex 4.2 is not complete the data in the collection.

    I have a process that creates a collection with data from several tables. The query returns multiple lines in the tab "Sql commands". The same query is used to create the collection 'Head before' and when I create a region with the source of the region as

    Select * from apex_collections where collection_name = "load_dashboard";

    At the time of the rendering of the page, shows me "no data found".

    What could be the problem? Are there requirements before creating the collection?

    Thanks in advance,

    Sriram

    Name of the collection must be uppercase. That's your problem.

    Denes Kubicek

    -------------------------------------------------------------------

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

    -------------------------------------------------------------------

  • The APEX on Oracle XE upgrade fails

    Operating systems: Windows 7 64-bit
    DB: Oracle XE 11g 2 32 - bit
    APEX: 4.0.2
    =============

    Trying to upgrade APEX within the database installation Oracle XE on Windows 7. The version of APEX that came with Oracle XE is 4.0.2. Try to upgrade to the point 4.1.1 and, since the SQL * Plus command line (ie. the "Run SQL Command", tool which comes with Oracle XE), I try to run @apexins.sql.

    He starts to run momentarily then closes just MS-DOS Windows. He can not find any Setup log to determine the cause.
    Please notify.

    When you run SQL * more via the ' execute the SQL command ' tool you do not set the working directory. " Starting a command prompt, run sqlplus. Your Setup log is probably is the directory where the sqlplus executable. i.e. C:\oraclexe\app\oracle\product\11.2.0\server\BIN\

    Open a Windows command prompt, change your working directory to which the script of apexin.sql is located, and then run sqlplus, connect to user SYS and run the apexins.sql script.

  • Windows Server 2003 external to the application of the Apex and listener Apex?

    Hi all

    I have oracle RAC INSTALLED on solaris with three knots. I have several users with the CCR. I want to install APEX so that each user can access APEX if they need. Based on the Google search I did is not clear for me. My goal is to stay away as much as possible of the production systems. Could you please tell me which method can be good to implement this? I think following methods but I don't know if they are correct.
    1 - Position the external Apex of Windows Server 2003
    2 - Place the Apex listener in Windows Server 2003
    3 - allow the user connect to the Windows Server to access Apex

    Thank you

    Hello

    APEX needs to be installed in a database. If you do not want to expose your RAC and use a separate instance of the database, users will not be able to access the data available in the CARS (unless you create database links, but you usually don't want that).
    You can install APEX Listener on your Windows 2003 to access the APEX facility in your RAC database. You must choose a J2EE container to host your listener of the APEX. See APEX listener installation guide for supported containers or search the forum or google to find out what other containers may be suitable for you (for example Apache Tomcat is not officially taken charge but able to accommodate the listener).
    You need to configure the firewall and/or rules of routing for all users may access the port used by the container.

    -Udo

  • Change the line color of the standard SQL report

    Hello

    I'm trying to follow this post to change the color of a line in the APEX SQL report. Change the color of line - report SQL Oracle APEX

    It is a little outdated and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg 4.2 APEX where I can put under condition of background color.


    I use Theme 13 (inheritance) and make a copy of the report area. Published, but could not find an equivalent section of this screenshot of the apex 3.1.

    Any help appreciated.

    William Wallace says:

    I'm trying to follow this post to change the color of a line in the APEX SQL report. Change the color of line - report SQL Oracle APEX

    It is a little outdated and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg 4.2 APEX where I can put under condition of background color.

    I use the theme 13 (legacy)

    Ugh.

    and make a copy of the report area. Published, but could not find an equivalent section of this screenshot of the apex 3.1.

    This suggests that you look at the definition of region page, or even simply the definition of region model. What you need here is a copy of the report model.

    1. go in Home > Application Builder > Application > shared components > models.

    2. Select theme 13 theme filter, the Filter Type reports and click OK.

    3. create a copy of the Standard report model by using the icon copy in the list.

    4. Select the new report template and edit it as shown in the thread linked to above, paying special attention to the content of the second post. (It is of generic column template definition page that contains the section in the screenshot).

  • Where is the DBMS output window when using the PL/SQL Editor in v1.5.5?

    I find the output window of DBMS when using the SQL worksheet, but where is when I run a PL/SQL procedure in the PL/SQL Editor window?

    I'm used to using TOAD (and want to use SQL Developer, because it's much better behaved when executing procedures, among other problems, TOAD refuses to reduce to a minimum when it executes a pl/sql procedure) and it allows me to edit a pl/sql procedure, enable the DBMS output window, run the proc, and have the DBMS lines show up in the said output window.

    I can't find the same functionality in SQL Developer. I've seen a lot of posts (this forum and a Google search), but they all talk about the SQL worksheet. This is not what I want.

    Any help would be greatly appreciated.

    Thank you.

    Hello
    After running PL/SQL procedure, I saw all the important information in the running tab (called Running - log) including DBMS_OUTPUT.put_line lines.
    Petr

  • Criteria of Score to drive assessed in order any?

    Hello

    Criteria of Score to drive assessed in order any?

    Thank you

    Hello Rahul,

    It will assess all of the values that meet the criteria and give the value with the highest score. It will not count double partition.

    See you soon!

    Shyam Garg

Maybe you are looking for

  • Problem of parachuting on iOS 9.3

    Hello world I just know that I have a problem with Airdrop since iOS 9.3 update. AirDrop no longer recognizes my contacts so I have to turn on the "everyone" option. When this option is enabled, sending is ok, but my contact's photo and the name stil

  • HP Envy 311na 700: HP Envy 700-311na - no monitor output work

    Hi, thanks for taking the time to read this. No.: G9B05EA #ABU Model n °: 700-311na My PC works absolutely fine for the last two months, until what I tried to put on yesterday.  My problem is that my screen displays "signal found" despite my branch a

  • Trnsferring document files

    How to transfer a file from the Microsoft Works word processor documents

  • Answering BlackBerry Smartphones

    I want to set up my curve to call voicemail and enter the password without having to type.  Is this possible and how do I do it? Thank you

  • JS/Redirector.NIQ removal process

    Hello! I get errors related to Trojan JS/Redirector.NIQ when I run any application under Windows or access any data associated with JS/Redirector.NIQ error pop ups and complete the entire process. I'm looking for the removal guide associated with the