get the error ORA-30483 (window functions not allowed herevv)
Hi all
Oracle version: 11.2.0.2.0
with Table_dm AS
(select 1 month_no, "wk1" week, DM_AMT 120, 300 GRoss_Amt, Week_no 4, Gross_qty 12, 1000 dm_adj_total double
UNion all
Select 1 month_no, "wk2" week, DM_AMT 120, 300 GRoss_Amt, Week_no 4, Gross_qty 12, 1000 dm_adj_total double
Union of all the
Select 1 month_no, "wk3" week, DM_AMT 120, 300 GRoss_Amt, Week_no 4, Gross_qty 12, 1000 dm_adj_total double
Union of all the
Select 1 month_no, "wk4" week, DM_AMT 120, 300 GRoss_Amt, Week_no 4, Gross_qty 12, 1000 dm_adj_total double
Union of all the
Select 2 month_no, 'wk5"week, DM_AMT 200, 400 GRoss_Amt, Week_no 5, Gross_qty 20, 1000 dm_adj_total double
UNion all
Select month_no 2, "wk6" week, DM_AMT 200, 400 GRoss_Amt, Week_no 5, Gross_qty 20, 1000 dm_adj_total double
Union of all the
Select month_no 2, "wk7" week, DM_AMT 200, 400 GRoss_Amt, Week_no 5, Gross_qty 20, 1000 dm_adj_total double
UNion all
Select month_no 2, "wk8" week, DM_AMT 200, 400 GRoss_Amt, Week_no 5, Gross_qty 20, 1000 dm_adj_total double
UNion all
Select month_no 2, "wk9" week, DM_AMT 200, 400 GRoss_Amt, Week_no 5, Gross_qty 20, 1000 dm_adj_total double
)
Select month_NO, GROSS_AMT
(select
mONTH_NO
sum (first_value (GROSS_AMT) more (PARTITION MONTH_NO)) Gross_amt
of table_dm
Month_no group
)
get the following error
"ORA-30483: window functions are not allowed here."
The value of Gross_Amt must be the total of the Group month_no gross_amt (the Gross_Amt would be the first value in each month_no
the value of Gross_Amt must therefore 700 in this case.
Please suggest.
AB
Thank you very much, SY, is really a useful solution<>
Tags: Database
Similar Questions
-
Been trying to download the Microsoft Safety Scanner and AVG free antivirus program but continue to get the following message: "your security settings do not allow this program to download." I deleted an obsolete Mcafee antivirus program and checked my security settings, and all that are in their default settings. Any suggestions?
Hello
I suggest that you run the McAfee removal tool to make sure that McAfee is completely uninstalled from the computer:
http://service.McAfee.com/FAQDocument.aspx?ID=TS100507You can check the link for details on the Microsoft and Microsoft Security essential safety Scanner and also you can download from the link.
Microsoft security scanner:
http://www.Microsoft.com/security/scanner/en-GB/default.aspx
Security Essentials from Microsoft:
http://www.Microsoft.com/security/PC-security/MSE.aspxI also suggest that you send the query linked to Microsoft Security Essentials in the forum link provided and check.
http://answers.Microsoft.com/en-us/protect -
I have a Verizon Mi - Fi Jetpack.
I have a Verizon MI-Fi's Jetpack. It works fine on my Windows 7 computer, but on this computer (Windows XP with Service Pack 3), I get an error message that Windows can not find a certificate. It won't let me connect even if it shows excellent signal, etc. Need help. Thank youHello
1. when exactly you get this error message?
2. What is the model of the unit?
Check if the device is compatible with Windows XP by referring to the user's manual.
I suggest you to try the steps below and check if it helps.
Method 1: Try running the Fixit tool from the link below.
Hardware devices do not work or are not detected in Windows:
http://support.Microsoft.com/GP/hardware_device_problemsMethod 2: Try also to update the latest drivers for your device wireless using the link below.
How to manage devices in Windows XP:
http://support.Microsoft.com/kb/283658
Hope this information is useful.
-
get the error "no sequence valid is not found for the set of patches" msg trying to launch Acrobat XI for the first time after installing - suggestions? Using Windows XP.
Hi James,
- Please uninstall Acrobat Pro XI using the cleaning tool Download Adobe Reader and Acrobat tool - Adobe Labs.
- Restart your computer.
- Install Acrobat Pro XI using this link download Acrobat products | Standard, Pro | DC, XI, X & serialize.
Let me know if the problem persists.
Kind regards
Nicos
-
When I run Mozilla Firefox I get the error message "ReferenceError: Globalstorage is not defined." How to solve this problem?
-VinayakGlobalStorage is no longer supported in the current Firefox (removed in Firefox 13), versions so the extension or Web site that uses it needs an update and use localStorage instead.
- bug 687579 - Remove support globalStorage
-
non-customers CCM.log SCCM
Hello.
We get the error in C:\Windows\System32\CCM\ccm.log when installing ccmclient in all positions below.
Windows XP SP3 Professional Edition and the operating system of Windows 7 Enterprise Edition is used.
Failed in WinHttpReceiveResponse API, ErrorCode = 0x2ee2
[CCMHTTP] HTTP ERROR: URL = http://test.com/ccm_system/request Port = 443, protocol = https, SSLOptions = 31, Code = 12002, text = ERROR_WINHTTP_TIMEOUT
Event trigger:
instance of CCM_CcmHttp_Status
{
DateTime = '20111021101223.447000 + 000';
Host name = "ctsintcopss.cts.com";
HRESULT = '0X80072EE2 ";
ProcessID = 864;
StatusCode = 0;
ThreadID = 2240;
};HandleRemoteSyncSend failed (0 x 80040231).
CForwarder_Sync::Send failed (0 x 80040231).
CForwarder_Base::Send failed (0 x 80040231).
Please let me know the steps to solve the problem
Hello
The question you have posted is related to the Microsoft developers network and would be better suited to the Microsoft Developer Network community. Please visit the link below to find a community that will support what ask you:
http://social.msdn.Microsoft.com/forums/en-us/categories/
-
Windows does not remember the setting.
When I try to connect to the net on my laptop LG I often get the message saying that windows could not connect and I have to go into the advanced settings and check the box that says allow windows to configure the network. My problem is that windows doesn't remember this setting and that I need to check the box almost everytime I try to connect. He made it with my desktop so I was wondering if anyone has a solution for this.Using a wireless router? What is the brand and model of your router? I don't think it's a matter of windows.
Troubleshooting in windows wireless network connection problems
http://Windows.Microsoft.com/en-us/Windows/help/wireless-network-connection-problems-in-Windows
Hope this helpful. Post back if your problem is not resolved in the link above.
-
original title: problems of files
Whenever I do a right click on a file I get the error message that Windows Explorer has a problem and needs to close.
Sometimes, the problem is caused by a third-party extension. ShellExView can be useful to see what shell extensions have been introduced in the Explorer. Lire read on this topic, then scroll down to download the x 86 (32-bit) or x 64 (64 - bit) version here near http://www.nirsoft.net/utils/shexview.html
When you run it, click the column of company for sequence entries in alphabetical order. Suppose Microsoft entries are in good faith and focus on others. Is something listed that is useless or unknown? If so, select it and click the Red (on top left) task to turn it off. You can find more easy to disable them all and then reactivate (green area) one at a time and Explorer of execution until the culprit is found.
-
EMCA fails with the error "ORA-01034: ORACLE is not available.
Hello
10g R2 on AIX I have the following error:
And that's because all oracle processes are runing with:emca -config dbcontrol db -repos create ...................................................... ..................................................... Password for DBSNMP user: Invalid username/password. [ORA-01034: ORACLE not available]
ORACLE_HOME=/U00/Oracle/product/10.2.0/Db_1/
EMCA fails with the error "ORA-01034: ORACLE is not available" and "Name of user and password invalid." For DBSNMP user [ID 550484.1]
It is said:
Can I do the reverse and in the script of the emca, add "/" at the end of ORACLE_HOME=/u00/oracle/product/10.2.0/db_1+<moderator edit - removed MOS content>+
??
Thank you.
Edited by moderator - content removed from MOSHi user;
First of all please do not post details here, its against to oracle interoperability metalink, ID is sufficient for us. Secondly, yes you can, first to save $ORACLE_HOME/bin/emca script like
CP $ORACLE_HOME/bin/emca $ORACLE_HOME/bin/emca_org
to change the file number and test
Respect of
HELIOS -
I get following errors: Module C:window\system32\spool\drivers\w32x86\3\lxdodatr.dll and dmrclibrary.cpp Microsoft visual C++ runtime Windows 7
Please stand out as the answer. What is the number and the model of your printer (Lexmark)? You can try to uninstall and reinstall the printer driver.
-
TO_DATETIME gives the error ORA-01861: literal does not match the format string
When I use the following in a formula in the column in the business model, the administration of BI tool does not complain:
TO_DATETIME (LEFT ("registration - College". "D time". " ("' Exercise ', 4) | ("/ 09/01 ', ' yyyy/mm/dd')
But when I use it in an analysis, I get the error message:
ORA-01861: literal does not match the format to the call of the OIC string
The scope of practice is a varchar of 6 characters (e.g. 201213), so I do not know what causes this error. Is this because the TO_DATETIME expects something like hh as argument?
Without the element that to_datetime is supposed to work, here is an example that I made on SampleApp406.
Try to add the "time", but for me it has always worked without problem.
-
Gets the error ORA-01779 after I added the column
Hi, I'm a total newbie in APEX but collaborated with ordinary development Oracle (tables, views, packages, triggers, etc) for a number of years.
I ve been assigned in order to respect an existing application to APEX. One task is to add a column to a single character named 'ACTIVE' to a database table and also present on a current project list page. The value can be 'Y' or 'n'. In the view which is the source of data for the project page ad 'Y' turned into 'Yes' and 'n' turned into 'no '. So far so good, everything works well.
There is another page on which it is possible to create new or modify existing projects. This page uses a view as a source of data. On this page, I added a group of radiobutton that contains two options: 'Yes' and 'no '. When I select to edit a project in the project list page the second page is loaded and the correct option, 'yes' or 'No', is marked on the page. This group of radiobutton works exactly like a couple of other groups of radiobutton also represented with a single character column in the database. So far so good!
However, when I try to save the project file by clicking on "Apply Changes" I get this error:
ORA-20001: DML error: p_rowid = 50, ID = p_alt_rowid, p_rowid2 =, p_alt_rowid2 is. ORA-01779: cannot modify a column that is mapped to a table not preserved key
What is the problem here? The new 'ACTIVE' column is added to the view, when I run the view I Don t get all records in duplicate, the underlying table has a column id as the primary key.
Since I Don t know that APEX is under the hood it s hard tp what's wrong. Anyone knows the solution to this problem?
/ MagnusHello Magnus,
Is there an INSTEAD OF trigger defined on the view? Have you added the new column ACTIVE there too?
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-) -
I get the error message dialogue 'loan token not found. '
When I try to open a book on my corner which has been downloaded from the library, I get the error message "ready token not found." -What this means and how do I open the book?
'ready token not found' this is a problem with the download of the eBook itself. You can open the file when it opens Digital Edition before you download in the drive?
-
I'm trying to truncate a table but oracle throws the error ORA-02021: DDL operations are not allowed on a remote database.
02021, 00000, "DDL operations are not allowed on a remote database"
* Cause: An attempt was made to use a DDL operation on a remote database.
For example, "CREATE TABLE tablename@remotedbname... ».
* Action: To change the remote database structure, you must connect to the
remote database with the appropriate privileges.
I'm pretty sure you have the appropriate privileges.You can even call a procedure:
dbms_utility.exec_ddl_statement@DB_LINK exec ('your stmt'); -
Get the error ORA-01422 in stored procedure
ORA-01422: exact fetch returns more than number of lines
This page explains the error:
http://www.techonthenet.com/Oracle/errors/ora01422.php
This is my procedure:
In the clause select is causing the error. I understand the nature of the error, but the strange thing is that when I run the sql code, remove the "in."
part of my test settings, I just receive a single line. Always when I execute my procedure with the same settings I get the error. What could be wrong?
create or replace
PROCEDURE COUNTER_GETACTIVE
(
METERPOINTID IN MeterPointCounters.MeterPointId%Type,
METERPOINTCOUNTERNR IN METERPOINTCOUNTERS. Type of METERPOINTCOUNTERNR %,
p_cursor on REFCURSOR_PKG.counter_cursor
)
IS
l_counterNr CounterBridgeTable.CounterNr%type;
l_meterId CounterBridgeTable.MeterId%type;
BEGIN
Select counternr, meterid in l_counterNr, l_meterId from CounterBridgeTable where meterpointid = METERPOINTID and meterpointcounternr = METERPOINTCOUNTERNR and datetom is null;
Open p_cursor for select * from counters where counternr = l_counterNr and meterId = l_meterId;
END COUNTER_GETACTIVE;You actually run this query
select counternr, meterid from CounterBridgeTable where meterpointid = METERPOINTID and meterpointcounternr = METERPOINTCOUNTERNR and datetom is null;
param name is identical to the column, he's ignoring your param and pretty much do a self-join
Try this:
create or replace PROCEDURE COUNTER_GETACTIVE ( p_METERPOINTID IN MeterPointCounters.MeterPointId%Type, p_METERPOINTCOUNTERNR IN METERPOINTCOUNTERS.METERPOINTCOUNTERNR%type, p_cursor out REFCURSOR_PKG.counter_cursor ) IS l_counterNr CounterBridgeTable.CounterNr%type; l_meterId CounterBridgeTable.MeterId%type; BEGIN select counternr, meterid into l_counterNr, l_meterId from CounterBridgeTable where meterpointid = p_METERPOINTID and meterpointcounternr = p_METERPOINTCOUNTERNR and datetom is null; open p_cursor for select * from counters where counternr = l_counterNr and meterId = l_meterId; END COUNTER_GETACTIVE;
Published by: tanging on June 8, 2010 10:37
Maybe you are looking for
-
Pop-up Blocker does not work on ads 'Bettersurf '!
Today I started seeing ads popping up with "Bettersurf Articles. How can I get rid of these? I have Norton Antivirus on my computer... but it's constantly nagging me as I surf the web. I think Foxfire should check into it. I think they have found a w
-
Firefox launches pages visited earlier when open-how do to disable this?
When FF is closed, the next time it opens, it returns to the displayed pages previously. To open several tabs.
-
I used to get a desktop window that allowed me to choose the implementation of analyses of my computer, but now it gives me just print options. No idea why I no longer get a choice for scanning?
-
How to fix a sound problem - reading devices no. for the Device Manager on WinXP SP3?
(1) I can't to Device Manager by following the guide for help on my system. The steps do not match what is actually showing me my Windows and I can not here the only way I can get to it is to use a link on the help page directly. Even when I do tha
-
The HP Pavilion G series: Hp pavilion reset administrator password
Someone please help need to reset the password of Bio... I am 69468630 and system off.