Relating to the creation of a graph, get an error with a statement "Union All".
HelloI have some data in the table with the following fields;
Product, Jul-08 Aug-08, Sep - 08 etc. to Jan - 10.
The PRODUCT field is text showing many product names
The month of Jul-08 & others have numbers by product that must be aggregated for this month & plotted on the graph of the line.
My SQL to create the first point on the chart is as below;
Select the link null, label, SUM(JUL-08) "FFF".
of "SCHEMANAME." "' TABLENAME '.
WHERE PRODUCT = "FFF".
PRODUCT GROUP
ORDER BY PRODUCT
It works fine until I want to add the second point of this graphic line by using a "union all" join as follows:
Select the link null, label, SUM (JUL_08) "FFF".
of "SCHEMANAME." "' TABLENAME '.
WHERE PRODUCT = "FFF".
UNION ALL
Select the link null, label, SUM (AUG_08) "FFF".
of "SCHEMANAME." "' TABLENAME '.
WHERE PRODUCT = "FFF".
I can't work on how I can join the other months on the line graph of a series.
The error is as follows;
--------------------------------------
1 error has occurred
Failed to parse the SQL query:
Click link null, label, SUM (OCT_09) 'Non-communicable diseases - STD' of 'BI_A_DATA '. "" CDW_VS_NCDS_CALLS "WHERE PRODUCT ="MNT - STD' UNION ALL select link null, PRODUCT, SUM (NOV_09) "Non-communicable diseases - LOCAL" label of "BI_A_DATA". "" CDW_VS_NCDS_CALLS "WHERE PRODUCT ="MNT - LOCAL.
ORA-00937: not a single group group function
Some queries can be run when you run your application, if your query is syntactically correct, you can save your query without validation (see options below the source of the query).
----------------------------------------
If anyone can help?
I want a continuous linear graph showing monthly July 2008, Aug-08 Sep - 08 etc. to Jan - 10 for the same product.
I will then add other series for other products, thanks
OK a graphic line will only allow you to draw 1 variable (in this case period). Given that it is only for a single product, so here should be the final sql:
SELECT null link, PERIOD label, SUM(ABC)
FROM
(SELECT 'JUL_08' PERIOD,SUM(JUL_08)ABC
FROM BI_A_DATA.APEX_TEST
WHERE PRODUCT = 'ABC'
UNION ALL
SELECT 'AUG_08' PERIOD,SUM(AUG_08)ABC
FROM BI_A_DATA.APEX_TEST
WHERE PRODUCT = 'ABC'
UNION ALL
SELECT 'SEP_08' PERIOD,SUM(SEP_08)ABC
FROM BI_A_DATA.APEX_TEST
WHERE PRODUCT = 'ABC')
GROUP BY PERIOD
Tags: Database
Similar Questions
-
Why do I get an error with this statement
incentive var = this.getField("Incentive").value;
var ETPC = this.getField("ETPC").value;
If (incentive = < ETPC) event.value = bonus of encouragement;
ElseIf (incentive = > ETPC) event.value = ETPC;
Ditto for =>. He has > =.
-
Used my copy of OSX MAvericks in the past, but now I get an error message that the application cannot be verified and go to the App Store. I did, but there is nothing to install OSX Mavericks download?
Log in to the App Store and look under the purchases tab.
-
The difficulty to send emails get server error. Email is through Gmail.
I try to send an email using my gmail account
The difficulty to send emails get server error. Please someone tell me how to make my gmail account can be used to send emails and attachments? I have windows vista and have never been able to send an email because I bought this laptop. Is there a way that I have to put in place ena.ble email settings to send through GmailSee if this helps: http://support.google.com/mail/bin/answer.py?hl=en&answer=77696 , you should be able to connect via webmail also. See https://accounts.google.com/ServiceLogin?passive=1209600&continue=http://support.google.com/mail/?hl%3Den&followup= http://support.google.com/mail/?hl%3Den&hl=en
Make sure that you have no antivirus to analyze together to mail. See www.oehelp.com/OETips.aspx#3
Steve
-
When the updates of windows I get and error code for 643. How can I fix it?
When the updates of windows I get and error code for 643. How can I fix it?
When the updates of windows I get and error code for 643. How can I fix it?
Here is an answer which is marked as an answer to the error code 643.
I also participated in that thread, and I gave my suggestions.
-
When I try to download the update of windows I get an error code every time: 802440F.
When I try to download the update of windows I get an error code every time: 802440F. Can you please help me solve this problem?
@ Evanston only!...
You see the effects of a hijackware infection! If you had used the computer longer, I might recommend trying to detect & remove infections. But it would probably take a week or two and I'm sure you have better to do with your time right now so I would recommend the following (which shouldn't take any more than two hours of uninterrupted time).
See...
Cleaning a compromised system
http://TechNet.Microsoft.com/en-us/library/cc700813.aspxPersonal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows. Please note that a repair installation (upgrade AKA on-site) will NOT fix it!
HOW to do a clean install of Win7: see "using the custom installation and formatting the hard drive option" (or "reinstall it Windows 7") http://windows.microsoft.com/en-us/windows7/Installing-and-reinstalling-Windows-7 article
NOTE: If your computer came with a set of disks, there is a hidden partition restore (not to be confused with the restoration of the system) you would use to do the clean install (AKA a "destructive recovery").
After the new installation, you will have the equivalent of a "new computer" in order to take care of EVERYTHING on the next page before connecting the machine to the internet or one local network (i.e. other computers) AND BEFORE to plug in a flash, SD card, or any other external drive to the computer otherwise:
4 steps to help protect your new computer before going online
http://www.Microsoft.com/security/pypc.aspxVERY IMPORTANT! -Online free trial Norton will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free AND download/run the removal tool again Norton before installing updates AND BEFORE installing your new application antivirus (for example, Avast5 or Microsoft Security Essentials, free).
Tip: Do not install Spybot again; It's really overkill in Win7 my humble OPINION, especially if you are installing Microsoft Security Essentials.
See also:
Risks & benefits of P2P file sharing
http://www.Microsoft.com/protect/data/downloadfileshare/filesharing.aspx
http://blogs.technet.com/MMPC/archive/2008/10/06/the-cost-of-free-software.aspx
http://www.us-cert.gov/CAs/tips/ST05-007.htmlMeasures to help prevent spyware
http://www.Microsoft.com/security/spyware/prevent.aspxMeasures to help prevent computer worms
http://www.Microsoft.com/security/worms/prevent.aspxAvoid fake security software!
http://www.Microsoft.com/security/antivirus/rogue.aspxIf you need additional assistance with the clean install, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/w7repair/threads
If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.
Wish I had better news for you. Good luck & achieve before Thanksgiving 2010!
-
When installing the adobe reader software, I get database error: 2003
When installing the adobe reader software, I get database error: 2003. Wat is to do
http://helpx.Adobe.com/Acrobat/KB/troubleshoot-reader-installation-Windows.html
-
Help, I have a problem with the PS and CC - I get and error measure in PS - "this program cannot start because ONCoreFoundation8.dll - is missing... and it crashes, and now creative cloud will not be open to all." I spent more than 2 hours to speak to someone in tech support that I did not understand, and I don't know what to do next. The tech gal was run, but once she hung up he returned to broken. I have an idea, but that's just a guess - trouble started about the time I tried to open On1 of ps there has been a perfect icon effects 9 (for some reason, they decided to add the icon when I got it - I have 8) I clicked it and it loaded the update and then asked me if I wanted to try or buy - that's when I realized that I should have clicked on 8 and tried of back , but is either too late - I think, maybe this dll. 8 or 9 in with perfect On1 effects - and it has changed my settings in PS - and is the reason why it is not compatible - ideas? I have a pc with window7-Carol
Try to run Photoshop without loading third-party plug-in. hold SHIFT keys when you start Photoshop. The missing module is not Adobe software.
-
I tried to install the suite 5.5, but get an error of activation to come?
I tried to install the suite 5.5, but get an error of activation to come?
I don't know no creative licenses that cloud never expire.
first of all, check once you have entiring your serial number correctly. If you are sure you are, contact adobe support: http://www.adobe.com/support/chat/ivrchat.html
-
I'm trying to update CS 6Illustrator tool by using the update but I always get an error saying "updates could not be applied." How can this be?
Here is my log file:
Update Adobe Illustrator CS6 (version 16.2.1)
Failed installation. Error code: U44M1P7
If you are using a mac: http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manager-update.html
-
During the installation of the first items I get an error with Shared Technologies
When installing Premiere Elements on a Windows XP Service Pak 3, I get an error with shared Technologies.
Hello
Thanks for the reply.
I had to bridge opened in the background, and once I closed this properly installed items.
Thank you.
-
Get "communication error with kernel" message when you try to run a virus scan program
Get "communication error with kernel" message when you try to run a virus scan program
Hello
What antivirus do you use?
Follow the steps in the article mentioned below and check if this solves the problem.
The error message "error communicating with kernel":
http://KB.eset.com/esetkb/index?page=content&ID=SOLN2280 -
Getting year Error with RegExp class/interface in actionscript 2.0
I get an error with the RegExp class to my flash document. I use an Action Script 2.0 to my document.
Is the RegExp class is not supported in AS1/AS2?
My code is as follows
function validateEmailAddress(emailString:String):Boolean {}
var myRegEx:RegExp = /(\w|[_.\-])+@((\w|-)+\.) + \w{2,4} +;
var myResult:Object = myRegEx.exec (emailString);
if(myResult == null) {}
Returns false;
}
Returns true;
}If (validateEmailAddress (email) == false)
{
contacterror = "error!" Please enter valid E-mail address ';
}If RegExp not supported in ActionScript 2.0 and then how to validate the e-mail address to ActionScript 2.0?
As far as I know and according to the doocumentation for help, the RegExp class was not until AS3 and it is not supported in AS2. Try Google search using terms as "AS2 validate e-mail". Here are some results...
http://www.helmutgranda.com/2006/10/06/email-validation/
http://AdobeFlash.WordPress.com/2008/02/06/email-validation/ -
I get this error with my login form when I try to log in, but I'm not sure if this is a problem with my php code or my flex code!
ReferenceError: Error #1069: loginsuccess property not found on string and there is no default value.
CBC::main/checkLogin()
CBC::main/__login_user_result()
to flash. events::EventDispatcher / dispatchEv...
to flash. events::EventDispatcher / dispatchEv...
to HTTPOperation / http://www.Adobe.com/2006/Flex/MX/internal:dispatchRpcEvent ()
to mx.rpc::AbstractInvoker / http://www.Adobe.com/2006/Flex/MX/internal:resultHandler ()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
to the DirectHTTPMessageResponder/completeHandl...
to flash. events::EventDispatcher / dispatchEv...
to flash. events::EventDispatcher / dispatchEv...
at flash.net::URLLoader/onComplete()
my php code is:
[php] <? PHP
define ("DATABASE_SERVER", "localhost");
define ('DATABASE_USERNAME","f4r");
define ('DATABASE_PASSWORD', 'cool23');
define ('database_name', 'bignixs1');
connect to the database
$mysql = mysql_connect (DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD) or die (mysql_error ());
Select the database
@mysql_select_db (DATABASE_NAME);
re-branded the data passed from Flex to variables
$username = mysql_real_escape_string ($_POST ["usernam...)
$password = mysql_real_escape_string ($_POST ["passwor...)
Ask the database to see if the combination of username/password given name is valid.
$query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";
$result = mysql_fetch_array (mysql_query ($query));
start generating XML
$output = "< loginsuccess > ';
If the query returned true, exit < loginsuccess > Yes < / loginsuccess > other output < loginsuccess > not < / loginsuccess >
if(!$result)
{
$output. = « no » ;
} else {}
$output. = "yes";
}
$output. = "< / loginsuccess > ';
all the XML for output
print ($output);
? > [/php]$query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";
should be
$query = "SELECT * FROM users WHERE username = '$username' AND password = '$password'";
example of a system of working with the correct connection code flex & php to ensure:
http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=simple%20Login%20Application
-
the last two days, I get an error message and Firefox does not open. I'm on 9.0
The last two days, Firefox will not load. I get an error screen. I'm on 9.0
Thanks for the help. All is well in Tennessee!
Gary
Maybe you are looking for
-
site the module cannot be saved on exception list?
I can't save addons.mozilla.org to Excetions as an option.I can put authorized, but it will be always empty after that I left FF and distributed in FF.
-
Satellite M40-145 needs more start after removing the BT to start
Hello people, I am wrinting this post because I think that this version of Bluetooth stack probably has an incompatibility with my toshiba m40 - 145 PSM40E - Windows Xp I always remove the Bluetooth Managment (TosBtMng.exe) windows Startup, and now i
-
Safari, chrome time cannot access most of the sites on my MacBook Air
All of a sudden since the morning of today I can access most of the sites except Google, Facebook, and LinkedIn. Safari and chrome have the same problem. I tried to empty cache, remove extensions, change dns 8.8.8.8 in Network preferences, but nothin
-
Tell us more clearly what is happening on the backgammon games area
Do we need to do something different to play gammon or is the multiplayer site problems for which you can expect to solve?
-
Windows Update installed Windows Vista Service Pack 1 KB (936330) three times
Although three times, Windows Vista Service Pack 1 has been installed, Windows Update still says it's an available update. Information system does not indicate that it has been. What must I do to solve this problem?