Group feature is not allowed
Hi all...When I run the following text in the SQL command screen, it works fine... But when I try to use it in the APEX to fill the values on the page, it gives me error...
ERROR
1 error has occurred
ORA-06550: line 25, column 74: PL/SQL: ORA-00934: Group feature is not allowed here ORA-06550: line 24, column 1: PL/SQL: statement ignored
CODE THAT WORKS IN THE FORM OF SQL COMMAND
SELECT
SUM(CASE WHEN SLOT = 'Q' THEN '1' ELSE '0' END) AS C_SLOT,
SUM(CASE WHEN TEST = 'P' THEN '1' ELSE '0' END) ACE C_TEST,
OF TBL_REC;
CODE THAT GIVES THE ERROR ON THE APPLICATION EXPRESS PAGE
SELECT
SUM (CASE WHEN SLOT = 'Q', THEN '1' OTHER '0' END) IN: P2_C_SLOT,.
SUM (CASE WHEN TEST = 'P', THEN '1' OTHER '0' END) IN: P2_C_TEST,.
OF TBL_REC;
The GBA SLOT and TEST have the letter codes, I want just that it count only when it matches a certain letter. In the form of SQL command, it returns a single line, with the charges, all right. This is only a problem when I try to use anywere on a page in Application Express.
The full version has about 20 lines that are all rows in the sum, but I can't even the worm 2 lines above to work.
Any thoughts?
VR;
SELECT
SUM (CASE WHEN SLOT = 'Q', THEN '1' OTHER '0' END)
SUM (CASE WHEN TEST = 'P', THEN '1' OTHER '0' END) IN: P2_C_SLOT,: P2_C_TEST
OF TBL_REC;
Published by: seal of hash on June 3, 2009 12:56
Tags: Database
Similar Questions
-
ORA-00934: Group feature is not allowed here
Above procedure is completed successfullyCREATE or REPLACE PROCEDURE First( date1 IN Date, date2 IN Date ) AS date3 employee.start_date%TYPE; date4 employee.start_date%TYPE; Begin select min(start_date) into date3 from employee where start_date between date1 AND date2; END; /
But when I changed the query to
Select min (start_date) date3, max (start_date) in date4 of employee where start_date between date1 AND date2.
then I get the error message
ORA-00934: Group feature is not allowed here.
Why this error happens during execution, but on sqlplus query is executed successfully.
I checked this in oerr ora-00934 but not able to understand what measures should be takenselect min(start_date) , max(start_date) into date3 , date4 from employee where start_date between date1 AND date2;
-
PL/SQL: ORA-00934: Group feature is not allowed here
Hello
I write a PL/SQL procedure. The structure is like:
SET SERVEROUTPUT ON;
CREATE or REPLACE procedure abc
IS
v_total_ip_rec number (14);
v_total_op_rec number (14);
v_total_rec number (14);
BEGIN
SELECT SUM (CASE
WHEN < condition 1 >
THEN 1
0 OTHERWISE
END
) in v_total_ip_rec.
SUM (CASE
WHEN < condition 2 >
THEN 1
0 OTHERWISE
END
) in v_total_op_rec.
SUM (1) in v_total_rec
OF A, B
WHERE A.Col1 = B.Col1;
EXCEPTION
WHILE OTHERS THEN
raise_application_error (-20001,' an error has occurred - ' |) SQLCODE |' - ERROR - ' | SQLERRM);
END;
When I run this procedure it gives me following error:
"PL/SQL: ORA-00934: Group feature is not allowed here."
Someone has an idea?
Any help would be appreciated.
Thank you.Should I have any special role?
Have you checked if synonyms exist for tables?
Please check in this order:#1-synonymes appropriate
#2-appropriate privileges
#3-appropriate roles -
Group feature is not allowed here
Hello
I have a problem running the following sql command, I know that the error is the count function, but I don't know how to solve this problem. Can you please help me solve this problem.
(I like to select titles that have more than 2 authors).
Separate select titles.title_id, titles.title_name, titles.publisher_ID
authors, titles, and author_titles
where titles.title_ID = author_titles.title_id
and author_titles.au_id = authors.au_id and count (authors) > 2
ORDER BY titles.title_id DESC;
Thank YoyHello
You group by expression is absent from the columns you have in your select statement
SELECT titles.title_id, titles.title_name, titles.publisher_ID FROM authors, titles, author_titles WHERE titles.title_ID = author_titles.title_id AND author_titles.au_id = authors.au_id GROUP BY titles.title_id, titles.title_name, titles.publisher_ID HAVING COUNT ( * ) > 2 ORDER BY titles.title_id DESC;
Concerning
OrionNet -
The phrase in quotes in my question is instructions under "what are the groups of tabs? (Redirected from "what is Panorama?")
If this button does not appear then you can drag it out of range of the tool bar on the tab toolbar customization window yourself.
Open the Customize via "view > toolbars > customize" or "Firefox > Options > toolbars."
-
I searched around for group policy, but no luck.
A reinstall is quite often the fastest way to solve a problem. Your hard drive will be completely erased in the process, it will be necessary to back up your personal files beforehand. An external USB drive is good for this. Also, you will need to reinstall all the applications that came with the computer. If you use the Encrypting File System (EFS), make sure you back up your certificates as well or you will lose access to all your encrypted files - even if saved. (Encrypted files usually appear with names in green).
A "repair install" which does not erase your drive might also be possible, but if you have installed SP2, SP3, IE7 or IE8 you bought your machine, you should read the following article:
"How to perform a Windows XP repair installation, if a later version of Internet Explorer is installed"
<>http://support.Microsoft.com/kb/917964 >HTH,
JW -
Help with error - 934 group function is not allowed here
Hey there will, I'm having problems with a request and just does not know how to do it without error.
I'm trying to get all the employee emerging infectious diseases that have less than 2 number max of DID (dependants) in the table.
It's my current query
SELECT Employee.LName. ' ' || Employee.Fname as Full_Name, Employee.EID
The left outer JOIN employee depends on Employee.EID = Dependent.EID
Having Count (DID)--2 > ((select Max (N) as From (SELECT Employee.EID, Count (DID) As N FROM Employee Inner Join Dependent On Employee.EID = Dependent.EID group by Employee.EID, Count (DID))) N)
Order of Employee.Lname, Employee.Fname
Which gives me an error on column 4, no matter what I do. If I remove the Count (DID) in the group by clause (which I tried it earlier), it gives me a is not an error of the function of single group...
The most frustrating thing is that
Select Max (N) as From (SELECT Employee.EID, Count (DID) As N FROM Employee Inner Join Dependent On Employee.EID = Dependent.EID group by Employee.EID) N
Works perfectly, but because it's a mission, I have to do in one step (no substeps/views)
Any help?
Thank you very much
Hello
ac981e5d-D10A-4520-BF42-23a894d04fb7 wrote:
Ok. I'm taking your code in a view... I get this.
and there is an orange underscore and a text of the error that says
Select incoherent list in group by... change the group by clause of e.fname, e.lname, e.eid, count, max
Which isn't what either the Oracle database would do. Everything about orange (or any other color) sounds like it is caused by a front-end that could be interacting with Oracle. In addition, the Oracle error messages always come with a 3-letter-5 code, as ORA-00933.
under the selection internal (first medium)
You have deleted the WITH clause. The parser can recognize the error when it has reached the first left parenthesis.
Create view AS A10T2
(
SELECT e.lname. ' ' || e.fname AS full_name
e.eid
(D.) AS this_group_count
MAX (COUNT (d.)) ON (AS highest_group_count)
E employee
LEFT OUTER JOIN dependent d ON e.eid = d.eid
GROUP BY e.lname, e.fname, e.eid
)
SELECT full_name
eid
Of aggregate_results
WHERE this_group_count > = highest_group_count - 2
ORDER BY full_name
You need the WITH to define this clause means "AGGREGATE_RESULTS":
Create view AS A10T2
WITH aggregate_results AS
(
SELECT e.lname. ' ' || e.fname AS full_name
...
Why do you have an ORDER BY clause in a view? (It is probably not cause of your errors, just make the inefficient view)
Command line error: column 5: 23
Error report-
SQL error: ORA-00933: SQL not correctly completed command
00933 00000 - "not correctly completed SQL command.
* Cause:
* Action:
This is another indication that some front is getting involved. Looks like your front-end reports the exact Oracle error message, "0RA-00933" and then builing it's own error code, "00933. 00000 ", on this basis. ORA-00933 is a reasonable mistake to wait if you omit the line ' WITH the aggregated results AS. Once again, until I can actually run your code, I can't test it, and I can't run your code until you post CREATE TABLE and INSERT statements for some examples of data, or change the problem to use commonly available tables, such as those in the scott schema.
and when I try my code
CREATE VIEW A10T2 AS
SELECT Employee.LName. ' ' || Employee.Fname as Full_Name, Employee.EID
The left outer JOIN employee depends on Employee.EID = Dependent.EID
Seen (Count (DID)) + 2 > (select Max (N) From (SELECT Employee.EID, Count (DID) As "N" FROM Employee Inner Join Dependent On Employee.EID = Dependent.EID group by Employee.EID))
Order of Employee.Lname, Employee.Fname
I get
Command line error: column 2: 8
Error report-
SQL error: ORA-00937: not a function of simple-group
00937 00000 - 'not a single-group function.
* Cause:
* Action:
Then the orange underscore even under my inner ("select employee. EID, Count (DID) as "N" ") says to change the Group of Employee.eid, Count (DID)
I just don't understand why he tells me to group them by Count (DID)?
Isn't that what you did in your original post, and I have explained in answer #2? If you continue to repeat the same mistake, you can expect continue to get the same error. Given that you have a code, you know causes an error, do you think really that what makes a vision will cause the error to disappear?
The inner query works fine on its own...
Right; It's the outer query where you are missing the GROUP BY clause.
-
calculate the forms feature will not allow me to check a box
I use Adobe Acrobat X Pro. In the forms, using the calculate function, I can't verify or check a box to
Some people have this problem and can get around by clicking close boxes, and others use the keyboard (space to toggle a check box, tab/arrows up/down in the list). Others find the simplified field notation more convenient, and I almost always use the custom JavaScript option.
-
ORA-00934: function of group not allowed error when creating index
ORA-00934: Group feature is not allowed here
create index idx_emp on emp(max(install_time))
Hello
Daniel wrote:
ORA-00934: Group feature is not allowed herecreate index idx_emp on emp(max(install_time))
It's true. It is documented in the Manual of the SQL language
Restrictions on Function-based Indexes Function-based indexes are subject to the following restrictions: ... The column_expression cannot contain any aggregate functions.
MAX is an aggregate function.
What problem are you trying to solve? If you could create an index like this, how would you use it?
Explain what you need to do, and someone will help you find a good way to do it. -
ISE 1.3 not allow authentication based on the group network
ISE 1.3
MS AD 2008R2
Two groups: all employees, all students
Problem: Students employee network connection
I have two wireless networks, STUDENTS and EMPLOYEES. In ISE, I have two strategies for approval for these networks. In an effort prior to keep students to connect to the network employee, I set the permission policy:
Employee: If (Wireless_802.1X AND AD1:ExternalGroups is equal to mydomain/accounts/all employees AND the AD1:ExternalGroups NOT_EQUALS mydomain/students/all students) then: Employee_Profile
Unfortunately, it did not work. Students have their own username and password in AD and each faculty and staff member. I checked that students are using their identification and employee network connection information. Conversely, I can connect to the student network using the credentials of the employee. The main problem is with the students, employee network, they use all the applicable DHCP scope addresses.
I need to not allow the network connection used by students and the network of students by employees.
Any help would be appreciated!
Kevin
Glad you were able to solve your problem! Also thank you for taking the time to come back and share the solution with everyone (+ 5) to me.
If your problem is resolved, you must mark the thread as "answered":) ".
-
The Group Policy settings do not allow the use of a PIN code at startup Bitlocker Windows 8
Hello
I hope you can help.
I tried to implement the encryption on my new laptop Lenovo Twist with windows 8, but get the following error.
ERROR: An error has occurred (code 0 x 80310060):
Group Policy settings do not allow the use of a PIN code start. Please choose a
other BitLocker startup option.I tried to change local policy settings...
- Go to Local computer policy > Computer Configuration > administrative templates > Windows components > Bitlocker Drive Encryption > Operating System Drives
- Open the key require additional start authentication
- Activate this key, then assign the require startup PIN with TPM TPM configure startup PIN
.. .but always not the same error.
Help, please. He drives me crazy!
Hello
Thanks for choosing Microsoft Community to post your question!
According to your description, it seems that you have problems with activation PIN code on startup.
Refer to the suggestions from this link and check.
For more help, I suggest you ask your question in the TechNet Forum. http://social.technet.Microsoft.com/forums/en-us/w8itprosecurity/threads
-
I subscribed to Pack Adobe and not only there me not allowed to do what I need it to do, he charged me the 9.99 and cannot me access to the subscription describes additional features. Worse, it is - I can't see it in my plans on my Adobe account to UNSUBSCRIBE. Help! How can I unsubscribe?
Hello
An answer depends on where you bought the subscription for. Please take a look at your purchase confirmation email.
(a) Apple App Store
Contact Apple - Apple Support support
iTunes - account & billing - Apple Support
(b) Google Play Store
Subscriptions on Google Play - game Google Help
(c) adobe web site
Cancel your subscription or membership. Acrobat, services Cloud of Document PDF
If none of the above answers your question, please contact Adobe customer service directly. Sorry for the inconvenience.
-
The submenu stack does not allow for the pictures stacked in the Organizer features 13 8.1 on windows.
Everyone knows this?
I stacked a few photos, now I can't develop or desempilement them in the Organizer.
This is for auto and manual of stacking.
Please press Ctrl + D to go to the older grid, and now the battery option must be enabled.
Thank you
Blandine -
Not allowing a value for a selection in a Select list
Version 4.1.1.00.23
Hello
I created a Select list to display projects within a Department (that we call groups).
A group will have projects, however, more than one group may have a project with the same name.
If my application for the display of the list select the data in a hierarchical format like this:
Group 1
Proj Grp 1
Proj Grp 1
Proj Grp 1
Proj Grp 1
proj Grp 3
Group 2
Proj Grp 1
Proj Grp 1
Proj Grp 2
Proj Grp 2
Group 3
Proj Grp 1
Proj Grp 2
proj Grp 3
What I'm looking for, it's to NOT allow 'Group' level to be selected in the list. Only allow the level of project to be selected values.
The query is:
WITH t AS (SELECT 'Group: ' || vg.group_name name ,vg.group_id ,NULL id ,1 AS weight FROM vertical_group vg WHERE (vg.group_id = :P100_GROUP OR :P100_GROUP = 0) UNION ALL SELECT '....' || project_name ,group_id ,project_id ,2 AS weight FROM tbs_projects WHERE status IN ('Pipeline' ,'Planned - Partially Funded' ,'Planned' ,'Execution') AND ( :P100_RYG_PROJECT = 0 OR :P100_RYG_PROJECT = ryg_proj_id ) AND ( group_id = :P100_GROUP OR :P100_GROUP = 0 )) SELECT name ,id FROM t ORDER BY group_id ,weight ,name
Can someone help me with this?
Is there additional information that I can provide?
Thank you
Joe
HTML
optgroup
element is used for the structureselect
of the lists in this way. Select standard lists the APEX and LOVs do not have support for generatingoptgroup
of the items in the lists of options, but point of plug-ins with this feature are available.See the documentation for more information on the use of plug-ins.
-
Authentication features - why not a GetAllGroupsUserIsIn()
Hello!
Is there a reason why it is not a feature that would allow a programmer empty all groups a user is in? For me as a programmer, I want to see which groups our network admin added a given user. For example, a GetAllGroupsUserIsIn (AndreP) might return a list of these groups that I am. Ideal for debugging, etc. Is this possible?Thank you. I just downloaded a big SWC called ntsecurity.cfc that does exactly what I need.
Maybe you are looking for
-
E-mail addresses IN contacts frequently goes to junk. When I open the email in the Junk folder, there is NO option to mark ' don't junk not "as there was in the past - at least not that I can find. Any help appreciated. Tired of Junk email recovery.
-
Cannot open websites, error DNS when the ping command cannot resolve the name
Cannot open all websites on a PC. (other computers on the network can access the sites without a problem)Error message is "Internet Explorer cannot display webpage." I can ping (internal and external) of the IP and gateway addresses.Ping translates:C
-
XZ phone great sleeves and drains battery fast
Hello According to the instructions provided in the manual, I loaded the phone for 30 minutes before turning on. The phone got overheated and he radiated energy right heat, which clearly felt in the Palms when we organize it. Also when I was on duty
-
Get the blinking (!) and note (user intervention required) in the dialog box. Replaced the low black print cartridge. Still will not print. Help!
-
New iMac, retina - problem with the mouse in Windows 10
Hello - I have received yesterday my new iMac of retina and transferred the VM Fusion with all the new Mac tips. Everything has gone well so far, but after setting the parameters for the new options of the retina, the mouse doesn't use VM Ware Tools.