NEED HELP IN THE GROUP BY CLAUSE CASES PLEASE
User1983440 thanks for the help with the script below grouped by product category, can you or someone else help me group by another Case statement as well.WITH p AS)
Select distinct
partner, region, od. ORDER_AFFILIATE_NAME,
Oh.external_order_number,
Ain.get_g1 (queue_type) offers,
Case
When disp.category = 100 Then 'ORDER'
When disp.category = 200 Then 'ACCESS'
When disp.category = 300 Then 'DSL'
When disp.category = 600 Then 'IPTV'
"When disp.category = 700 Then'INTERNET"
When disp.category = 800 Then 'VOIP'
End up like product_category,
To_char(OH.created_ts, 'yyyy-mm-dd HH24:mi:ss') CREATE_DATE
-Case when ip.offer_type = "IPDSLAM" or instr (ip.display_name, "-d") > 0
THEN 'IP - LAN'
ELSE 'FTTN.
end as product_type
Case
When disp.state = 4 and disp.state = 9 or disp.state = 21 or 22 = disp.state then 'cancelled '.
When disp.state = 17 then "NRFC cancelled.
When disp.state = 7 Then 'incomplete '.
When disp.state = 3 or disp.state = 8, then "Finish".
When disp.state = 6 or disp.state = 10 and disp.state = 13 or disp.state = 14 then 'pending - other ".
When disp.state = 19 disp.state = 20 then "sent".
When disp.state = 21 or disp.state = 22 then "Cancelled - CSUS.
When disp.state = 23 or 24 = disp.state then 'Order Confirmation '.
When disp.state = 1 or disp.state = 2 or disp.state = 15 then "receipt".
Another 'other '.
End as STATE_desc
of AIN.impl_oh_order_header oh,.
Ain.impl_order_data od,
DISP AIN.sncr_order_curr_disp,
AIN.impl_package ip
where oh.created_ts between to_date ('2013-02-04', ' yyyy-mm-dd "")
and to_date ('2013-02-11', ' yyyy-mm-dd "")
and oh.order_type = 'COMMAND '.
and disp.category to (200, 300, 600, 700, 800)
and disp.state! = '5'
and uscs = 0
and disp.transaction_id = oh.transaction_id
and od. transaction_id = oh.transaction_id
and ip.transaction_id = oh.transaction_id
and ip.package_type = 'PACKAGE '.
and ip.parent_package_id is null
and ip.product_type = 'COMMAND '.
)
SELECT product_category,
COUNT (*)
P
GROUP BY product_category
To summarize, by category of product, and then by state_desc:
WITH p AS (
Select distinct
partner, region, od.ORDER_AFFILIATE_NAME,
oh.external_order_number,
ain.get_g1(queue_type) offer,
Case
When disp.category = 100 Then'ORDER'
When disp.category = 200 Then'ACCESS'
When disp.category = 300 Then'DSL'
When disp.category = 600 Then'IPTV'
When disp.category = 700 Then'INTERNET'
When disp.category = 800 Then'VOIP'
End as product_category,
TO_CHAR(oh.created_ts, 'yyyy-mm-dd hh24:mi:ss') CREATE_DATE,
Case when ip.offer_type = 'IPDSLAM' or instr(ip.display_name, '- D')> 0
THEN 'IP-DSL'
ELSE 'FTTN'
end as product_type,
Case
When disp.state = 4 or disp.state = 9 or disp.state= 21 or disp.state= 22 Then 'Canceled'
When disp.state = 17 Then 'Canceled NRFC'
When disp.state = 7 Then 'Incomplete'
When disp.state = 3 or disp.state = 8 Then 'Complete'
When disp.state = 6 or disp.state = 10 or disp.state = 13 or disp.state =14 Then 'Pending - Other'
When disp.state = 19 or disp.state = 20 Then 'Submitted'
when disp.state = 21 or disp.state = 22 then 'Cancelled- CSUS'
when disp.state =23 or disp.state = 24 then 'Order Confirmation'
when disp.state =1 or disp.state = 2 or disp.state = 15 then 'Received'
Else 'Other'
End as STATE_desc
from AIN.impl_oh_order_header oh,
ain.impl_order_data od,
AIN.sncr_order_curr_disp disp ,
AIN.impl_package ip
where oh.created_ts between to_date('2013-02-04', 'yyyy-mm-dd')
and to_date('2013-02-11', 'yyyy-mm-dd')
and oh.order_type = 'ORDER'
and disp.category in (200, 300, 600, 700, 800)
and disp.state !='5'
and uscs= 0
and disp.transaction_id = oh.transaction_id
and od. transaction_id = oh.transaction_id
and ip.transaction_id = oh.transaction_id
and ip.package_type = 'PACKAGE'
and ip.parent_package_id is null
and ip.product_type = 'ORDER'
)
SELECT product_category, STATE_desc,
COUNT(*)
FROM p
GROUP BY product_category, STATE_desc
To summarize by state_desc, just remove "product category", the query above.
Tags: Database
Similar Questions
-
need help on the SM Bus controller driver please
I have dell inspiron n5110 core i5 6 GB of ram 640 GB hard
Windows 7 Professional x 64
When I go to Device Manager > other devices: SM Bus controller has an exclamation mark next to it
I think it means that this driver is not installed
What does this driver? and how to install it?
Another question: when I press Fn + F4 or F5 or anything, no notification will appear on the screen. How to make it appear? I want to say I want that when I press Fn + F4 has a box that was how light it seems
Thanks in advance
If any1 is an expert on this laptop or might know the answers, but my writing style is not good, please tell me and I'll write my question otherwise
Thanks in advance again
It seems that you have not installed the drivers in the system.
Please consult the guide below. A clean install of Windows 7 (pay particular attention to step 4.)
For the SM Bus, you need software for laptop Dell, Chipset, video, Communications and Audio. For the keys you miss Dell Quickset.
-
Need help in the optimization of the query with the Group and joins by clause
I'm having the problem by running the following query... It takes a lot of time. To simplify, I added the two tables FILE_STATUS = stores the file load details and COMM table Board table job showing records treated successfully and which was communicated to the other system real. Records with status = T is trasnmitted to another system and traansactions with P is waiting.
Here's the query I wrote to give me the details of the file that has been loaded into the system. He reads the table of State and the commission files to display the name of the file, total records loaded, total at the table of the commission and the number of records which has finally been passed successfully loaded (Status = T) with other systems.CREATE TABLE FILE_STATUS (FILE_ID VARCHAR2(14), FILE_NAME VARCHAR2(20), CARR_CD VARCHAR2(5), TOT_REC NUMBER, TOT_SUCC NUMBER); CREATE TABLE COMM (SRC_FILE_ID VARCHAR2(14), REC_ID NUMBER, STATUS CHAR(1)); INSERT INTO FILE_STATUS VALUES ('12345678', 'CM_LIBM.TXT', 'LIBM', 5, 4); INSERT INTO FILE_STATUS VALUES ('12345679', 'CM_HIPNT.TXT', 'HIPNT', 4, 0); INSERT INTO COMM VALUES ('12345678', 1, 'T'); INSERT INTO COMM VALUES ('12345678', 3, 'T'); INSERT INTO COMM VALUES ('12345678', 4, 'P'); INSERT INTO COMM VALUES ('12345678', 5, 'P'); COMMIT;
In production, this request has several joins and takes a long time to deal with... the main culprit for me is the join on the COMM table to count the number of number of transactions sent. Please can you give me tips to optimize this query to get results faster? What I need to delete the Group and use the partition or something else. Help, please!SELECT FS.CARR_CD ,FS.FILE_NAME ,FS.FILE_ID ,FS.TOT_REC ,FS.TOT_SUCC ,NVL(C.TOT_TRANS, 0) TOT_TRANS FROM FILE_STATUS FS LEFT JOIN ( SELECT SRC_FILE_ID, COUNT(*) TOT_TRANS FROM COMM WHERE STATUS = 'T' GROUP BY SRC_FILE_ID ) C ON C.SRC_FILE_ID = FS.FILE_ID WHERE FILE_ID = '12345678';
Don't know if it will be faster based on the information provided, but analytical functions offer an alternative approach;
select carr_cd, file_name, file_id, tot_rec, tot_succ, tot_trans from (select fs.carr_cd, fs.file_name, fs.file_id, fs.tot_rec, fs.tot_succ, count(case when c.status = 'T' then 1 else null end) over(partition by c.src_file_id) tot_trans, row_number() over(partition by c.src_file_id order by null) rn from file_status fs left join comm c on c.src_file_id = fs.file_id where file_id = '12345678') where rn = 1; CARR_CD FILE_NAME FILE_ID TOT_REC TOT_SUCC TOT_TRANS ------- -------------------- -------------- ---------- ---------- ---------- LIBM CM_LIBM.TXT 12345678 5 4 2
-
Concatenation of data with the GROUP BY clause
Hi again!
Following my previous thread...
I tried to apply the GROUP BY clause instead of preforming my query with RANK() to manage records NULL... I have a scenario where I also need to concatenate data from several lines.
CREATE TABLE T_EMP (NUMBER OF EMP_NO, NAME VARCHAR2 (20));
INSERT INTO T_EMP VALUES (1001, 'MARK');
INSERT INTO T_EMP VALUES (1002, 'DAVID');
INSERT INTO T_EMP VALUES (1003, "SHAUN");
INSERT INTO T_EMP VALUES (1004, "JILL");
CREATE TABLE T_EMP_DEPT (NUMBER OF EMP_NO, DEPT_NO NUMBER);
INSERT INTO T_EMP_DEPT VALUES (1001, 10);
INSERT INTO T_EMP_DEPT VALUES (1001, 20);
INSERT INTO T_EMP_DEPT VALUES (1002, 10);
INSERT INTO T_EMP_DEPT VALUES (1002, 20);
INSERT INTO T_EMP_DEPT VALUES (1002, 30);
INSERT INTO T_EMP_DEPT VALUES (1003, 20);
INSERT INTO T_EMP_DEPT VALUES (1003, 30);
INSERT INTO T_EMP_DEPT VALUES (1004, 10);
CREATE TABLE T_EMP_VISITS (NUMBER OF EMP_NO, DEPT_NO NUMBER, VISITED DATE);
INSERT INTO T_EMP_VISITS VALUES (1001, 10, 1 JAN 2009');
INSERT INTO T_EMP_VISITS VALUES (1002, 10, 1 JAN 2009');
INSERT INTO T_EMP_VISITS VALUES (1002, 30, 11 APR 2009');
INSERT INTO T_EMP_VISITS VALUES (1003, 20, 3 MAY 2009');
INSERT INTO T_EMP_VISITS VALUES (1003, 30: 14 FEB 2009');
COMMIT;
I have a T_EMP master table that stores the name and number of the emp. Each emp is required to visit some departments. This mapping is stored in the T_EMP_DEPT table. An employee can visit one or more departments. T_EMP_VISITS table stores the dates where the employee visited the services required. I need to view the report which should show when an employee all completed visits, which is the maximum date when it finished to visit all departments. If he did not visit any of the report should display date max, otherwise NULL. I was able to do using GROUP BY such proposed by Salim, but how do I show a list separated by commas of the services required for an employee in the same query.
SELECT
EMP_NO,
NAME,
MAX (DEPT_NO) KEEP (DENSE_RANK LAST ORDER BY VISITED) MAX_DEPT_NO,.
MAX (VISITED) KEEP (DENSE_RANK LAST ORDER PER VISIT) VISITS_COMP
DE)
SELECT
T_EMP. EMP_NO,
NAME,
T_EMP_DEPT. DEPT_NO,
VISITED
OF T_EMP
LEFT OUTER JOIN T_EMP_DEPT
ON T_EMP. EMP_NO = T_EMP_DEPT. EMP_NO
LEFT OUTER JOIN T_EMP_VISITS
ON T_EMP_DEPT. EMP_NO = T_EMP_VISITS. EMP_NO
AND T_EMP_DEPT. DEPT_NO = T_EMP_VISITS. DEPT_NO)
GROUP EMP_NO, NAME;
Output
EMP_NO NAME MAX_DEPT_NO VISITS_COMP
1001 MARK 20
1002 DAVID 20
1003 SHAUN 20 3 MAY 09
JILL 1004
Power required
EMP_NO NAME REQ_DEPTS MAX_DEPT_NO VISITS_COMP
1001 MARC 20 10.20
1002 DAVID 10,20,30 20
1003 SHAUN 20,30 20 3 MAY 09
JILL 10 1004
Can we do this in a single query?Hello
user512647 wrote:
... Sanjay
The query you provided that stragg() use seems to work but my requirement is not in the result set. I don't know how to use stragg with
MAX (DEPT_NO) KEEP (DENSE_RANK LAST ORDER BY VISITED) MAX_DEPT_NO,.
MAX (VISITED) KEEP (DENSE_RANK LAST ORDER PER VISIT) VISITS_COMP
I need more, these two columns these gives me the date when they have completed all visits. If they missed any Department then the result must be NULL in the VISITS_COMP field.Just add them to the SELECT clause:
SELECT t_emp.emp_no, name, STRAGG (t_emp_dept.dept_no) AS deptno, MAX (t_emp_dept.dept_no) KEEP (DENSE_RANK LAST ORDER BY visited) AS max_dept_no, MAX (visited) AS visits_comp FROM t_emp LEFT OUTER JOIN t_emp_dept ON t_emp.emp_no = t_emp_dept.emp_no LEFT OUTER JOIN t_emp_visits ON t_emp_dept.emp_no = t_emp_visits.emp_no AND t_emp_dept.dept_no = t_emp_visits.dept_no GROUP BY t_emp.emp_no , name ;
The column called visit_comp is simply the last visited, regardless of how the employee visited departments.
If you want to have the NULL value if the employee has not yet visited all 3 departments:... CASE WHEN COUNT (DISTINCT t_emp_dept.dept_no) = 3 THEN MAX (visited) END AS visits_comp
The 'magic number' 3 is the total number of departments.
If you want to understand the correct value of that at the time of the execution of the query, replace the code literal 3 hard with a scalar subquery.Note that 'KEEP MAX (x) (DENSE_RANK OVER LAST SERVICE BY x)' (where the exact same column is used as an argument and that the ORDER BY column) is just "MAX (x)".
-
Need help with the launching track pack for forza code 4
Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.
This is the help I get when the cat to an Ambassador xbox on xbox.com
Terry wrote:Need help with the launching track pack for forza code 4The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]The Xbox Ambassador says:HelloTerry wrote:HelloThe Xbox Ambassador says:HeyTerry wrote:just to be on the phone to xbox live support and was told to come hereThe Xbox Ambassador says:ok\The Xbox Ambassador says:What is your problem?Terry wrote:I bought the 4 for forza ansd 360 new sealed Christmas...Terry wrote:has got 2 codes that accompanies the game but the pack track code does not workThe Xbox Ambassador says:Wow goodTerry wrote:whenever I put in the code it says code redeemedThe Xbox Ambassador says:I think the code is used. You must return to the retailerTerry wrote:I tried to, but since I already opened the case they will not acceptThe Xbox Ambassador says:Oh. No,Terry wrote:the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is openThe Xbox Ambassador says:Maybe it was auto bought?Terry wrote:so, how do I get another code generated track Pack if defective?The Xbox Ambassador says:I do not know.Terry wrote:bought the game new, so I get the track packThe Xbox Ambassador says:Oh. It's bad.The Xbox Ambassador says:I think that if you Exchange 1 code it will buy itTerry wrote:car pack code worked, starter pack did not workThe Xbox Ambassador says:Oh.The Xbox Ambassador says:It's a badThe Xbox Ambassador says:BTW you have an evolution of the tests?Terry wrote:Yes, I want to? but more anxious to get a code object generated for this packThe Xbox Ambassador says:Hey if I help can u give me this game too?Terry wrote:?????????????????Terry wrote:So is it possible to get a code for that time?The Xbox Ambassador says:HeyThe Xbox Ambassador says:Yes.The Xbox Ambassador says:you need to contact themThe Xbox Ambassador says:and tell them that the code is used.Terry wrote:I was told to come here? where can I go to get the code?Hi Terryg76,
· What version of the operating system is installed on the computer?
I suggest you to contact the game manufacturer for more help and information.
-
I need help for the upgrade of my current system.
I need help for the upgrade of my current system.
I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.
I want to make the larger environment using the following:
(1) apply Virtualization
(2) apply to the failover process (clustering)
"(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.
Storage 4) that supports Raid (1 and 5)
UTM excellent 6) that supports (SSL VPN, VPN Global)
suitable backup solution 7)
(8) good antivirus for clients
my questions:
(1) can you provide me with a good design for this environment
(2) should I choose what operating system:
Microsoft datacenter or company
I know datacenter provide us the unlimited VM but needs per processor license
so if I have two Grouped servers I want to buy 4 licenses
and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?
(3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?
(4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?
(5) what about win2k8 license for VM:
lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?
(6) can I use backExec license for SBS with windows 2008 standard
(7) who better to virtualization AMD or INTEL
(8) hyper V or VMware?
(9) what of Microsoft data protection Manager... is this good?
(10) what virtual machine manager? What are the benefites keys
Thanks in advance
Hello AnasAI,
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
Hi all
I need help license the following environment:
1 400 VDIs.
2. associated VDI servers.
3-8 non - VDI associated servers.
This environment runs on 6 dual CPU servers.
Concerning
For this, but all these already include vSphere, ESX and vCenter licenses.
Advanced also include VSAN.
Advanced horizon is available as simultaneous user and username, so if you can choose what type of license would be the most suitable for you, in most cases, the concurrency model is best suited.
So say you have 400 concurrent users, you need 400 advanced Horizon permits and are then all included vSphere licenses.
Linjo
-
Select the columns not in the group by clause
Hello
My version of DB is 10.0.2
I have query, where in I need to select two columns more but that should not be part of the group by Clause.
Does perform a work around?
SELECT F.custnum, V.Import_date, -- F.ErledigtMM,F.ErledigtGrundMM, (Columns to be selected additionally) nvl(sum(nvl(round(V.VerAuf16/1000,2), 0) +nvl(round(V.VerAuf17/1000,2), 0) + nvl(round(V.VerAuf18/1000,2), 0) + nvl(round(V.VerAuf19/1000,2), 0) + nvl(round(V.VerAuf20/1000,2), 0) + nvl(round(V.VerAufKAPUn/1000,2), 0) + nvl(round(V.VerAufKAPVz/1000,2), 0) ), 0) Mandantenforderung, nvl(sum(nvl(round(V.VerAuf4/1000,2), 0) ), 0) Inkassokosten, nvl(sum(nvl(round(V.VerAuf5/1000,2), 0) ), 0) KontoFuehrungsgebuehren, nvl(sum(nvl(round(V.VerAuf1/1000,2), 0) + nvl(round(V.VerAuf2/1000,2), 0) ), 0) Verwertungskosten, nvl(sum(nvl(round(V.VerAuf10/1000,2), 0) + nvl(round(V.VerAuf8/1000,2), 0) + nvl(round(V.VerAuf9/1000,2), 0) ), 0) Barauslagen, nvl(sum(nvl(round(V.VerAuf13/1000,2), 0) + nvl(round(V.VerAuf14/1000,2), 0) + nvl(round(V.VerAuf15/1000,2), 0) + nvl(round(V.VerAuf6/1000,2), 0) ),0) Gerichtskosten, nvl(sum(nvl(round(V.VerAuf11/1000,2), 0) + nvl(round(V.VerAuf12/1000,2), 0) + nvl(round(V.VerAuf7/1000,2), 0) ), 0) RAKosten, TO_CHAR(F.Created_Date,'MM.YYYY') Created_Date_MM , TO_CHAR(F.Created_Date,'YYYY') Created_Date_MMRRRR FROM FACM F, VA V WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum GROUP BY F.custnum, V.Import_date,TO_CHAR(F.Created_Date,'MM.YYYY') ,TO_CHAR(F.Created_Date,'YYYY'))
Hello
Here's what I suggest:
select a.custnum, a.import_date, b.ErledigtMM, b.ErledigtGrundMM, a.Mandantenforderung, a.Inkassokosten, a.KontoFuehrungsgebuehren, a.Verwertungskosten, a.Barauslagen, a.Gerichtskosten, a.RAKosten, a.Created_Date_MM , a.Created_Date_MMRRRR from ( SELECT F.custnum, V.Import_date, nvl(sum(nvl(round(V.VerAuf16/1000,2), 0) +nvl(round(V.VerAuf17/1000,2), 0) + nvl(round(V.VerAuf18/1000,2), 0) + nvl(round(V.VerAuf19/1000,2), 0) + nvl(round(V.VerAuf20/1000,2), 0) + nvl(round(V.VerAufKAPUn/1000,2), 0) + nvl(round(V.VerAufKAPVz/1000,2), 0) ), 0) Mandantenforderung, nvl(sum(nvl(round(V.VerAuf4/1000,2), 0) ), 0) Inkassokosten, nvl(sum(nvl(round(V.VerAuf5/1000,2), 0) ), 0) KontoFuehrungsgebuehren, nvl(sum(nvl(round(V.VerAuf1/1000,2), 0) + nvl(round(V.VerAuf2/1000,2), 0) ), 0) Verwertungskosten, nvl(sum(nvl(round(V.VerAuf10/1000,2), 0) + nvl(round(V.VerAuf8/1000,2), 0) + nvl(round(V.VerAuf9/1000,2), 0) ), 0) Barauslagen, nvl(sum(nvl(round(V.VerAuf13/1000,2), 0) + nvl(round(V.VerAuf14/1000,2), 0) + nvl(round(V.VerAuf15/1000,2), 0) + nvl(round(V.VerAuf6/1000,2), 0) ),0) Gerichtskosten, nvl(sum(nvl(round(V.VerAuf11/1000,2), 0) + nvl(round(V.VerAuf12/1000,2), 0) + nvl(round(V.VerAuf7/1000,2), 0) ), 0) RAKosten, TO_CHAR(F.Created_Date,'MM.YYYY') Created_Date_MM , TO_CHAR(F.Created_Date,'YYYY') Created_Date_MMRRRR FROM FACM F, VA V WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum GROUP BY F.custnum, V.Import_date,TO_CHAR(F.Created_Date,'MM.YYYY') ,TO_CHAR(F.Created_Date,'YYYY')) ) a, FACM b where b.custnum = a.custnum
By the way
WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum
can be translated into
WHERE F.accnum = V.accnum
because
F.custnum = DECODE(0,0,F.custnum,0)
is always true
becauseDECODE(0,0,F.custnum,0)
means
if 0=0 then F.custnum else 0
-
I need help with the control of two .swf in third.
Hi, thanks for reading!
I need help with the control of two .swf in third.
I have a problem when I need to use a .swf in a digital signage solution, but were advised by the Legal Department, it cannot be changed in any way, I can not also have the source file blah blah blah. I pulled the .swfs on their site and I decompiled to see what I was up against.
The main SWF that I need control is HCIC.swf and the problem is that it starts with a preloader, which, after the loading stops on a framework that requires user input to (button) on a play button, until the film will proceed and replay.
What I've done so far is to create a SWF container, HCIC_container.swf, which will serve as a target for the HCIC.swf and I would like to send actionscript in the file, I am not allowed to edit.
I managed to get done with help from someone on another forum. It is my hope that the following script just start HCIC.swf a framework after the preloader and button play and just play through.
var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener (this);
mcLoader.loadClip ("MCIC.swf", container);
function onLoadInit(mc:MovieClip) {}
mc.gotoAndPlay (14);
}
But unfortunately it does not solve my problem. Because there is a media - controller.swf, which is charged by HCIC.swf who has orders, including the play button to start HCIC.swf.
Here is a link to a .zip with all 3 files .swf file and all 3 .fla files.
http://www.axiscc.com/temp/HCIC.zip
What I have to do is to automatically start the HCIC.swf file, bypassing the pre-loader and play button without having to edit it or in the media - controller.swf in any case. Thus, all scripts must be done in HCIC_container.swf.
I know it is confusing and it is difficult to explain, but if you look at the files it must make sense.
ActionScripting is far from my point hard, so I'm definitely over my head here.
Thanks for your help.Got my solution on another forum.
-
A question about the analytical function used with the GROUP BY clause in SHORT
Hi all
I created the following table named myenterprise
If I want to find which is the total sales by city? I'll run the following queryCITY STOREID MONTH_NAME TOTAL_SALES ---------- ---------- ---------- ---------------------- paris id1 January 1000 paris id1 March 7000 paris id1 April 2000 paris id2 November 2000 paris id3 January 5000 london id4 Janaury 3000 london id4 August 6000 london id5 September 500 london id5 November 1000
that works very well and produces the expected result, i.e.SELECT city, SUM(total_sales) AS TOTAL_SALES_PER_CITY FROM myenterprise GROUP BY city ORDER BY city, TOTAL_SALES_PER_CITY;
Now in one of my books SQL (Mastering Oracle SQL) I found another method by using the SUM, but this time as an analytic function. Here's what the method of the book suggests as an alternative to the problem:CITY TOTAL_SALES_PER_CITY ---------- ---------------------- london 10500 paris 17000
I know that the analytic functions are executed after the GROUP BY clause has been transformed completely and Unlike regular aggregate functions, they return their result for each line belonging to the partitions specified in the partition clause (if there is a defined partition clause).SELECT city, SUM(SUM(total_sales)) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY FROM myenterprise GROUP BY city ORDER BY city, TOTAL_SALES_PER_CITY;
Now my problem is that I do not understand what we have to use two functions SUM? If we only use one only, i.e.
This generates the following error:SELECT city, SUM(total_sales) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY FROM myenterprise GROUP BY city ORDER BY city, TOTAL_SALES_PER_CITY;
The error is generated for the line 2 column 11 which is, for the expression SUM (total_sales), well it's true that total_sales does not appear in the GROUP BY clause, but this should not be a problem, it has been used in an analytical function, so it is evaluated after the GROUP BY clause.Error starting at line 2 in command: SELECT city, SUM(total_sales) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY FROM myenterprise GROUP BY city ORDER BY city, TOTAL_SALES_PER_CITY Error at Command Line:2 Column:11 Error report: SQL Error: ORA-00979: not a GROUP BY expression 00979. 00000 - "not a GROUP BY expression" *Cause: *Action:
So here's my question:
Why use SUM (SUM (total_sales)) instead of SUM (total_sales)?
Thanks in advance!
:)
In case you are interested, that's my definition of the table:
Edited by: dariyoosh on April 9, 2009 04:51DROP TABLE myenterprise; CREATE TABLE myenterprise( city VARCHAR2(10), storeid VARCHAR2(10), month_name VARCHAR2(10), total_sales NUMBER); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('paris', 'id1', 'January', 1000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('paris', 'id1', 'March', 7000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('paris', 'id1', 'April', 2000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('paris', 'id2', 'November', 2000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('paris', 'id3', 'January', 5000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('london', 'id4', 'Janaury', 3000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('london', 'id4', 'August', 6000); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('london', 'id5', 'September', 500); INSERT INTO myenterprise(city, storeid, month_name, total_sales) VALUES ('london', 'id5', 'November', 1000);
It is clear that thet Analytics is reduntant here...
You can even use AVG or any analytic function...SQL> SELECT city, 2 avg(SUM(total_sales)) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY 3 FROM myenterprise 4 GROUP BY city 5 ORDER BY city, TOTAL_SALES_PER_CITY; CITY TOTAL_SALES_PER_CITY ---------- -------------------- london 10500 paris 17000
-
My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance. You will also need to get data out of old PowerBook G4.
< object edited by host >
We are users like you. Search locally by using something like Yelp or similar
or read a few links which may be relevant on this forum about the slow mac mini
-
Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.
Hello
The link below is a guige to install a video card in your Pc. In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below. If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.
http://support.HP.com/us-en/document/c01700855
Kind regards
DP - K
-
Satellite Pro A300-15V, I need help in the Organization of my startup list
Hello everyone!
I need help in the Organization of my startup list:
(Why should Toshiba button support I this program if my laptop doesn't have multimedia keys? OR maybe this program for something else?)
ItSecMng (although I have disabled the Bluetooth Manager to run when starting from this point still remains in the startup)
Agent of filtering of Audio Conexant high definition (what is this program? Do I really need to start?)
TOSHIBA Power Saver
Toshiba Flash Cards
RAID event monitorSo, my friends. Could you give a valuable suggestion whether or not it is prudent to disable startup above entries? I want to speed up my laptop at the highest possible level.
Thanks a lot for your time!
Kind regards
Osman.My laptop:
Toshiba Satellite Pro A300-15V (PSAJ5E) => NOT have multimedia keys except the FN keys.
> Toshiba Button support (why should I this program if my laptop doesn't have multimedia keys? OR maybe this program for something else?)
You can disable it. If your mobile phone does not support the multimedia buttons then this tool is useless.> ItSecMng (although I have disabled the Bluetooth Manager to run when starting from this point still remains in the startup)
I don't know what would make this process, but you can disable this in msconfig-> tab start Mr. If it would take in the future, then you could turn it on again.> Agent of filtering the Conexant high definition Audio (what is this program? Do I really need to start?)
I think that this is necessary. It could improve your audio> Toshiba Power Saver
This is important. It s an additional saving of Toshiba option for Win 7> Toshiba Flash Cards
This tool controls the FN keys.> RAID Event Monitor
Hmm so you don t have two hard disks, then you can try to disable it too. -
I need help to the new photo of my photos from iphoto on El Capitan. Any help would be appreciated.
To migrate your iPhoto library to Photos for Mac, drag it in the Photos icon in the Dock. Photos will read the iPhoto library and create a new library of pictures of him.
Is your photo library in iPhoto on an external drive? The migration will work that if the external hard drive Mac OS extended (journaled) file system. If the library is on a disk with a different file system, Ministry of the environment of the library of a correctly formatted disk.
-
I need help with the program of Photos on my macbook pro
I use a Macbook Pro with OS of Yosemite. I really need help with the Photo program. I never really got the hang of IPhoto and now that it's a new program, I'm really confused. Where can I go to learn this without waiting for the next workshop in a local store?
Hi, I'm fighting to open same mine, making a new software update
Maybe you are looking for
-
I have a desktop Mac OS 10.2.8 which is the latest Firefox to download?
I have a desktop Mac OS 10.2.8 which is the latest Firefox to download? Jaguar's later I can load on my Mac. I use it only to get/send mail Yahoo. What is the latest version, I use and where I can get it. Right now am running Mozilla Firefox 2.0.0.20
-
Update video controller (VGA Compatible) on Tecra 9000
Recently, I bought a used Toshiba Tecra 9000.The computer has WIN XP SP2, and I would like to know how I can update (video controller/VGA Compatible). Thanks for your help
-
Hello I am trying to install an update, and I get this error code. Any ideas? JO
-
Corrupted Windows Media Player / cannot access
Hello When I try to access Windows Media Player, I get the message that the file, the path or device is not accessible, and I can't have permission. However, the permissions are enabled under the Security tab. After installing an update from microsof
-
Remove the old cable network name machine Vista
I have 4 computers on a home network (2 portable wireless, Windows 7 and Vista) and 2 desktops (also Windows 7-Vista) to Windows 7 computers, replacing Vista computers in the near future. Until them, I always use the four computers. I had a LOT of p