Join the 2 queries with common group by column

IAM trying to reach the results of 2 queries. Myu first query returns as follows.

Like, second

I need to show together and I wrote the request to the below:

Select b.br_id, count (b.mech_code), sum (b.labour_cost), count (a.received_by) in table2 b, table1: a group of b.br_id;

But it doesn't show any errors or shows no results. It just continues the treatment forever. Plese help

Just joined the group two by queries later

Select

b.br_id

b.cnt_mech_code

b.sum_lc

a.cnt_rcvd

de)

Select

b.br_id

count (b.mech_code) cnt_mech_code

sum (b.labour_cost) sum_lc

from table2 b

B.br_id group

) b

, (

Select

Count (a.received_by) cnt_rcvd

Table 1A

A.br_id group

) a

where

b.br_id = a.br_id

Tags: Database

Similar Questions

  • I just join the creative cloud with the offer complete for students, but when I want to download new applications, they still detect me as a user free trail so that they won't let me download the application again.

    I just join the creative cloud with the offer complete for students, but when I want to download new applications, they still detect me as a user free trail so that they won't let me download the application again.

    Who is that apps are listed as of the tests menu tab Apps in Adobe Creative Cloud app?

    Have you tried disconnecting and signing once?

    https://helpx.Adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    Windows or Mac?

  • The slow queries with WITH and JOIN

    Hello
    This code takes too long to complete:
    WITH rawData AS -- 563 rows in 0.07s OR 59 rows in 0.02s
    (
    SELECT
         date_releve AS x1,
         index_corrige AS y1,
         LEAD(date_releve) OVER (PARTITION BY id_compteur ORDER BY date_releve) AS x2,
         LEAD(index_corrige) OVER (PARTITION BY id_compteur ORDER BY date_releve) AS y2,
         id AS id_releve,
         id_compteur
    FROM V_relevesCorriges
    ),
    
    meteoData AS -- 1082 rows in 1.34s OR 116 rows in 0.16s
    (
    SELECT avg(meteo.valeur) AS meteoValue, x2 AS dateMeteo, id_variable, id_releve, id_compteur
    FROM meteo, rawData
    WHERE date_meteo <= x2 AND date_meteo > x1
    GROUP BY id_releve, id_variable, x2, id_compteur
    ORDER BY x2
    ),
    
    consoData AS -- 1104 rows in 1.43s, 117 rows in 0.2s
    (
    SELECT
    to_char(x1, 'DD.MM.YYYY') || ' - ' || to_char(x2, 'DD.MM.YYYY') AS periode,
         meteoValue AS meteo_moyenne,
         (y2 - y1) / nullif((x2 - x1),0) AS conso_par_jour,
         (y2 - y1) AS conso,
         rawData.id_releve id_releve,
         meteoData.id_variable id_variable,
         meteoData.id_compteur id_compteur
    FROM rawData LEFT OUTER JOIN meteoData ON rawData.id_releve = meteoData.id_releve
    ORDER BY x2
    )
    
    SELECT periode, meteo_moyenne, conso_par_jour, consoData.id_variable id_variable, consoData.id_releve id_releve, id_compteur -- 1104 rows in 1.51s, 116 rows in 1.34s
    FROM consoData LEFT OUTER JOIN diagnostic2 ON consoData.id_releve = diagnostic2.id_releve AND consoData.id_variable = diagnostic2.id_variable
    WHERE Id_compteur = 4
    If I remove "WHERE Id_compteur = 4" on the last line, there is almost no difference in run time. Without this WHERE clause, it returns 1104 ranks in s 1.51, with her he returned 116 lines s 1.34.

    I say it takes too long because when I put this WHERE 'consoData' clause (WHERE meteoData.consoData = 4), he returns to 0 116rows. 2 sec., to get the same output of data. If I remove the LEFT OUTER JOIN diagnosis2 (last but one line) there are also 0. 2 s.

    I think that the solution would be to force "WHERE Id_compteur =... "to take effect before he joined the"diagnosis2"of the table, but do not know how to do.

    The subquery takes a lot of time when to return all the lines is "meteoData.

    This code is supposed to be a VIEW, so "WHERE Id_compteur =... ' will not be included in it but passed when you query the view. I tested it as a point of VIEW, same problem.

    Explain the plan:
    Plan hash value: 724835998
    -----------------------------------------------------------------------------------------------------------------------
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    -----------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | | 16364 | 1342K| | 586 (4)| 00:00:08 |
    | 1 | TEMP TABLE TRANSFORMATION | | | | | | |
    | 2 | LOAD AS SELECT | DIAGNOSTIC2 | | | | | |
    | 3 | WINDOW SORT | | 563 | 15764 | | 12 (25)| 00:00:01 |
    | 4 | VIEW | V_RELEVESCORRIGES | 563 | 15764 | | 11 (19)| 00:00:01 |
    | 5 | SORT GROUP BY | | 563 | 56300 | | 11 (19)| 00:00:01 |
    | 6 | VIEW | | 563 | 56300 | | 10 (10)| 00:00:01 |
    |* 7 | HASH JOIN RIGHT OUTER | | 563 | 25335 | | 10 (10)| 00:00:01 |
    | 8 | TABLE ACCESS FULL | COMPTEURS | 22 | 132 | | 3 (0)| 00:00:01 |
    | 9 | VIEW | | 563 | 21957 | | 7 (15)| 00:00:01 |
    |* 10 | HASH JOIN OUTER | | 563 | 26461 | | 7 (15)| 00:00:01 |
    | 11 | TABLE ACCESS FULL | RELEVES | 563 | 12949 | | 3 (0)| 00:00:01 |
    | 12 | VIEW | V_CORRECTIONDATA | 563 | 13512 | | 3 (0)| 00:00:01 |
    |* 13 | VIEW | | 563 | 28150 | | 3 (0)| 00:00:01 |
    | 14 | WINDOW SORT | | 563 | 67560 | | 3 (0)| 00:00:01 |
    | 15 | VIEW | | 563 | 67560 | | 3 (0)| 00:00:01 |
    | 16 | NESTED LOOPS OUTER| | 563 | 14638 | | 3 (0)| 00:00:01 |
    | 17 | TABLE ACCESS FULL| RELEVES | 563 | 12949 | | 3 (0)| 00:00:01 |
    |* 18 | INDEX UNIQUE SCAN| COMPTEURS_PK | 1 | 3 | | 0 (0)| 00:00:01 |
    |* 19 | HASH JOIN RIGHT OUTER | | 16364 | 1342K| | 573 (4)| 00:00:07 |
    | 20 | INDEX FULL SCAN | DIAGNOSTIC2_PK | 4 | 24 | | 1 (0)| 00:00:01 |
    | 21 | VIEW | | 16364 | 1246K| | 572 (4)| 00:00:07 |
    | 22 | SORT ORDER BY | | 16364 | 1661K| 3864K| 572 (4)| 00:00:07 |
    |* 23 | HASH JOIN | | 16364 | 1661K| | 179 (9)| 00:00:03 |
    | 24 | VIEW | | 1157 | 55536 | | 3 (0)| 00:00:01 |
    | 25 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6657_90A96D1D | 1157 | 55536 | | 3 (0)| 00:00:01 |
    |* 26 | VIEW | | 7963 | 435K| | 175 (8)| 00:00:03 |
    | 27 | SORT GROUP BY | | 7963 | 311K| 1768K| 175 (8)| 00:00:03 |
    | 28 | MERGE JOIN | | 26409 | 1031K| | 23 (48)| 00:00:01 |
    | 29 | SORT JOIN | | 1157 | 28925 | | 4 (25)| 00:00:01 |
    | 30 | VIEW | | 1157 | 28925 | | 3 (0)| 00:00:01 |
    | 31 | TABLE ACCESS FULL | SYS_TEMP_0FD9D6657_90A96D1D | 1157 | 55536 | | 3 (0)| 00:00:01 |
    |* 32 | FILTER | | | | | | |
    |* 33 | SORT JOIN | | 9130 | 133K| | 11 (19)| 00:00:01 |
    | 34 | TABLE ACCESS FULL | METEO | 9130 | 133K| | 9 (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------------------------------------
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    7 - access("RELEVES"."ID_COMPTEUR"="COMPTEURS"."ID"(+))
    10 - access("RELEVES"."ID_COMPTEUR"="V_CORRECTIONDATA"."ID_COMPTEUR"(+))
    filter("RELEVES"."DATE_RELEVE">="V_CORRECTIONDATA"."DATE_CHANGEMENT"(+))
    13 - filter("CHG_COMPTEUR"=1 AND "ID_COMPTEUR"="ID_COMPTEUR_CORR")
    18 - access("RELEVES"."ID_COMPTEUR"="COMPTEURS"."ID"(+))
    19 - access("CONSODATA"."ID_VARIABLE"="DIAGNOSTIC2"."ID_VARIABLE"(+) AND
    "CONSODATA"."ID_RELEVE"="DIAGNOSTIC2"."ID_RELEVE"(+))
    23 - access("RAWDATA"."ID_RELEVE"="METEODATA"."ID_RELEVE")
    26 - filter("METEODATA"."ID_COMPTEUR"=4)
    32 - filter("DATE_METEO">"X1")
    33 - access(INTERNAL_FUNCTION("DATE_METEO")<=INTERNAL_FUNCTION("X2"))
    filter(INTERNAL_FUNCTION("DATE_METEO")<=INTERNAL_FUNCTION("X2"))
    Oracle database version: 10.2.0.4.0, I'm accessing through the APEX version 4.1.1.00.23

    I hope that my question is not too blurred...

    Ah, sorry, I missed that bit in your original post. I had a similar problem where I was adamant that the predicate must be pushed into the view (despite the use of analytical functions - they used the conditions that would allow the predicate be pushed): http://www.orchestrapit.co.uk/?p=55

    In the end, I solved my problem by using joins to inline, rather than the subquery factoring - maybe you can try to convert your view online views and see if that helps?

  • Help to combine the two queries with dependencies

    Combining two queries with dependencies:
    First ask: Returns USER_ID that has a type of access to a table with the OWNER (I also shoot the TLA of the USER_ID standard: ' of TLA #)

    Select distinct SUBSTR (DBA_USERS. Username, 2, 3) AS TLA

    DBA_USERS. Username USED_ID

    DBA_TAB_PRIVS. Owner OWNER

    from DBA_USERS

    DBA_ROLE_PRIVS

    DBA_TAB_PRIVS

    where DBA_USERS. Username = DBA_ROLE_PRIVS. Dealer

    and DBA_USERS.default_tablespace not in ('SYSTEM', "SYSAUX")

    and DBA_USERS. Username like would be %'

    and DBA_ROLE_PRIVS. Granted_role = DBA_TAB_PRIVS. Dealer

    and SUBSTR (DBA_USERS. Username, 2, 3) <>DBA_TAB_PRIVS. Owner

    ;

    Example of results (red font used in the last citation):

    TLA USED_ID OWNER

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

    DGTX999 GTX GRR

    DGTX999 GTX ABG

    DGTX999 GTX HTC

    FWS DFWS999 GRR

    OCN DOCN999 GRR

    RHR DRHR999 DAS

    ETM DETM999 DAS

    FWS DFWS995 DAS

    CD DCDS999 DAS

    ABE DABE999 DAS



    Second request: matches the USER name (same standards as above) and MACHINES (filter PC connections) and the number of connections made of

    Select DBA_USERS. Username

    DBA_HIST_ACTIVE_SESS_HISTORY. Machine

    COUNT (*) AS CONN_COUNT

    of DBA_HIST_ACTIVE_SESS_HISTORY

    DBA_USERS

    where DBA_HIST_ACTIVE_SESS_HISTORY. User_id = DBA_USERS. User_id

    and DBA_USERS. Username like would be %'

    and DBA_HIST_ACTIVE_SESS_HISTORY. Machine not as "WINAD%\%-%".

    Group of DBA_USERS. Username

    DBA_HIST_ACTIVE_SESS_HISTORY. Machine

    order by 1

    3 desc;

    Example of results (red font used in the last citation):

    MACHINE CONN_COUNT USERNAME

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

    DFWS999 home13e0 7557

    DGAM800 vu1246 37

    DGAM999 vu1246 2558

    DABE999 back18cb 4639

    DINL888 home162f 84

    DFWS999 WINDAD\OMHQ58BF 178

    DCDS999 back18cb 788

    DGTX999 home18c8 7

    DGTX999 home13d3 62

    DOCN999 vu1261 44

    DFWS999 back1976 3

    DCDS999 home18c8 173

    DGTX999 home19c9 13

    What I'd like to have (just made two first USER_IDs from the first query) (COL duplicated for each separate owner 1-4).  So 3 machines and 3 owners would result in 9 lines (I could reorganize the collar and use a 'pause'):

    TLA USED_ID MACHINE CONN_COUNT OWNER

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

    GTX DGTX999 home13d3 62 GRR

    Home18c8 GTX DGTX999 7 GRR

    DGTX999 GTX home19c9 GRR 6

    GTX DGTX999 home13d3 62 ABG

    DGTX999 GTX home18c8 ABG 7

    DGTX999 GTX home19c9 6 GBS

    GTX DGTX999 home13d3 62 CTH

    DGTX999 GTX HTC 7 home18c8

    DGTX999 GTX home19c9 6 HTC

    FWS DFWS999 home13e0 7557 GRR

    FWS DFWS999 WINDAD\OMHQ58BF 178 GRR

    FWS DFWS999 back1976 GRR 3


    So it would be logically read: TLA as USER_ID of MACHINE, CONN_COUNT consultation times: OWNER information.

    Thought as only those with the necessary values. Just try this and let me know in the case of all conflicts in the output.

    WITH T1 AS)

    Select distinct SUBSTR (DBA_USERS. Username, 2, 3) AS TLA

    DBA_USERS. Username USED_ID

    DBA_TAB_PRIVS. Owner OWNER

    ROWNUM RN

    from DBA_USERS

    DBA_ROLE_PRIVS

    DBA_TAB_PRIVS

    where DBA_USERS. Username = DBA_ROLE_PRIVS. Dealer

    and DBA_USERS.default_tablespace not in ('SYSTEM', "SYSAUX")

    and DBA_USERS. Username like would be %'

    and DBA_ROLE_PRIVS. Granted_role = DBA_TAB_PRIVS. Dealer

    and SUBSTR (DBA_USERS. Username, 2, 3) <> DBA_TAB_PRIVS. Owner),

    () AS T2

    Select DBA_USERS. Username

    DBA_HIST_ACTIVE_SESS_HISTORY. Machine

    COUNT (*) AS CONN_COUNT

    of DBA_HIST_ACTIVE_SESS_HISTORY

    DBA_USERS

    where DBA_HIST_ACTIVE_SESS_HISTORY. User_id = DBA_USERS. User_id

    and DBA_USERS. Username like would be %'

    and DBA_HIST_ACTIVE_SESS_HISTORY. Machine not as "WINAD%\%-%".

    Group of DBA_USERS. Username

    DBA_HIST_ACTIVE_SESS_HISTORY. Machine

    order by 1

    3 desc)

    SELECT T1. TLA

    ,         T1. USED_ID

    ,         T2. MACHINE

    ,         T2. CONN_COUNT

    ,         T1. OWNER

    FROM T1

    T2

    WHERE T1. USED_ID = T2. USER NAME;

  • Unable to join the network "Home" with the iPhone

    Immediately, my iPhone detects my network "Home", but will not allow me to connect. I have 2 desktop Mac connected if it means something. Support Apple says that the problem is with the router. I was watching the boards until my head swim, and I can't find anyone else with this problem. In other words, unless those with password failure are the same SEO. My subject line in this post is exactly the error message I get. I would like suggestions. Thank you!

    What is the model of the router?

    What kind of security you use on the router...? If you use WEP, use Key1 as network key. Make sure that Mac Filterring disable on the router... Try changing the channel on the router wireless. Also check out this link.

  • Secondary ISE cannot join the head node with error message

    Hello

    I just installed the secondary ISE and made the following points, but when I try to reach the head node, I received the cannot authenticate the primary ISE, please check the server or the certificate and try again.

    -promote the secondary image of autonomous primary

    -export the seconary cert self

    -import the cert in primary school

    -try to add not on the used secondary IP and host with super admin user name

    I noticed one thing that instruction on the ISE 1.1.1 import cert on mentioned primary section:

    1. Choose Administration > system > certificates.
    2. In operations of certificate on the left navigation pane, click certificate authority certificates.

    but there is no certificate authority certificates in the left pane. I chose to store the certificates instead

    any suggestions?

    Hello

    Did you put the primary secondary node? You tried to save the node in the wrong direction. To register with the primary node of a node, the application for registration must be initiated from the primary node.

    Thank you

    Tarik Admani
    * Please note the useful messages *.

  • Lists of category of FAQ on the same page with common elements behave oddly

    I have two lists of FAQ category on one page with some of the elements contained in the two lists (that is, they are assigned to these two categories). The two lists are active AJAX. When I click on the link for an article that appears on both lists, the details may end up on the list of "wrong". Is there anyway to fix this?

    OK sorry for the confusion!

    So what is happening here is to have an action click on which opens the div hidden that contains the answer to the FAQ, something like:

    The Show FAQ function calls the first div on the page with this id (this illustrates well why it's a bad habit two are duplicated on a page) that's why it always opens the first element. You have two options to avoid this problem:

    -run a script that changes the id of the div for the first article, so that when you press the duplicate faq entry, it opens upwards and not the first.

    -load the 2nd category faq in an iframe

    Kind regards

    Alex

  • Repeat the same tag with a group... How to map

    Dear Experts,
    I get like that of external system data:

    < StsRsnInf >
    Reject/00000001/level 1 < AddtlStsRsnInf > < / AddtlStsRsnInf >
    < AddtlStsRsnInf > 5 005 error: number does not account < / AddtlStsRsnInf >
    < AddtlStsRsnInf > VAC. No not in the required format < / AddtlStsRsnInf >
    < / StsRsnInf >

    Note in the above data < AddtlStsRsnInf > tag can repeat several times with in < StsRsnInf >, not just 3 times.

    When I design my rtf file, when I add <? AddtlStsRsnInf? > as a field to display 3 times with in <? for each: StsRsnInf? >, I always get the first record (i.e. ' / 00000001/rejection of level 1 ") posted 3 times. How to design a report to print the three folders one by one in my report in output like this:
    Level 1 rejection/00000001 /.
    Error 5 005: Account number is not not to
    No not in the format required

    Please give me solution like this: change the tag source to < AddtlStsRsnInf1 >, < AddtlStsRsnInf2 >, < AddtlStsRsnInf3 >... like that. Because the data source isn't in my hand... It is external, and they don't change anything.

    Waiting for your positive response soon,
    Mani

    You can have something like

    It prints AddtlStsRsnInf like many in the xml file.

    Hope this is what you want

  • List with common set of column table

    Hi Experts,

    Database:- Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production database.

    I list all the tables that have the two columns ST_NUM and ST_TYPE. If a table has only ST_NUM, so I don't want to display the results. For even if the table has one column ST_TYPE I don't want to display the results. I need list of the table as a result with two columns ST_NUM and ST_TYPE.

    I tried following query: -.

    -Don't give me the correct results.

    SELECT TABLE_NAME from dba_tab_columns where column_name = column_name = 'ST_TYPE' and 'ST_NUM'

    Grateful for the help.

    Thank you.

    Hello

    user07118719 wrote:

    Hi Experts,

    Database:- Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production database.

    I list all the tables that have the two columns ST_NUM and ST_TYPE. If a table has only ST_NUM, so I don't want to display the results. For even if the table has one column ST_TYPE I don't want to display the results. I need list of the table as a result with two columns ST_NUM and ST_TYPE.

    I tried following query: -.

    -Don't give me the correct results.

    SELECT TABLE_NAME from dba_tab_columns where column_name = 'ST_NUM' and column_name = 'ST_TYPE. '

    Grateful for the help.

    Thank you.

    No single line will have two column_name = 'ST_NUM' and 'ST_TYPE '.  You have to watch a bunch of lines and see if both of these names are present.  How can watch you an aggregate of several lines at once?  GROUP BY and HAVING is a way:

    SELECT master, table_name

    FROM dba_tables

    WHERE nom_de_colonne IN ('ST_NUM', 'ST_TYPE')

    GROUP BY master, table_name

    HAVING COUNT (*) = 2

    ;

    You must include the owner as the table name.  The latter can may a table called FOO with a column called ST_NUM, and user_b can have a table, also called FOO, that has a column named ST_TYPE, but this does not mean you want to FOO in the output.

  • I just joined the creative cloud but cannot download the latest version...

    I just joined the creative cloud with an annual plan to 12,19 EUROS, but the application does not download the latest versions of photoshop and lightroom, why?

    From what you say, it seems it isn't a problem downloading, but is rather a question that you have the software downloaded and works, but it is referring the assessment mode - which is the situation?

    Log, activation, or connection errors. CS5.5 and later, Acrobat DC

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Join the two trees connect by prior Start With and return only common records?

    Oracle 10g Release 2 (10.2)

    I have two tables which have structured data. The results, when running queries individually are correct, but I need to join tree a tree two to get only the common records between them.

    -Trees a
    SELECT ip_entity_name, entity_code, hier_level, entity_parent
    Of ip_hierarchy
    WHERE hier_level > = 3
    CONNECT BY PRIOR Entity_code = entity_parent
    START WITH entity_code = "MEWWD";

    -The two tree
    SELECT ip_entity_name, entity_code, hier_level, entity_parent
    Of ipt_hierarchy
    WHERE hier_level > = 3
    CONNECT BY PRIOR Entity_code = entity_parent
    START WITH entity_code = "IPNAM";


    If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?

    A WITH clause is an option?

    If possible, I don't want to put a selection in a database to display object and join against other queries.

    Thank you.

    Hello

    jtp51 wrote:
    Oracle 10g Release 2 (10.2)
    ...
    If I understand correctly, the joints can not work with CONNECT BY / START WITH queries?

    Before Oracle 9 it was true. Since you're using Oracle 10, you can if you wish; but I'm guessing that you don't want in this case.

    A WITH clause is an option?

    If possible, I don't want to put a selection in a database to display object and join against other queries.

    Yes, a WITH clause that is an option. Viewed online, as Zhxiang has shown, are another option. Either way gives you a regular display effect without creating a database object.

    You did not show a sample and the results, so no one can tell if a join is really what you want. Other possibilities include INTERSECT or an IN subquery.

  • Several flat_files through the external table with only the common columns of loading

    Hi, I have 50 flat files and each of them have some columns (fields) common and I need to load only the fields that are common to an external Table. Is any chance to do it with education unique external table. Or I need to load all flat_files at separate tables and then with the ETG and UNION load them only one table.

    If the page size for all the files are different, I think that your only option would be to define different external tables and create a view that joins all the.

    HTH
    Srini

  • Help with the situation where a simple group by statement does not work

    There is a table with two columns, which is memo (varchar2), another is recording_date (date). This table is used to recode an every day event. Right now, I need to know how many events registered each day during the time period (between any of the given day and any given end day). the result by selecting should have two columns the numeration of the event, the recording_date. chances are one day it is not just any event, in this situation there not all inserted rows so far here, but the result by selecting must contain also that day with the column count is set to zero.
    between 2010-4-5 and 2010-4-8
    Count   recording_date
    2             2010-4-5
    0             2010-4-6
    1             2010-4-7
    9             2010-4-8
    Can anyone help with this? Thank you in advance!
    Kind regards!

    Hello
    See if this helps:

    I create a dummy cursor that contains one row for each day of the last year - I then outer join the result of the query against the log_table.

    Here are my RAW file
    Select * from log_data

    07/05/2010 1, TEST
    TEST 2 05/05/2010
    02/05/2010 3, TEST
    30/04/2010 4, TEST
    TEST OF 5 30/04/2010
    30/04/2010 6, TEST
    7-30/04/2010 TEST
    8 TEST 06/05/2010
    9 TEST 06/05/2010
    10 06/05/2010 TEST
    11 06/05/2010 TEST
    06/05/2010 12, TEST
    13 TEST 06/05/2010
    2010-05-06 14, TEST
    15 06/05/2010 TEST
    16 06/05/2010 TEST
    2010-05-06 17, TEST

    And here's the query

    with date_ranger as (select trunc (sysdate-) level datecol
    from dual connect by level<= 365="">
    RAW_DATA as)
    Select recording_date, count (*) numrows in log_data
    Group of recording_date)
    Select datecol, date_ranger numrows, raw_data
    where = date_ranger.datecol raw_data.recording_date (+)
    and datecol sysdate-10-sysdate
    order by 1

    And the result

    1 28/04/2010
    2 29/04/2010
    30/04/2010 3, 4
    4 01/05/2010
    02/05/2010 5, 1
    6 03/05/2010
    7 04/05/2010
    8 05/05/2010 1
    9 06/05/10/2010

    What you want?

    See you soon,.
    Harry

  • How to join a network domain with the controller rt PharLab running?

    I have a PXI system that I would like to be able to access anywhere in the corporate network. Currently, I'm access via the IP address, but want to use the host name instead. Unfortunately, I couldn't find a way to join the network with the controller running PharLab area.

    Any suggestions in this regard would be welcome.

    Respect,

    Česlav

    Hello Bob and Česlav,

    I think Česlav was looking for / ask something different. (please tell me if I'm wrong)

    He really wants to do its PXI RT "look-uppable" via its corporate network without necessarily be on the same subnet (and use the IP address).

    In light of the additional information you (Česlav) provide that I would say again that you contact your IT Department first to see how they prefer it.

    They will generally the method of choice to do this. (both for desktop computers with respect to other devices)

    Sometimes it comes down to add to "add your host name and IP address to a list of DNS.

    The page that you link to is a specific way of Windows, adding yourself to a domain.

    Note that add you to a domain should provide you with the ability to use host names.

    However, he also did other things, which may not be possible or even allowed for other types of devices.

    In most companies you don't even have your desktop admin rights necessary to add your own pc (following this way) to the area, as it may cause a lot of security issues and risks.

    Because I don't really know what the establishment IT is by your side I can't really (with certainty) comment on what you should be able to do (and is not).

  • I cannot join the domain in my office with my home edition, Windows

    Anyone, please help me solve the problem please...

    I use Microsoft Windows Home Edition...

    I can't join the domain...

    If I open network connections, and then I click on advance and I choose network identification and then I click on edit, there is only the option of working group...

    But if I opened that there is two option in windows proffesional came... First area and the second is the working group...

    How do for pop up that way I can join domain in my office?

    I thank the of for anyone who can help me...

    Anyone, please help me solve the problem please...

    I use Microsoft Windows Home Edition...

    I can't join the domain...

    If I open network connections, and then I click on advance and I choose network identification and then I click on edit, there is only the option of working group...

    But if I opened that there is two option in windows proffesional came... First area and the second is the working group...

    How do for pop up that way I can join domain in my office?

    I thank the of for anyone who can help me...

    XP Home Edition is not supported to join a domain. XP Professional is.

Maybe you are looking for

  • FCPX broken?

    Hi all. I want to start by emphasizing the fact that it is not a problem of corruption of library, I spent all the new libraries creation of day and to experiment with optimized and media proxy. Accidents persist. FCPX crashes almost instantly, and I

  • IOS 9.3 there bugs for the iphone 6?

    Hi guys I have an iPhone 6 currently running in iOS 9.2.1 asked if it is wise to update the iOS to 9.3. Are they bugs in the new iPhone OS 6? Should I update the OS or not?

  • V5 - 571p 8.1 touch. I can't connect my BT speakers. It is said that they are paired and working.

    I got new speakers BT wireless for my laptop but cannot get their work. I tried to reload the drivers, but that has not helped. When I go to Device Manager it says that they are installed and working, but they do not appear as an option to select spe

  • dv6t-2300 HP pavilion recovery deleted need to get one online

    Pavilion dv6t-2300/windows-7 (64-bit) my hard drive died and delete the recovery image now ' to get a replacement from hp, but I am not currently in the range for the expedition of recovery disc I would like to know if I can download a recovery image

  • make a request?

    Hey guys, that I would like to make a small application for my blackberry to keep track of my time working... can someone guide me on were to start?