combining these two programs...

I have two programs I want to combine into one. I have a vision of the solar system that shows the solar system as a whole, and I also have another program where you can individually view the planets by clicking a button to load. What I want to be able to do is I can click on a planet in solar system model (which shows all of the solar system) and set up the global view that I have. I have two things I need to do:

(i) a mouse event to allow the user to click on a planet in full view of the solar system and load the 3D representation of this planet

(II) a way to separate my planet so program so that each planet has its own code so that they can be clicked on individually

Lets start with number 1:

My code for solar system model:

onClipEvent (load) {}

function {path (t1, t2)
return Math.sqrt (t1 * t1 + t2 * t2);
}

function {} Dim
showLabel =! showLabel;
If (showLabel) for (k = 0; k < count; k ++) this .info [k] = n [k];
else for (k = 0; k < count; k ++) this .info [k] = "";
}

C1 = new Array();  coordinates of the endpoints of each ellipse conjugate diameters
C2 = new Array();
C3 = new Array();

This.Drag._x = 800;  zoom setting
This.Drag._y = - 100; elevation adjustment
showLabel var = false;

Planetary orbital elements (J2000)
J2000 = new Date (2000, 0, 0, 12);
n = new Array ('Mercury', 'Venus', 'Earth', 'March', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Quaoar', 'Varuna');
a = new Array (0.38709893, 0.72333199, 1.00000011, 1.52366231, 5.20336301, 9.53707032, 19.19126393, 30.06896348, 39.48168677, 17.94175491, 43.373493, 13.6209635, 43.2718562);
e = new Array (0.20563069, 0.00677323, 0.01671022, 0.09341233, 0.04839266, 0.05415060, 0.04716771, 0.00858587, 0.24880766, 0.96727724, 0.037457, 0.3809974, 0.0529874);
I have = new Array (7.00487, 3.39471, 0.00005, 1.85061, 1.30530, 2.48446, 0.76986, 1.76917, 17.14175, 162.24220, 7.992, 6.93691, 17.12943);
o = new Array (48.33167, 76.68069,-11.26064, 49.57854, 100.55615, 113.71504, 74.22988, 131.72169, 110.30347, 58.86004, 188.923, 209.32713, 97.28538);
w = new Array (77.45645, 131.53298, 102.94719, 336.04084, 14.75385, 92.43194, 170.96424, 44.97135, 224.06676, 111.86560, 156.292, 339.09846, 275.22088);
l = new Array (252.25084, 181.97973, 100.46435, 355.45332, 34.40438, 49.94432, 313.23218, 304.88003, 238.92881, 115.68, 267.1875, 48.62884, 83.80675);
p = new Array (87.969 224.701 365.256, 686.980, 4332.589, 10759.22, 30685.4, 60189, 90465, 27795, 105192, 18573, 104096);
CR = Math.PI/180;
today = new Date();
DT = (today - J2000) / 864th + 5;
Count = n.length;
Inc = 1;
var pre = null; Drag the motion detect
Zoom = 8;
d = new Array();
B = new Array();
Co = new Array();
So = new Array();
This = new Array();
TR = new Array();
for (j = 0; j < count; j ++) {}
d [j] = 2 * Math.PI / p [j];
Co [j] = Math.cos (o [j] * cr);
Yes [j] = Math.sin (o [j] * cr);
This [j] = Math.cos (I [j] * cr);
If [I] = Math.sin (I [j] * cr);
u [j] = (w [j] + l [j]) * cr;
b [j] = Math.sqrt ((1 + e[j]) / (1 - e [j]));

C1 [j] = FRT (0);
C2 [j] is equal to traf(Math.PI / 2);
C3 [j] = FRT (3 * Math.PI/2);

this.attachMovie ("ellipse", count + j, j);
this.attachMovie ("dot", j, j + count);
if(j > 8) this ._alpha [j] = this [count + j] ._alpha = 50;
}

function FRT (e1) {}
vector = new Object();
var v = 2 * Math.atan (b [j] * Math.tan (e1/2)) + u [j];
var r = a [j] * (1 - e [j] * Math.cos (e1));
Vector.x = r * (co [j] * Math.cos (v) - so [j] * this [j] * Math.sin (v));
Vector.y = r * (yes [j] * Math.cos (v) + co [j] * this [j] * Math.sin (v));
Vector.z = r * TR [j] * Math.sin (v);
return vector;
}

function place (pass) {}
CMX = Math.cos (mx);
SMX = Math.sin (mx);
zoom = 5 + drag._x / 20;
If the zoom (zoom < 1) = 1;
If the zoom (zoom > 120) = 120;
This.Sun._xscale = this.sun._yscale = zoom;
XK zoom = * pass.x;
YK = zoom * (pass.z * smx - pass.y * cmx);
[j] ._x = xk;
[j] ._y = yk;

If (pre! = drag._y * drag._x) {/ / if zoomed in or turned transform ellipses}
x 1 = zoom * c1 [j] .x;
Y1 = zoom * (c1 [j] .z * smx - c1 [j] there * cmx);
x 2 = zoom * c2 [j] .x;
Y2 = zoom * (c2 [j] .z * smx - c2 [j] there * cmx);
x 3 = zoom * c3 [j] .x;
Y3 = zoom * (c3 [j] .z * smx - c3 [j] there * cmx);
AX = (x 2 + x 3 + y3 - y2) / 2 - x 1;
Ay = (x 2 - x 3 + y2 + y3) / 2 - y1;
BX = (x 2 + x 3 + y2 - y3) / 2 - x 1;
by = (x 3 - x 2 + y2 + y3) / 2 - y1;
XC = (x 2 + x 3) / 2;
YC = (y2 + y3) / 2;
EK = (bx, by) path / path (ax, ay);
ex = bx + ek * axe;
EY = a + ek * ay;
= path (ex, ey);
and = (ax * ay (xc - x 1) - * (yc - y1)) / (ax * ex + ey * ay);
XM = xc - x 1 - ey * HE;
YM = yc - y1 + ex * HE;
XA = ax - xm;
is = ay - ym;
his path (xm, ym) =;
with (this [count + j]) {}
_x = xc - its * ex /;
FLF = yc - its * ey /;
_xscale = sa;
_yscale = path (xa, ya);
_alpha = 25 + 100 * _yscale / _xscale;
_rotation = 180 * Math.atan2 (- ey, - ex) / Math.PI;
}
}
}

function kepler() {}
for (j = 0; j < count; j ++) {}
m = dt * d [j];
E0 = m + e [j] * Math.sin (m);
E0 = m + e [j] * Math.sin (e0);
place (FRT (e0));
}
}
}

onClipEvent (enterFrame) {}
MX = this.drag._y * cr / 2;
Kepler();
pre = this.drag._y * this.drag._x;
+= DT inc.;
}

where I would put a mouse event that allows the user to click on a planet in full view of the solar system and load the 3D representation of this planet?

Thanks for any help!

The code of your solar system is all AS2, AS3 code, so if your code on the planet is AS3 then you will probably need to re-think this - you can't mix the two languages in a single file.  If your planet code is AS2, then you should post in the AS2 forum.

Tags: Adobe Animate

Similar Questions

  • Can someone tell me what are these two programs and what they're doing, Microsoft Visual C++ Redistributable, and AMD USB Audio Driver filter?

    Can someone tell me what are these two programs and what they do?

    1 Microsoft Visual C ++ 2005 Redistributable 2. AMD USB Driver Audio Filter (Advanced MICRO Devices Inc.

    .

    Hello

    Here's the explanation for details, requested clarification on the following programs.
     
    1 Microsoft Visual C++ 2005 Redistributable
     
    Most common programs are written in a program called C and C++, which is widely used by developers and they are a source of standard libraries what software use to support and to perform their designated functions.

    When software is installed in the computer, he needs help / support of software of Visual C++, in order to avoid a software to download the copy of its source or support a coding Windows has integrated the software and download and storage space a s it updated to make it available to the software and to avoid unnecessary.
    It is strongly recommended that you keep your C++ updating so that no Microsoft software or third party to download an individual component each time.
     
     
    2. filter driver Audio USB AMD (Advanced MICRO Devices Inc.
     
    It is possible that you are using a product from AMD (card mother or specific device) and this particular software can be a pilot allowing filters update USB ensure operation smooth and full and for a device and its properties.
     
    Please let us know if you are facing problems with the software above, to receive the appropriate troubleshooting steps.
  • I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one?

    I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one? I want to use the account that I pay cloud Creative if I can use the new portfolio feature.

    Thank you.

    This is an open forum, not Adobe support... below to connect with Adobe personnel to help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How to combine these two scripts

    I have a script that displays the host name, the name of the data store and the NAAid in a csv file

    $VMhosts = get-datacenter xxxxxxxx | Get-VMHost

    $data = {foreach ($vmhost to $VMhosts)

    $vmhost | Get-Datastore.  Select @{N = "$vmhost"; E = {$vmhost. Name}},name,@{N="CanonicalNames '; E = {[string]: join (",",($_.ExtensionData.Info.Vmfs.Extent |)} %{$_. DiskName}))}}

    Get-VMHost $vmhost | Get-ScsiLun - CanonicalName $naa

    }

    $data | Export-Csv "C:\report.csv" - NoTypeInformation - UseCulture

    Then I have another script that if I put the ID NAA in a txt file it read and give me all the multitracks among other parameters

    $naaids = get-content "c:\ctluns.txt".

    {foreach ($naa to $naaids)

    Get-Cluster ctclt | Get-VMHost | Get-ScsiLun - CanonicalName $naa | Export-Csv "c:\ctpaths.csv".

    }

    I want a script that gives me all the four elements in a csv file.  Name of host, data store name, Id NAA and path.    I am struggling with getting this works specfically feeding the NAA ID from a script in the script line two that pulls the info multichannel.  Can anyone help?

    If you want only the MultipathPolicy, you can remove the rest of the attributes.

    Note: This script will take a large amount of time to run if you have to many data warehouses.

    Here it is:

    
    $VMhosts = Get-datacenter xxxxxxxxxx | Get-VMHost
    $output=@()
    foreach($vmhost in $VMhosts){
      $datastores = $vmhost | Get-Datastore
      $paths =@()
      foreach($dt in $datastores){
      $extentDatastore = $dt.ExtensionData.Info.Vmfs.Extent
      $extentDatastore| %{
            $path = $vmhost |Get-ScsiLun -CanonicalName $_.DiskName
    
            $ConsoleDeviceName = $path.ConsoleDeviceName
            $LunType = $path.LunType
            $CapacityGB = $path.CapacityGB
            $MultipathPolicy = $path.MultipathPolicy
            $RuntimeName = $path.RuntimeName
            $Model = $path.Model
            $Vendor = $path.Vendor
            $tempOutput = ""| select VMHost,DatastoreName,CanonicalNames,ConsoleDeviceName,LunType,CapacityGB,MultipathPolicy,RuntimeName,Model,Vendor
            $tempOutput.VMHost = $vmhost.Name
            $tempOutput.DatastoreName = $dt.Name
            $tempOutput.CanonicalNames = $_.DiskName
            $tempOutput.ConsoleDeviceName = $ConsoleDeviceName
            $tempOutput.LunType = $LunType
            $tempOutput.CapacityGB = $CapacityGB
            $tempOutput.MultipathPolicy = $MultipathPolicy
            $tempOutput.RuntimeName = $RuntimeName
            $tempOutput.Model = $Model
            $tempOutput.Vendor = $Vendor
            $output+= $tempOutput
    
      }}
    }
    $output| Export-Csv "c:\ctpaths.csv" -NoTypeInformation -UseCulture
    
  • I have versions more old photoshop and lightroom and I am wanting to upgrade. I use these two programs. What should I purchace. ? Lightroom is provided with photoshoop?

    I have an old verson of photoshop and ambient light. and want to upgrade... what should I buy?

    With subscription to the photographer of CC of Photoshop, you get both PS and LR for only $10 per month.

  • How to combine these two queries:

    Select K.ID, K.DOWN_STATUS, K.UP_STATUS,(K.DOWN_STATUS+K.UP_STATUS) TOT
    from (select ID, SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
    SUM (CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
    of test_info where CONNECT_TIMESTAMP BETWEEN ' 2012-03-27 00:00:00 ' AND ' 2012-03-27 23:59:59 '
    Group by ID) k

    Select r.ID,(r.DOWN_STATUS+r.UP_STATUS) TOTAL, (r.DEVICE_ID |) '|' || Str (r.UP_STATUS) | ' ~ ' || r.DEVICE_ID + ", ' | Str (r.DOWN_STATUS)) as deviceinfo
    from (select ID, device_id, SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
    SUM (CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
    of test_info where CONNECT_TIMESTAMP BETWEEN ' 2012-03-27 00:00:00 ' AND ' 2012-03-27 23:59:59 '
    Group by ID, device_id) r

    Maybe this?

    select K.ID||'/'||K.DOWN_STATUS||'/'||K.UP_STATUS||'/'||(K.DOWN_STATUS+K.UP_STATUS) strout
    from (select ID,SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
    SUM(CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
    from test_info where CONNECT_TIMESTAMP BETWEEN '2012-03-27 00:00:00' AND '2012-03-27 23:59:59'
    group by ID) k
    union all
    Select r.ID||'/'||(r.DOWN_STATUS+r.UP_STATUS)||'/'||(r.DEVICE_ID|| '|' ||STR(r.UP_STATUS)|| ' ~ ' ||r.DEVICE_ID+ ' , ' ||STR(r.DOWN_STATUS))
    from (select ID,device_id ,SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
    SUM(CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
    from test_info where CONNECT_TIMESTAMP BETWEEN '2012-03-27 00:00:00' AND '2012-03-27 23:59:59'
    group by ID,device_id) r;
    
  • Combine the two projects into one

    I know it is a very popular question and I read many answers excellent previous answers.  The two most popular procedures seem to be simple copy - paste and use clips of compounds with copy / paste.  CPF has improved this process over the years and I ask the question again to get the benefit of current thinking.   I have an iMac (mid-2011) OS X 10.11.4 and FCP worm 10.2.2.  I have two separate events within the same library.  There is a completed project, with all the transitions, effects and music, located within each discipline.    Current ideas on how to combine these two projects into one would be greatly appreciated.

    Thank you.

    Copy and paste is the only method I know.

    Open the project in the timeline first.

    Open the second project in the timeline panel. Only one project appears at the same time.

    Select an item in the timeline and press command + A to select all, then control + C to copy.

    Use the project navigation arrows to return the first project:

    Move the playhead to where copied clips must be glued and press command + V.

    Al

  • combine the two queries analysis

    Hi friends,

    could you please help me to combine these two queries. The bottom one looks like, take too many resources.

    FUNCTION XML_error_log ()P_i_xml IN XMLTYPE, p_i_event_key IN VARCHAR2,( )

    RETURN VARCHAR2

    IS

    l_covered_product_header_id NUMBER ;

    l_item_path VARCHAR2 (500);

       xml_table                     XMLTYPE;

    p_ret_code_o VARCHAR2 (5);

    p_error_buff_o VARCHAR2 (2000);

       l_user_id                     NUMBER (15) := fnd_global . user_id ;

    l_implicit_product_name VARCHAR2 (40);

    l_top_model_line_id oe_order_lines_all . top_model_line_id % TYPE;

    main_error_check VARCHAR2 (100) := NULL;

    main_error_check1 VARCHAR2 (100) := NULL;

    l_status_log_status VARCHAR2 (1);

    l_err_msg_log_status VARCHAR2 (4000);

       p_o_status                    VARCHAR2 (100);

       p_o_err_msg                   VARCHAR2 (100);

    P_i_input_res_xml XMLTYPE;

    BEGIN

    p_o_status := 'S' ;

    p_o_err_msg := NULL;

    Dbms_output.put_line ()' Start... process_response_xml ');

    FOR i

    IN (SELECT x. code , x . gravity , x . Description                   

    DE XMLTABLE ( )

    xmlnamespaces (DEFAULT ' urn: xyz:ccw:config:common: data'()

    , ' for $i in //error

    Returns the element r {}

    $i / code,.

    $i / description.

    $i / gravity

    }'

    By the WAY P_i_input_res_xml

    COLUMNS

                  code  VARCHAR2 (13) Path 'code'

    , gravity VARCHAR2 (30) Path "gravity"

    , Description VARCHAR2 (30) Path 'description'

    ) x )

    LOOP

    DBMS_OUTPUT.put_line ) ( )

    ' code : ' || i . code );

    DBMS_OUTPUT.put_line ) ( )

    ' severity: ' || i . gravity );

    DBMS_OUTPUT.put_line ) ( )

    ' description: ' || i . Description );

    main_error_check := i . code of : main_error_check;

    INSERT IN xxgco_config_validate ()event_status ERROR_CODE error_description ,error_severity creation_date event_key last_update_date( )

    VALUES('E',i. code , i . Description , i . gravity SYSDATE, p_i_event_key , SYSDATE);

    RETURN 'E' ;

    END LOOP;

    DBMS_OUTPUT.put_line ()' main_error_check:' : main_error_check);

    DBMS_OUTPUT.put_line ()' COMPLETED:');

    IF main_error_check IS NULL

    THEN

    FOR i

    IN (SELECT x. code , x . gravity , x . Description , x . subcause                   

    DE XMLTABLE ( )

    xmlnamespaces (DEFAULT ' urn: xyz:ccw:config:common: data'()

    , ' for $i in //message

    Returns the element r {}

    $i / code,.

    $i / description.

    $i / gravity,.

    $i / subCause

    }'

    By the WAY P_i_input_res_xml

    COLUMNS

                  code  VARCHAR2 (13) Path 'code'

    , gravity VARCHAR2 (30) Path "gravity"

    , Description VARCHAR2 (30) Path 'description'

    , subCause VARCHAR2 (50) Path "subCause"

    ) x )

    LOOP

    DBMS_OUTPUT.put_line ) ( )

    "code:" || i . code );

    DBMS_OUTPUT.put_line ) ( )

    ' severity: ' || i . gravity );

    DBMS_OUTPUT.put_line ) ( )

    ' description: ' || i . Description );

    DBMS_OUTPUT.put_line()' subCause:': i. subCause );

    INSERT IN xxgco_config_validate ()event_status ERROR_CODE error_description ,error_severity error_cause creation_date event_key last_update_date( )

                        VALUES('E',i. code , i . Description , i . gravity , i . subcause SYSDATE, p_i_event_key , SYSDATE);

    main_error_check1 := i . code of : main_error_check1;

    END LOOP;

    IF main_error_check1 IS NOT NULL

    THEN

    RETURN ('E');

    ON THE OTHER

    RETURN ('S');

    END IF;

    ON THE OTHER

    -TODO Log main error Log

    RETURN ('E');

    END IF;

    EXCEPTION

    WHEN Others

    THEN

    p_o_err_msg :=

    SUBSTR (

    ' Error in the response_XML_error_log FUNCTION:'

                || SUBSTR (SQLERRM, 1, 250)

                || ':'

                || DBMS_UTILITY.format_error_backtrace ,

    1 ,

    4000 );

    RETURN 'E' ;

    END XML_error_log ;



    Thanks in advance

    Ok.. This isn't a constructive debate...

  • Want to combine the two queries

    Hello

    It is my first post here, I hope it's a good place to put it.

    I have two queries that both gave me the results. I guess that both are way more elegant or better to do what they do, but that's what I came with. So feel free to modify them. However, my real problem is I want to combine these two queries in a single query, removing duplicate information.

    analytical_query

    SELECT * from(
      select
      requisitions.acc_id AS "Accession #"
      ,requisitions.draw_date AS "Draw Date"
      ,requisitions.received_date AS "Received Date"
      ,req_panels.run_date AS "Run Date"
      ,tests.TEST_ID
      ,(CASE WHEN tests.TEST_ID IN (7101) THEN results.RESULT_NUMERIC*2
             ELSE results.RESULT_NUMERIC
       END) AS RESULT_NUMERIC
      ,doctors.f_name || ' '|| doctors.l_name AS "Physician"
      ,organizations.state AS "State"
    FROM requisitions
    
    inner join req_panels ON requisitions.acc_id = req_panels.acc_id
    inner join results ON req_panels.rp_id = results.rp_id
    inner join tests ON results.test_id = tests.test_id
    inner join doctors ON requisitions.doc_id1 = doctors.doc_id
    inner join organizations ON requisitions.org_id = organizations.org_id
    
    WHERE requisitions.DEL_FLAG='F'
         AND req_panels.DEL_FLAG='F'
         AND results.DEL_FLAG='F'
         AND req_panels.PANEL_ID IN (7000,70001,70551)
         AND results.TEST_ID IN (7101,7102,7107,7108)
         AND requisitions.RECEIVED_DATE > TO_DATE('9/1/2013', 'MM/DD/YYYY')
    ORDER BY requisitions.ACC_ID
    )
    
    pivot(
          MAX(RESULT_NUMERIC)
          for TEST_ID IN ('7101' AS CRP,'7102' AS Hemoglobin,'7107' AS "LDT Run 1",'7108' AS "LDT RUN 2")
    )
    

    culture_query

    SELECT * from(
    select
      requisitions.acc_id AS "Accession #"
      ,MAX(requisitions.draw_date) AS "Draw Date"
      ,MAX(requisitions.received_date) AS "Received Date"
      ,MAX(req_panels.run_date) AS "Run Date"
      ,tests.TEST_ID
      ,LISTAGG(results.RESULT_ALPHA, ';')
      WITHIN GROUP
      (ORDER BY results.RESULT_ALPHA) RESULT_ALPHA
    FROM requisitions
    
    inner join req_panels ON requisitions.acc_id = req_panels.acc_id
    inner join results ON req_panels.rp_id = results.rp_id
    inner join tests ON results.test_id = tests.test_id
    inner join doctors ON requisitions.doc_id1 = doctors.doc_id
    inner join organizations ON requisitions.org_id = organizations.org_id
    
    WHERE req_panels.PANEL_ID IN (7000,70001,70551)
         AND results.TEST_ID IN (10010,10052,11010)
         AND requisitions.RECEIVED_DATE > TO_DATE('9/1/2013', 'MM/DD/YYYY')
         AND requisitions.DEL_FLAG = 'F'
         AND req_panels.DEL_FLAG = 'F'
         AND results.DEL_FLAG = 'F'
         AND req_panels.RUN_DATE is not null
    group by requisitions.ACC_ID, tests.TEST_ID
    )
    
    pivot(
          MAX(RESULT_ALPHA)
          for TEST_ID IN ('10010' AS "Organism",'10052' AS "Negative/No Growth", '11010' AS "Growth")
    )
    

    Basically, what is missing from the first query is the global list of the 'RESULT_ALPHA' for 'TEST_ID"10010, 10052 and 11010 numbers. And because of the way they want to view this information that I had to tilt it, which is where I ran into problems. If anyone has any idea on how I can combine these two requests and make them more effective that would be great.

    Thank you.

    Hello

    JayG30 wrote:

    ... I have however found a way to do what I would call "swivel conditional."  ...

    I think it's the crux of this problem; you want MAX BOF a few tests and LISTAGG for others.  I don't know a good way to attract the SELECT... PIVOT to do both at the same time.  I think it's one of those situations where SOME... PIVOT is not the best tool for the job;  MAX (CASE...) and LISTAGG (CASE...) may be more practical and more effective:

    SELECT rq.acc_id

    , MAX (rq.draw_date) AS "the draw Date.

    , MAX (rq.received_date) as BEING "received Date".

    , MAX (rp.run_date) AS "Date of the race.

    , MAX (CASE WHEN rs.test_id = 7101 THEN rs.result_numeric * END 2) AS the crp

    , MAX (CASE WHEN rs.test_id = 7102 THEN rs.result_numeric END) AS hemoglobin

    , MAX (CASE WHEN rs.test_id = 7107 THEN rs.result_numeric END) AS "LDT Run 1.

    , MAX (CASE WHEN rs.test_id = 7108 THEN rs.result_numeric END) AS "LDT, 2nd round.

    , LISTAGG (CASE WHEN rs.test_id = 10010 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS "organization".

    , LISTAGG (CASE WHEN rs.test_id = 11010 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS a 'growth '.

    , LISTAGG (CASE WHEN rs.test_id = 10052 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS 'Negative/No growth '.

    Rq requisitions

    INNER JOIN req_panels ON rp.acc_id = rq.acc_id PR

    INNER JOIN results rs ON rs.rp_id = rp.rp_id

    WHERE rq.del_flag = 'F'

    AND rp.del_flag = 'F'

    AND rs.del_flag = 'F'

    AND rp.run_date IS NOT NULL

    GROUP BY rq.acc_id

    ORDER BY rq.acc_id

    ;

    I don't quite get the results you have posted; for example, I don't see how you get a row of results with 'Accession' = 142425, while acc_id does not occur in the sample data.  It was maybe just a typo.

  • question about how to combine the two scripts.


    Hello

    I have a sql script that can display a table (or view) all the information, it works fine. I call it validate_table.sql, as below:

    command prompt
    accept invites owner "Enter table owner:
    accept invites from TABLE_NAME "Enter object (table/View...) "name:"


    column owner format a10 column 'owner '.
    column format a30 topic 'Object name' object_name
    column object_type format a15 direction "Type of object".
    Status format a10 column titled "Status".
    in the heading of column created format a20 "created."
    the LAST_DDL_TIME format a20, heading 'LAST_DDL_TIME.
    Select
    owner
    object_name
    object_type
    status
    , to_char (created, "DD_MON_YY hh24:mi:ss") created
    LAST_DDL_TIME,
    Of
    DBA_OBJECTS
    where
    object_name = upper ('& table_name') and owner = upper ('& owner');


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    Guest - table/view structure-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    describe and owner... & table table_name

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list assigned user/subsidies-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    set pagesize 50000
    set linesize 10000
    set verify off
    Set feedback off
    column lvl format A4 direction "Lvl".
    proprietary format of columns A14
    format column in table_name A29
    A38 dealer column format
    column privilege A10 format


    SELECT 'Role' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT FROM dba_roles role WHERE = role t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'User' lvl t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT username FROM dba_users WHERE username = t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'Pub' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee = 'PUBLIC' and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    ORDER BY 1, 2, 3;

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of synonyms created.

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    proprietary format of columns A15
    synonym_name A20 column format
    A15 table_owner column format
    format column in table_name A40
    DB_link A40 column format

    Select the owner, synonym_name, table_owner, table_name, DB_link from DBA_synonyms where Table_name = upper ('& table_name') stopped by the owner;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list index created-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    Select
    table-name
    index_name
    index_type
    nom_tablespace
    status
    of DBA_indexes
    WHERE table_name = upper ('& table_name') and owner = upper ('& owner')
    order of table_name, index_name;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of constraints-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    format column in table_name A15
    format of column cons_type A15
    cons_name A20 column format
    check_cons A25 column format
    VALIDATED A20 column format
    column status A10 format
    last_change A20 column format

    Select
    table-name
    (case constraint_type
    When 'P', then 'Primary Key '.
    When 'R' then 'Foreign Key'
    When 'C' then 'check '.
    When 'U' then 'single '.
    When 'o' then 'read only display '.
    When 'V' then 'check the view. "
    When 'H' then 'Hash expression. "
    When 'F' then 'REF column.
    When the of ' then 'additional logging.
    cons_type end)
    constraint_name cons_name
    condition_de_recherche check_cons
    status
    VALID
    last_change
    of dba_constraints
    where owner = upper ('& owner')
    and table_name = upper ('& table_name')
    order of cons_type;

    I have another script that allows to display the newly created tables (table, table names) in the last 24 hours.

    SET SERVEROUTPUT ON;

    DECLARE

    CURSOR tmp_cur IS

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE') and the owner not in ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN") and last_ddl_time > sysdate - 1;

    tmp_rec tmp_cur % ROWTYPE;

    BEGIN

    FOR tmp_rec IN tmp_cur LOOP

    DBMS_OUTPUT. PUT_LINE)

    tmp_rec. Owner | ' ' || tmp_rec.object_name);

    END LOOP;

    END;

    /

    The gap of the first script (validate_table.sql) is that it can only check table one by one by manual entry, then how can I combine these two scripts, to make a scipt that can check all newly created tables (not a table) in the last 24 hours?

    I thank very you much in advance!

    Hello

    If you already know how to find the owner and all the tables created table_name recently.  One thing you can do is to change all the WHERE clauses in validate_table.sql, so instead of things like

    where object_name = upper ('& table_name') and owner = upper('&owner');

    you say

    WHERE (owner, object_name) IN

    (

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1

    )

    ;

    Here is another approach:

    Validate_table. SQL is quite handy as it is.  You may want to run this script for tables, even when you know that they are not new.  Divide into 2 scripts: one called ask_and_describe_table.sql, which looks like this:

    -Ask_and_Describe_Table.sql

    accept invites owner "Enter table owner:

    accept invites from TABLE_NAME "Enter object (table/View...) "name:"

    -You can use any name path instead of d:\some_dir below:

    @d:\some_dir\describe_table & owner, table_name

    and the other one called Describe_Table.sql, which starts like this:

    -Describe_Table.sql

    DEFINE owner = & 1

    DEFINE table_name = & 2

    column owner format a10 column 'owner '.

    ...

    and continues with the same exact content as validate_table.sql.

    Now, to write another script (I'll call it Describe_Recent_Tables.sql):

    -Describe_Recent_Tables.sql - create and run Describe_Many_Tables.sql

    -Turn OFF the devices designed to help people to read the output:

    SET ECHO OFF

    SET FEEDBACK OFF

    SET PAGESIZE 0

    VERRIFY OFF SET

    -Create a Describe_Many_Tables.sql:

    COIL d:\some_dir\describe_many_tables.sql

    SELECT ' @d:\some_dir\describe_table '

    ||      owner

    ||      '  '

    ||      object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1;

    SPOOL OFF

    -Features lighting designed to help people to read the output:

    SET ECHO ON

    SET FEEDBACK ON

    SET PAGESIZE 50

    SET VERRIFY ON

    -Describe_Many_Tables.sql performance

    @d:\some_dir\describe_many_tables

    I guess that all of your tables have standard names (for example, start with a letter, no spaces in the name,...), which don't require quotation marks.  If they could, then the same basic approach will work, but the details are a little messier.

    When you want to see the information on a single table or view, no matter how old it is, driven

    Ask_and_Describe_Table

    or, if you do not need to question the owner of the table and the name, something like

    Describe_Table SCOTT EMP

    (You can find that you really need not Ask_and_Describe_Table.sql).

    When you want to do this for all the tables created in the last 24 hours:

    Describe_Recent_Tables

  • Licenses for two programs

    I need video editing, the woman made the photos. Can I have these two programs running simultaneously on 2 computers different here on the same router at home?

    [Please choose a brief description for the title of the thread, and only after the real problem in the main body].

    Post edited by: Jim Simon

    [Moved to creative forum Cloud.]

  • Downloaded PSE13, these two files are located in the downloads folder, but I can't activate the program, he repeated to me that the part of the file is missing

    Downloaded PSE13, these two files are located in the downloads folder, but I can't activate the program, he repeated to me that the part of the file is missing

    Please check: https://forums.adobe.com/message/8163721

  • I currently use PS5 and LR5. If I subscribe to CC PS these new programs it integrates with my older versions, or I would have then two versions of each program on my computer?

    I currently use PS5 and LR5. If I subscribe to CC PS these new programs it integrates with my older versions, or I would have then two versions of each program on my computer?

    If you install the creative Cloud versions, you will have then two versions of the two. You can uninstall the old ones if you don't need two versions of each, but you must first disable them if you ever want to use them on another computer.

    Enable and disable Adobe products

  • r beeb used before on pc. The problem is that these two PCs are thrown NAWL avay chrased long, I hava a few photos on the program and its impossible to buy a new number for one that oldc product. What should do?

    r beeb used before on pc. The problem is that these two PCs are thrown NAWL avay chrased long, I hava a few photos on the program and its impossible to buy a new number for one that oldc product. What should do?

    If you have the serial number, you can contact the Adobe Support via chat (when they are available - not weekend) and ask them to reset your activations.  Which will allow you to reinstall and activate again using the serial number, which you have now.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • I installed lr6 &amp; photoshop cc &amp; these two apps are not in features &amp; pannel - control program. both work well, but I want to uninstall cc photoshop, how do I do

    I installed photoshop cc & lr6 in win 7 64 bit.
    These two applications work well & are not in features & pannel - control program.
    How to uninstall photoshop cc if it is not in the pfogram list & features?

    Try tool Adobe Cleaner running:

    Locate the Photoshop option and remove it.

    Do not select clean all the option, it will remove all Adobe applications

    https://helpx.Adobe.com/content/help/en/creative-cloud/KB/CC-cleaner-tool-installation-Pro d/_jcr_content/hand-Sea/support_section_0/section-Sea/section_content/section-content t-main/filter_content/section-content-main/procedure/proc_par/step_5/step_par/download/wire e.res/AdobeCreativeCloudCleanerTool.zip

Maybe you are looking for