without the use of order by and connect by clause

Hi all

can I write a tree query without using a start with clause and connect by clause
and
can I order the names used in a select query without using the order by clause

those things are possible in the select...

dipuna wrote:
Hi all

can I write a tree query without using a start with clause and connect by clause

I think that no.

can I order the names used in a select query without using the order by clause

No.Why you do not want to use order by clause?

Tags: Database

Similar Questions

  • Is there a way in which I can download iBooks content directly to iCloud by car through my device (iPhone or iPad) without the use of a Mac? If it isn't, I suggest and ask for an update which includes my needs inside. Thank you

    Is there a way in which I can download iBooks content directly to iCloud drive through my device (iPhone or iPad),without the use of a Mac?

    Otherwise, I suggest and ask for an update which includes my needs inside. Thank you

    See synchronize ePub, Books author iBooks and PDFs with iBooks and iCloud - Apple Support.

    TT2

  • I would like to know how to download and install a trial version of the stand-alone version of Lightroom, without the use of the cloud.

    I would like to know how to download and install a trial version of the stand-alone version of Lightroom, without the use of the cloud.

    For some reason, since I work for most of my time in the areas where it is very difficult if not impossible to have access to the internet, I would like to have a standalone version of Lightroom to work on a photo library on my Mac HARD drive.

    The only option that I find on the Adobe site, try first to install CC.

    I'll be grateful for any help.

    Gianluigi

    Kindly try to Install Photoshop Lightroom from here.

  • without the use of union or union of all the

    Hello experts

    I have the following data below

    create the table t_me

    (

    first_one varchar (1000).

    second_one varchar (1000).

    third_one varchar (1000).

    week_needed varchar (1000)

    );

    insert into t_me values ('A', 'B', 'C', ' week 1 "');

    insert into t_me values ('A', 'B', 'C', ' week 1 "');

    insert into t_me values ('B', 'B', 'C', ' week 1 "');

    insert into t_me values ('C', 'A', 'C', ' week 2 "");

    insert into t_me values ('C', 'A', 'C', "3 week");

    insert into values of t_me ('B', 'C', 'B', "3 week");

    output desired without the use of union

    the characters first_one, second_one, third_one week_needed

    Week 1             A:                2               0              0

    Week 1             B:               1               3              0

    Week 1             C:               0                0              3

    Week 2             A:               0                1              0

    Week 2             C:               1                0              1

    Week 3             A:               0                 1             0

    Week 3             B:               1                 1              0

    Week 3             C:               1                 0              2

    Any help is appreciated. Thank you

    Hello

    If you want something that works in your version, you should tell what version it is, especially if this version is 12 years old.

    Here's a way to make the unpivot operator and rotate in Oracle 9:

    WITH cntr AS

    (

    SELECT LEVEL AS col_num

    OF the double

    CONNECT BY LEVEL<=>

    )

    unpivoted_data AS

    (

    SELECT week_needed

    col_num

    CASE col_num

    WHEN 1 THEN first_one

    WHEN 2 THEN second_one

    WHEN 3 THEN third_one

    AS END characters

    OF t_me

    CROSS JOIN cntr

    )

    SELECT week_needed, characters

    , COUNT (CASE WHEN col_num = 1, 1 END) AS first_one

    , COUNT (CASE WHEN col_num = END 2 THEN 1) AS second_one

    , COUNT (CASE WHEN col_num = END of the 3 THEN 1) AS third_one

    Of unpivoted_data

    GROUP BY week_needed, characters

    ORDER BY week_needed, characters

    ;

  • without the use of grouping sets

    Dear expert;


    I need help in the creation of this report without the use of the grouping sets. Any help is appreciated

    Week                                                          hours

    John                                                            24

    Tim                                                             1

    Mark                                                           16

    Adam                                                          10

    Subtotal (30/06/2013-06/07/2013) 66

    Adam                                                           7

    Subtotal (07/07/2013-08/07/2013) 7

    Month Total                                                   73

    Any help is appreciated. Thank you.

    see examples of data below. Thank you

    create table info_mech
    (
    
    req_name varchar(1000),
    beginwork_date date,
    endwork_date date
    );
    
    insert into info_mech values ('John', to_date('07/01/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/01/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('John', to_date('07/02/2013 10:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 19:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('John', to_date('07/05/2013 11:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 21:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Tim', to_date('07/02/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Tim', to_date('07/04/2013 09:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/04/2013 18:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    
    insert into info_mech values ('Mark', to_date('07/01/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/01/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Mark', to_date('07/02/2013 10:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 19:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Adam', to_date('07/05/2013 11:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 21:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Adam', to_date('07/08/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    
    
    
    

    Hello

    It's a good start.  Is this really what you want to GROUP BY?

    Group of (next_day (beginwork_date, 'Sunday') - 7 - next_day (beginwork_date, "Saturday))

    Looks like always, which evaluates to-6 or - 13, according to was looking for beginwork_date is a Saturday or not.  If you want something which returns a different value for each week?  I would like to use

    TRUNC (beginwork_date + 1, 'IW')

    which returns the Monday of the week even as beginwork_date.  (Always ISO weeks start on Mondays.  The 'magic number' 1 in the above expression reflects the fact that your startw week 1 day earlier, on Sunday.)

    UNION, you try will work.  Finally, you want 3 different levels of rollup, so eventually you will need a Union of 3 tracks, each with a GROUP BY clause to different.  Here's a different approach, which gets 3 copies of the same data and totals in a single GROUP BY:

    WITH cntr AS

    (

    SELECT LEVEL AS grouping_level

    OF the double

    CONNECT BY LEVEL<=>

    )

    unaggregated_data AS

    (

    SELECT THE CHECK BOX

    WHEN c.grouping_level<=>

    THEN TRUNC (i.beginwork_date + 1, 'IW')

    Week END AS

    CASE

    WHEN c.grouping_level = 1

    THEN i.req_name

    END AS req_name

    24 * (i.endwork_date - i.beginwork_date)

    As schedules

    c.grouping_level

    Info_mech I have

    CROSS JOIN cntr c

    WHERE i.beginwork_date > = DATE ' 01-07-2013'

    AND i.endwork_date<  date="">

    )

    SELECT CASE grouping_level

    WHEN 1

    THEN req_name

    WHEN 2

    THEN "subtotal (' |)" To_char (week - 1, ' MM/DD/YYYY' -)

    || To_char (week + 6, MM/DD/YYYY")')

    ANOTHER "Grand Total".

    END AS name_or_week

    The amount (in hours) AS total_hours

    Of unaggregated_data

    GROUP BY week

    grouping_level

    req_name

    ORDER a week

    grouping_level

    req_name

    ;

    This assumes that, on a given line of the table, beginwork_date is in the same week as endwork_date.  The sample data you posted include 1 row when this was not true:

    insert into info_mech values ('Adam', to_date (July 8, 2013 08:00 ',' ' DD-MM-YYYY HH24:MI:SS), to_date (July 5, 2013 15:00 ',' ' DD-MM-YYYY HH24:MI:SS));))

    Not only are the two dates in different weeks, but beginwork_date is later than endwork_date.  I assumed that was a typo and changed endwork_date to July 8.  With this change, the result I got is:

    NAME_OR_WEEK TOTAL_HOURS

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

    Adam                                          10

    John                                          26

    Mark                                          16

    Tim                                           16

    Subtotal (30/06/2013-07/07/2013) 68

    Adam                                           7

    Subtotal (07/07/2013-14/07/2013) 7

    Grand Total 75

    The last line is the total of all hours for all dates included.  In the query above, this means that the month of July 2013, because I've hardcoded the dates in the WHERE clause.  You can climatiqueLes WHERE clause for what you want, or omitted completely.

    Note how much more complicated the query above is that of the solution of GROUPING SETS below:

    WITH got_week AS

    (

    SELECT req_name

    TRUNC (beginwork_date + 1, 'IW') AS the week

    24 * (endwork_date - beginwork_date) AS hours

    Of info_mech

    WHERE beginwork_date > = DATE ' 01-07-2013'

    AND endwork_date<  date="">

    )

    SELECT THE CHECK BOX

    WHEN you GROUP (req_name) = 0

    THEN req_name

    WHEN you GROUP (week) = 0

    THEN "subtotal (' |)" To_char (week - 1, ' MM/DD/YYYY' -)

    || To_char (week + 6, MM/DD/YYYY")')

    ANOTHER "Grand Total".

    END AS name_or_week

    The amount (in hours) AS total_hours

    OF got_week

    GROUP BY GROUPING SETS ((semaine, req_name))

    (week)

    , ()

    )

    ORDER a week

    req_name

    ;

    GROUPING SETS will also be more effective.

  • OfficeJet Pro x476dw: wireless without the use of a router direct printing

    Is it possible to print directly to the printer without the use of a router?

    Hi Brad,

    Welcome to the Community Forum of HP.

    OFFICEJET PRO X 476 AND X 576 SERIES MFP User Guide said yes

    See Page 118

    Reference:

    All-in-one HP Officejet Pro X476dw

    Click on the thumbs-up Kudos to say thank you!

    And... Click on accept as Solution when my answer provides a fix or a workaround!

    I am happy to provide assistance on behalf of HP. I do not work for HP.

  • Get the size of the screen without the use of DIsplay()

    Hello

    Is it possible to get screen width (or indeed any dimesion) without the use of Display.getWidth ()?

    I am trying to create a demo application that doesn't require code signing.

    I know that the code is now free to sign, but this is not the point in this case...

    Thank you!

    I managed to solve my problem by using:

    Graphics.getScreenWidth)

    and ignoring the notification "deprecated code" in Eclipse.

    Your link in combination with this post helped me to find a solution.

    Thanks for your help Simon!

  • where are my data after the use of Dell backup and recovery

    Three check marks displayed on a Dell backup and recovery, which, I suppose, finishing meant that my backup was successful (using Windows on a Dell Inspiron 8.1).  Where my data is sent to after the use of Dell backup and recovery?

    Click on the 02:22 mark of the video.

    www.YouTube.com/watch

  • How can I keep IE and FireFox Favorites in local sync to my PC only, without the use of an external server or import/export?

    FireFox Sync is not an option, because the use of an external server is not allowed.
    Use of third-party modules is not really an option.
    Import/export is inefficient because it is not put them in the same exact place in every browser.

    I am happy to be able to use the same favorites/bookmarks file if it is an option.

    Thank you

    You do not have.

    Sorry, IE and Firefox use different methods of storage Favorites / Bookmarks to data that are not compatible with the other program.

  • I want to fill and empty a tank automatically that can be achieved without the use of local variables?

    Labview gurus,

    I have a project to complete and I'm new to labview, I have the 2009 version of the student. and want to build an initial vi of a municipal plant to FILL AND EMPTY TANKS. I use the DSC module to help and I can get my tanks to complete a sequence, but it uses local variables. They cannot be shared on the network when I create my libraries.  Need urgent help...

    Casey74

    Here's a quick attempt at a state machine. See if it makes sense.

    (It can be simplified a bit more!)

  • try to connect microsoft 8000 presenter to my computer without the dongle. I need to connect without password. Does anyone have a suggestion? __

    I would like to know if there is any chance to connect without the dongle and the intellipoint software. When I use windows software apply an authentication key, and I think that the mouse do not need any code.

    Hello skaarmartin,

    Thank you for visiting the Microsoft answers community.

    I have not found a lot of information on this issue, but here is the link to some information that may be useful:

    http://social.technet.Microsoft.com/forums/en/itprovistahardware/thread/cb3c4590-dcb2-44ed-A258-57021a69ae30

    Not much, hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Updated MDS in SOA, without the use of AIA

    Hello

    I want to update MDS in SOA. I have not installed of AIA.

    Is it possible to do?

    Thank you

    Jehanne

    Rouillard,

    Yes, you can do it without the AIA. Here are the options,

    (1) zip and download EM thro as mentioned above RichaJuneja console.

    (2) use the Oracle supplied ANT scripts. For detailed information, see this blog: http://biemond.blogspot.com/2009/11/soa-suite-11g-mds-deploy-and-removal.html

    (3) you can thro WLST scripts. See this example: Metadata Services (MDS) custom orders WLST - 11 g Release 1 (10.3.6)

  • Selection of data with or without the use of cursors in procedures

    Hello

    If we are able to access the data without using a cursor as shown below in a way:


    CREATE OR REPLACE PROCEDURE tmr_exception
    IS
    x LINK_STATUS. COUNTRY_CODE % TYPE;

    BEGIN
    SELECT COUNTRY_CODE LINK_STATUS x;

    EXCEPTION
    WHEN TOO_MANY_ROWS THEN
    dbms_output.put_line (' too many lines).
    WHILE OTHERS THEN
    dbms_output.put_line ("' another problem");

    END tmr_exception;
    */*

    So what is useful in the use of explicit cursors?

    (1) SELECT... Return exactly 1 row. If you try to deal with several rows of data, you will need another construction.

    (2) A SELECT... INTO opens a cursor. He has simply done implicitly. Just like

    BEGIN
      FOR emp_cur IN (SELECT * FROM emp)
      LOOP
        <>
      END LOOP;
    END;
    

    Opens an implicit cursor.

    (3) no implicit and explicit cursors these days are generally useful when you do treatment in bulk and you want to extract the data in a local collection.

    Justin

    Published by: Justin Cave on October 9, 2010 20:17

    (4) oh and you would never have in real code catch an exception and do nothing else than calling DBMS_OUTPUT. It's a quick way to produce a totally unmanageable code.

  • on the use of LLB, Subvi and project

    Hi all

    I have heaps of subroutines will necessary for all projects of development on the same computer. For a long time, I wrap each of these subprogrammes as a separate Subvi and call the Subvi when necessary. But I just saw that someone will build a LLB in contains all these Subvi. It will be the same to build the LLB or separate from the Subvi? So, what's the advantage of using LLB? I have seen that the builtin functions are all grouped together in a LLB. So if I create my LLB, where should I put this LLB so it will appear in the main palette?

    The second question I have is what is a project concerns in labview 2013? I've been using labview 7 long and I create my project in a folder. But LV2013, I can creae a project and link everything in there. So what's the advantage of using a project?

    Thank you.

    It's really no use for an llb. It was mainly used to store screws with long names - names that were not supported in the early days of the transition from the BACK. Storing files in a Bachelor's degree in labor law is a bit risky because a single corrupt VI will make everything unreadable llb. A Bachelor's degree in law is not appropriate for source code control. Source code control is able to follow the Bachelor of law and not individual files. The only time a law degree should be used must distribute released code. Better and this which is used is now the lvlib or packed library. One of the biggest hassles of older versions of LabVIEW is the inability to load different screw with the same name. Placed in separate vilibs, you can now do.

    The advantage of the project is what you said - all linking together regardless of the actual location of the file. The project may contain files other than screws - word and excel for example files. A project is also required to create an exe file. The project contains the specifications of construction for the exe and Setup. A project can also contain DAQmx tasks. Even if you do not create an exe file, a project is always a useful organizing tool.

  • Measurement of RPM without the use of counters

    I read several threads on how to measure the RPM of optical sensors, but they all involve the use of counters on the DAQ connector. My problem is that my project is to read and comparing four separate plans and my DAQ has only 2 terminals of counter. Ideally, I would just use the input channels of the analogue signal for all four sensors. I'm away to the extent of the counting of the edges of the analog signal using this code snippet.


Maybe you are looking for