"PL/SQL: statement ignored ' from the outset?
I am brand new to PL/SQL and I just can't understand what is wrong. Any help?SQL>
SQL> create or replace procedure HW3 (
2 p_buy number ) as
3
4 v_pay number;
5
6 begin
7 v_pay := p_buy(3/4);
8
9 dbms_output.put_line ('You entered: ' || p_buy);
10 dbms_output.put_line ('You will be charged for: '||trunc(v_pay));
11
12 end;
13 /
Warning: Procedure created with compilation errors.
SQL>
SQL> show errors;
Errors for PROCEDURE HW3:
LINE/COL ERROR
-------- -----------------------------------------------------------------
7/2 PL/SQL: Statement ignored
7/11 PLS-00222: no function with name 'P_BUY' exists in this scope
SQL>
SQL> spool off
I did very simple procedures with several settings, but this code just won't go.
Have you defined a p_buy function?
Or finally do you hear that in the first line after begin in your code?
v_pay := p_buy * (3/4);
When you write p_buy(3/4) the compiler thinks p_buy is a function and you want to call with parameter 3/4.
Published by: hm on 11.10.2011 23:39
Tags: Database
Similar Questions
-
Error in Trigger (PL/SQL: SQL statement ignored)
Here are the trigger:
CREATE OR REPLACE TRIGGER DRUGREPLACEMENT
AFTER INSERT ON PHARMACEUTICAL PRODUCTS
REFERENCING AS NEW newDrugs
FOR EACH LINE
WHERE (newDrugs.drugname = newDrugs.genericname)
BEGIN
UPDATE of prescription
SET pharmaceuticalid = newDrugs.drugID
WHERE pharmaceuticalid IN (SELECT pharmaceuticalid FROM prescription drugs WHERE drugid = pharmaceuticalid AND newDrugs.genericname = pharmaceutical.genericname);
END;
Error is:
Error (2.1): PL/SQL: statement ignored
Error (3.24): PL/SQL: ORA-00904: "NEWDRUGS. "" DRUGID ": invalid identifier
pharmaceuticalid is a number in my table of prescription.
drugid is a number; Genericname and drugname are two varchars in my table of pharmaceuticals. No idea why I get these errors? (I tried to put quotes around newdrugs.drugid, but then he said he just 'newdrugs.drugid' is not valid.) Thanks for your help
-BrianBrian,
I think that uou you will need to put a colon (:)) in front of the alias "newDrugs" which introduces you to the regular: new alias.)
Toon
-
PL/SQL: SQL statement ignored
Hi all
10g on solaris 10
requirement is that I need to delete records of 100000 and put a commit...Begin 2 Loop 3 delete from calls.incalls 4 partition(apr201001) e 5 where exists (select 1 from calls.incalls 6 7 partition(apr201001) 8 where calltype in ('001','031','050','051','055') and transdate between '01-apr-2010' and '02-apr-2010') 9 ) 10 and rownum<=100000; 11 if SQL%ROWCOUNT = 0 then 12 exit; end if; 13 14 commit; end loop; 15 16 end; 17 / ) * ERROR at line 9: ORA-06550: line 9, column 24: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 3, column 4: PL/SQL: SQL Statement ignored
the code above works this way?
KaiHello
you have a ') ' to much, remove the line 9.
Herald tiomela
htendam.WordPress.com -
Quick question, on the execution of the query of the ff, I do
Select a.column, sum (decode(a.column,'string',1,'etc...')
But when I include a func or procedure, it won't allow me too and that he would give a PL/SQL: SQL statement ignored error and it will compile only if I remove the first a.column as follows
Select sum (decode(a.column,'string',1,'etc...')
Why is it so? And how should it be rewritten to include the select a.column?
Start
Select a.gameid, sum (decode(a.nscores,'Perfect',100,'Excellent',95,'Good',80,'Poor',50) 'scores'
in x,y
Of...
where the...
return x
end myFunc;
Fundamentals of the PL/SQL language
Concerning
Etbin
-
error: PL/SQL statement ignored
In the code below, I get 3 errors:
a. PL/SQL statement ignored
b. PLS-00201
c. PL/SQL: ORA-00904: invalid identifier
Help, please. Thank you
=========================================
Package body:
=========================================
create or replace package BODY manage_students
as
procedure find_sname
(i_student_id IN student.student_id%TYPE,
o_first_name ON student.first_name%TYPE
o_last_name ON student.last_name%TYPE)
IS
v_student_id student.student_id%TYPE;
BEGIN
Select first_name, last_name
in o_first_name, o_last_name
the student
where student_id = i_student_id;
exception
while others
then
DBMS_OUTPUT. Put_line (' error in search of student_id: ' | v_student_id);
end find_sname;
function id_is_good
(i_student_id to student.student_id%TYPE)
Returns BOOLEAN
IS
number of v_id_cnt;
Start
Select count (*)
in v_in_cnt
the student
where student_id = i_student_id;
return 1 = v_id_cnt;
EXCEPTION
while others then
return FALSE;.
end id_is_good;
END manage_students;
/
=========================
Package specifications:
=========================
Set serveroutput on
create or replace package manage_students
as
procedure find_sname
(i_student_id IN student.student_id%TYPE,
o_first_name ON student.first_name%TYPE
o_last_name ON student.last_name%TYPE
);
function id_is_good
(i_student_id IN student.student_id%TYPE)
RETURN A BOOLEAN VALUE;
END manage_students;
/
Published by: [email protected] on March 19, 2009 06:03
Published by: [email protected] on March 19, 2009 06:03Perhaps here:
number of v_id_cnt; ----
Start
Select count (*)
in v_in_cnt- -
problem when creating a trigger: SQL statement ignored
Hello people,
I am trying to create a trigger, but it is not created. Instead, I get the error message that a SQL statement at line 22 was ignored. It's the line indicating IF num2 = 1 THEN. I'd be happy if someone could point me in the right direction or solve my problem.
CREATE OR REPLACE TRIGGER TriggerLogement BEFORE INSERT OR update ON tenants
FOR EACH LINE
DECLARE
NUM INTEGER;
num2 INTEGER;
NUM3 INTEGER;
paysLocataire VARCHAR2 (255);
categorieLocataire VARCHAR2 (1);
BEGIN
SELECT COUNT (ns) IN the number OF tenants WHERE nomBat =: new.nomBat;
IF num > 0 THEN
SELECT paid IN the country OF sports WHERE ns =: new.ns;
SELECT COUNT (country) IN number OF athletes sp, tenants lo WHERE sp.ns = lo.ns AND paysLocataire AND lo.nomBat = pays =: new.nomBat;
IF num = 0 THEN
raise_application_error (-20000, "building already in use for another nationality");
ON THE OTHER
SELECT COUNT (ns) IN num2 OF tenants WHERE nLogement =: new. NLogement AND nomBat =: new.nomBat;
IF num2 = 2 THEN
raise_application_error (-20000, 'full accommodation');
ON THE OTHER
IF num2 = 1 THEN
CateogrieLocataire INTO SELECT category OF athletes WHERE ns = new.ns;
SELECT COUNT (ns) IN num3 FROM tenant lo, sportsmen sp WHERE lo.ns = sp.ns
AND lo.nLogement =: new. NLogement AND lo.nomBat =: new.nomBat AND sp.categorie = categorieLocataire;
IF num3 = 0 THEN
raise_application_error ("-20000, ' already in use for the other sex");
END IF;
END IF;
END IF;
END IF;
END IF;
END;
If you need more information or if you have any questions about my posts please leave your questions or comments. I hope this isn't how completely wrong to enforce some constraints that I can't do with CONSTRAINT and CHECK in the schema definition.
Thanks for your help and your attention.
SebastianHello
Whenever you have a problem that raises an error, display the full error message; do not paraphrase just part of it.
In the triggers line numbers from the first statement DECLARE or BEGIN, so line 22 of your trigger is:
SELECT categorie INTO cateogrieLocataire FROM Sportifs WHERE ns = new.ns;
You are missing a colon before 'new': it should be:
SELECT categorie INTO cateogrieLocataire FROM Sportifs WHERE ns = :new.ns;
A FOR EACH ROW trigger on tenants cannot ask tenants. It's a shame: there are many useful things, you could do if that were allowed, but it's not.
I'm not sure of what all queries. At least one of them:SELECT COUNT (ns) INTO num2 FROM Locataires WHERE nLogement = :new.NLogement AND nomBat = :new.nomBat; IF num2 = 2 THEN raise_application_error(-20000,'accomodation full');
can be replaced by a UNIQUE constraint. (Constraints are better than triggers, in any case.)
If you can't do what you want with constraints, you can leave anyone directly INSERT or update the table: force them to use a procedure stored instead. You can have an INSTEAD OF trigger on a view, which is essentially the same, but allows you to use DML commands.
If you need help, post some sample data and some examples of DML operations that must be allowed, given the data and some examples of DML operations that should not be allowed.
-
SQL statement to select the tables that are updated today...
Hi guys,.
I need to find the names of all the tables that contain rows that are inserted/updated on a given time stamp...
Below the statement gives me the list of all tables in the database...
All these tables in the database have a rowversion column which gives the date of update/insertion of a record. I need to write a select statement (probably dynamic) that will give me the names of the tables that contain the rowversion value 24/01/2013...select t.table_name from all_tables t;
Any help is appreciated...Napster says:
Hi kitsoukou,Thanks for your reply...
But when I run your select statement I get an error indicating that the table SYS. DBMS_XMLGEN does not exist.
Probably something wrong in my environment?
If I'm not mistaken there are DBMS_XMLGEN 9i.
The source code is available under
karthick% ls -lrt $ORACLE_HOME/rdbms/admin/dbmsxml.sql -rw-r--r-- 1 oracle dba 7977 Mar 23 2004 /home/oracle/product/10.2.0.5/rdbms/admin/dbmsxml.sql
You can take this and run to install DBMS_XMLGEN.
-
Run the second sql statement only if the first sql statement is set to zero.
Hey guys I seem to have a mental block here. I have two sql statements. I would like to than the second to run only if the first sql statement is set to zero. I know that I can use PLsql but I would really like to see if I can do this with sql upward. Your answers are very much appreciated.
This is the first sql
second sql statementSelect ft.fund_code, ft.orgn_code, ft.acct_code, ft.amount, fb.owner_pidm, ft.prog_code from ftrbremb fb , ftcractg ft where fb.doc_code = 'TR000038' and fb.ftpbport_id = ft.ftpbport_id
How can I combine these two statements together so that when the first is null the second run. As a bonus, I want to get just the first line as well.Select ft.fund_code, ft.orgn_code, ft.acct_code, ft.amount, fb.owner_pidm, ft.prog_code from ftrbremb fb , ftcractg ft, ftprexps fx where fb.doc_code = 'TR000038' --and fb.ftpbport_id = ft.ftpbport_id and fx.ftrbremb_id = fb.id and ft.ftprexps_id = fx.id;
Any help would be greatly appreciated. I tried to accomplish with the case statement but it dosent everything seems to work for me.
Thank youMiguel,
the idea is simple: join the two queries (via the union of all) and to change the second part as to return only the rows if the first query returns no rows by changing the NOT EXISTS (first request). Hope I made it clear... ;)
-
sql statement that activates the trigger to capture
Hello
I'm trying to enter the sql code that activates the trigger with this procedure:
CREATE OR REPLACE TRIGGER t_trg
after insert or update
on the manikin
for each line
declare
long p_stmt;
sql_lines directory.
MSG VARCHAR2 (32000);
Return VARCHAR2 (2): = Chr (13).
triggering_sql dbms_standard.ora_name_list_t;
Start
-get the SQL trigger
sql_lines: = sql_txt (triggering_sql);
FOR loop_counter IN triggering_sql. FIRST... triggering_sql. LAST
LOOP
-Add the SQL trigger to the message
MSG: = msg | triggering_sql (loop_counter) | line feed;
END LOOP;
Insert into values dummy2 (msg) (cad);
end t_trg;
but...
ORA-06531: Referencia a una recopilacion no inicializada
ORA-06512: en "TRASPASO. T_TRG ', line 11.
ORA-04088: error during the run "TRASPASO del disparador. T_TRG'
Kind regards
Daniel
PD. Sorry for my bad English
Published by: user10660485 on 30 / abr / 2010 0:35What is your version of the database? There is a bug with this statement. However, you can try the following
CREATE OR REPLACE TRIGGER EMP_TRG1 BEFORE UPDATE ON EMPLOYEES declare v_num NUMBER; sql_stmt varchar2(2000); sql_text ora_name_list_t; BEGIN v_num:=ora_sql_txt(sql_text); FOR i in 1..NVL(v_num,0) LOOP sql_stmt:=sql_stmt||sql_text(i); END LOOP; INSERT INTO EMP_LOG VALUES(sql_stmt); --dbms_output.put_line(sql_stmt); END;
In my database to Oracle Database 10g Express Edition Release 10.2.0.1.0 that it always returns the value null;
For more information, please visit http://www.orafaq.com/forum/t/68667/2/ -
Select SQL statement - See all the value of the range of month of entry
Hi all
I have a vision that is a union of other views
But the description of the view is as below
-current data in the viewdesc dashboard_monthly_view Name Null Type ------------------------------ ---- ------------ MONTHS VARCHAR2(17) NUM_DEPENDENT_IN_ASSESSMENT NUMBER NUM_REFERRED_AODTC NUMBER NUM_AT_DETERMINATION_HEARING NUMBER NUM_ACCEPTED NUMBER NUM_NOT_ACCEPTED NUMBER NUM_EXITED_SUCCESS NUMBER AVERAGE_DAY_TO_EXIST NUMBER NUM_EXITED_UNSUCCESS NUMBER AVERAGE_DAY_TO_EXIST_UNSUCCESS NUMBER COURT_NAME VARCHAR2(9)
-My select query isMONTHS NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED NUM_NOT_ACCEPTED NUM_EXITED_SUCCESS AVERAGE_DAY_TO_EXIST NUM_EXITED_UNSUCCESS AVERAGE_DAY_TO_EXIST_UNSUCCESS COURT_NAME ----------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ ---------- AUG 2012 1 0 0 0 0 0 0 0 0 AAA OCT 2012 8 1 3 1 1 1 44 1 4 AAA SEP 2012 2 0 2 2 0 0 0 0 0 AAA *UNDEFINED* 0 11 7 1 1 0 0 1 0 AAA NOV 2012 0 0 0 0 0 0 0 1 54 BBB OCT 2012 4 1 2 1 1 1 9 0 0 BBB SEP 2012 1 0 0 0 0 1 14 0 0 BBB *UNDEFINED* 0 5 4 1 0 0 0 1 0 BBB AUG 2012 1 0 0 0 0 0 0 0 0 COMBINED NOV 2012 0 0 0 0 0 0 0 1 54 COMBINED OCT 2012 12 2 5 2 2 2 26.5 1 4 COMBINED SEP 2012 3 0 2 2 0 1 14 0 0 COMBINED *UNDEFINED* 0 16 11 2 1 0 0 2 0 COMBINED 13 rows selected
- And the result isDEFINE startmonth = "Aug 2012"; DEFINE endmonth = "Nov 2012"; with all_months as ( select to_char(which_month, 'MON YYYY') month from (select add_months(to_date('&startmonth','MON YYYY'), rownum-1) which_month from all_objects where rownum <= months_between(to_date(NVL('&endmonth', '&startmonth'),'MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1)) order by which_month ) ) select nvl(months, '**ALL**') AS "MONTHS", TO_DATE(MONTHS, 'MON YYYY') AS MONTH_SORT , sum(num_dependent_in_assessment) AS num_dependent_in_assessment , sum(num_referred_aodtc) AS num_referred_aodtc , sum(num_at_determination_hearing) as num_at_determination_hearing , sum(num_accepted) AS num_accepted , sum (num_not_accepted) AS num_not_accepted , sum(num_exited_success) as num_exited_success , sum(average_day_to_exist) as average_day_to_exist , sum(num_exited_unsuccess) as num_exited_unsuccess , sum (average_day_to_exist_unsuccess) as average_day_to_exist_unsuccess from DASHBOARD_MONTHLY_VIEW right outer join all_months on DASHBOARD_MONTHLY_VIEW.months = all_months.month --where months in (select month from all_months) and upper(court_name) like 'AAA' group by (months) order by month_sort
-The requirement of results I have to produce isMONTHS MONTH_SORT NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED NUM_NOT_ACCEPTED NUM_EXITED_SUCCESS AVERAGE_DAY_TO_EXIST NUM_EXITED_UNSUCCESS AVERAGE_DAY_TO_EXIST_UNSUCCESS ----------------- ------------------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ AUG 2012 01/08/12 1 0 0 0 0 0 0 0 0 SEP 2012 01/09/12 2 0 2 2 0 0 0 0 0 OCT 2012 01/10/12 8 1 3 1 1 1 44 1 4 **ALL**
On the tota (* EVERYTHING *) l, I tried to use the rollup but he total average too, which is not correct. I think the reason because he cannot read the form that was used to calculate the column.MONTHS MONTH_SORT NUM_DEPENDENT_IN_ASSESSMENT NUM_REFERRED_AODTC NUM_AT_DETERMINATION_HEARING NUM_ACCEPTED NUM_NOT_ACCEPTED NUM_EXITED_SUCCESS AVERAGE_DAY_TO_EXIST NUM_EXITED_UNSUCCESS AVERAGE_DAY_TO_EXIST_UNSUCCESS ----------------- ------------------------- --------------------------- ---------------------- ---------------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ------------------------------ AUG 2012 01/08/12 1 0 0 0 0 0 0 0 0 SEP 2012 01/09/12 2 0 2 2 0 0 0 0 0 OCT 2012 01/10/12 8 1 3 1 1 1 44 1 4 NOV 2012 01/11/12 0 0 0 0 0 0 0 0 0 **ALL**
How can I fix this, should I create, select another below one, with the sum of each column and the average for the other columns.
Also, the business analyst want to show all the months between the start and end of the month.
I used the right outer join, but apparently does not produce the right result.
If anyone of you have any ideas, please advise.
We use Oracle 11 g, it is a select statement for an Oracle APEX report.
The APEX version is 4.0.2. I'm a junior developer of the APEX and I still have to learn a lot about SQL Oracle analytic function.
Thank you very much in advance.
AnnHi, Ann.
Ann586341 wrote:
... I created a table to contain a simplified version of this viewThank you. It is much easier to work with.
... My query is
DEFINE startmonth = "Aug 2012"; DEFINE endmonth = "Nov 2012"; with all_months as ( select to_char(which_month, 'MON YYYY') month from (select add_months(to_date('&startmonth','MON YYYY'), rownum-1) which_month from all_objects where rownum <= months_between(to_date(NVL('&endmonth', '&startmonth'),'MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1)) order by which_month ) ) , tbl_dashboard_active as ( select * from tbl_dashboard_monthly where months != '**UNDEFINED**' ) select tbl.months AS "MONTHS" --, TO_DATE(tbl.MONTHS, 'MON YYYY') AS MONTH_SORT , tbl.num_hearing , tbl.num_exited_success , tbl.avg_day_success_exist , tbl.num_exited_unsuccess , tbl.avg_day_unsuccess_exist from tbl_dashboard_active tbl right outer join all_months am on tbl.months = am.month and upper(tbl.court_name) like 'BBB' UNION ALL select 'ALL' AS "TOTAL" , SUM(tbl.num_hearing) , SUM(tbl.num_exited_success) , round(AVG(tbl.avg_day_success_exist),2) , SUM(tbl.num_exited_unsuccess) , round(AVG(tbl.avg_day_unsuccess_exist),2) --order by to_date(am.month,'MON YYYY') from tbl_dashboard_monthly tbl right outer join all_months am on tbl.months = am.month and upper(tbl.court_name) like 'BBB'
- And the result I got
MONTHS NUM_HEARING NUM_EXITED_SUCCESS AVG_DAY_SUCCESS_EXIST NUM_EXITED_UNSUCCESS AVG_DAY_UNSUCCESS_EXIST ----------------- ----------- ------------------ --------------------- -------------------- ----------------------- AUG 2012 1 0 0 0 0 OCT 2012 1 0 0 2 35 SEP 2012 1 0 0 0 0 ALL 3 0 0 2 11.67
I don't know why even I already filter all lines that the month is undefined, I still have a blank line in the result set.
This is the line for November. You do an outer join, in order to ensure that each value of am.month is displayed, even if it does not match what anyone in tbl. When it does not match anything, then all the columns tbl is supposed to provide will be NULL. You decide to view tbl. months, which is one of the following columns will be NULL. You should display mod. monmth instead.
But if I run for handset Court, I don't see this problem. The reason is that the Court combined have given for all four months?
When you say "on behalf of the combined Court", do you mean the unconditional "upper (tbl.court_name) as"BBB "?
If Yes, that would explain it.Also is it possible to list all the months between the start and end month assuring the user even if the statistics are 0.
Once again, in the case of lines that are present, even if they do not have the status of outer join, all of these columns will be NULL. Use NVL to map these nulls to 0.
and how to sort the month
GROUP OF two expressions, which depend on each other: one for sorting and the other for display.
For the sort expression, you can use months as a DATE. (It seems that you have tried this, but commented on the ORDER BY clause in your query is before the FROM clause.) The ORDER BY clause is always at the end of the query, after the FROM clause.)
Another expression of sorting is the number you used to generate the first month. That's what I used below.Here's a way to get the results you requested:
WITH got_months AS ( SELECT TO_DATE ('&startmonth', 'Mon YYYY') AS startmonth_dt , TO_DATE ( NVL ( '&endmonth' , '&startmonth' ) , 'Mon YYYY' ) AS endmonth_dt FROM dual ) , all_months AS ( SELECT rownum AS month_num , TO_CHAR ( ADD_MONTHS ( m.startmonth_dt , ROWNUM - 1 ) , 'MON YYYY' ) AS months FROM got_months m CROSS JOIN all_objects WHERE ROWNUM <= 1 + MONTHS_BETWEEN ( m.endmonth_dt , m.startmonth_dt ) ) SELECT NVL ( am.months , 'All' ) AS months , SUM (NVL (tbl.num_hearing, 0)) AS num_hearing , SUM (NVL (tbl.num_exited_success, 0)) AS num_exited_success , AVG (NVL (tbl.avg_day_success_exist, 0)) AS avg_day_success_exist , SUM (NVL (tbl.num_exited_unsuccess, 0)) AS num_exited_unsuccess , AVG (NVL (tbl.avg_day_unsuccess_exist, 0)) AS avg_day_unsuccess_exist FROM all_months am LEFT OUTER JOIN tbl_dashboard_monthly tbl ON am.months = tbl.months AND UPPER (tbl.court_name) = 'BBB' GROUP BY GROUPING SETS ( (am.month_num, am.months) , () ) ORDER BY am.month_num ;
Again, I used two GROUP BY expressions: one for sorting, the other for display. These depend on each other, that is, given one, you could derive from each other, and it is not sensible to dependent ROLLUP GROUP BY expressions like that, so I used GROUPING SETS ROLLUP instead, so it would be only 1 rank of great aggregate (in other words, 'all').
Output:
` AVG_ AVG_ NUM_ DAY_ NUM_ DAY_ NUM_ EXITED_ SUCCESS EXITED_ UNSUCCESS MONTHS HEARING SUCCESS _EXIST UNSUCCESS _EXIST --------- ------- ------- ---------- --------- ---------- AUG 2012 1 0 0 0 0 SEP 2012 1 0 0 0 0 OCT 2012 1 0 0 2 35 NOV 2012 0 0 0 0 0 All 3 0 0 2 8.75
-
SQL statement by using the min aggregate function result extract a line - how?
Need help, try to do something seemingly simple. I'll give a simple example to illustrate the problem.
I'll use a simple table of addresses with 4 fields.
Create the table:
complete with 6 rowsCREATE TABLE "ADDRESSES" ( "OWNER_NAME" VARCHAR2(20 BYTE), "STREET_NAME" VARCHAR2(20 BYTE), "STREET_NUMBER" NUMBER ) ;
We now have this:Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('FRED','MAIN',1); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JOAN','MAIN',2); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEAN','MAIN',3); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JACK','ELM',1); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JANE','ELM',2); Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEFF','ELM',3);
Select * from addresses
Now, I want to group by street name and obtain a number of houses. At the same time, I would like to know the number of the first and the last HouseOWNER_NAME STREET_NAME STREET_NUMBER -------------------- -------------------- ---------------------- FRED MAIN 1 JOAN MAIN 2 JEAN MAIN 3 JACK ELM 1 JANE ELM 2 JEFF ELM 3 6 rows selected
Excellent. Now for the problem. I would also like to list on each line, the owner who lives at number House first and/or the last. It should be noted, assume that the name of the street and the number is uniqueselect street_name, count(*) "NBR HOUSES", min(street_number) "First Number", max(street_number) "Last Number" from addresses group by street_name produces STREET_NAME NBR HOUSES First Number Last Number -------------------- ---------------------- ---------------------- ---------------------- ELM 3 1 3 MAIN 3 1 3 2 rows selected
It seems I have everything that I need. Don't know how to get home.
I tried:
But getting a syntax error sql group function unauthorized when I add the subselect statement.select street_name, count(*) "NBR HOUSES", min(street_number) "First Number", max(street_number) "Last Number", (Select b.owner_name from addresses b where b.street_number = min(street_number) and b.owner_name = owner_name) "First Owner" from addresses group by street_name
any ideas?
Thanks for any help.
Published by: user6876601 on November 19, 2009 19:08
Published by: user6876601 on November 19, 2009 19:30Hello
Welcome to the forum!
Get the minimum and maximum number for each street is a pretty simple concept; simpler to describe and simple to code.
Now you want to the owner_name associate the maximum and minimum, which is a concept more complex; a little more difficult to describe and, unfortunately, much less simple to code and much, much more difficult to explain:select street_name, count (*) "NBR HOUSES", min (street_number) "First Number", min (owner_name) KEEP (DENSE_RANK FIRST ORDER BY street_number) "First Owner", max (street_number) "Last Number", min (owner_name) KEEP (DENSE_RANK LAST ORDER BY street_number) "Last Owner" from addresses group by street_name ;
You will notice that I used min for "Original owner" and "last owner". Why is this?
The key word in these functions is the FIRST or the LAST word that comes after DENSE_RANK and before ORDER BY. The function at the beginning is simply a break.In other words, MIN in this context refers only to what needs to happen when there is a link to the first or last in the group. Even if such a thing is impossibe in your data, generic functions must have a mechanism to return a single owner_name when two or more rows have an equal right to having the highest street_number. For example, if we change the address of Joan in 1 hand, then MIN (street_number) is always 1, of course, but who is the person associated with the minimum street_number: Fred or Joan? Both have an equal claim that he owns with the smallest address on Main Street, but aggregate functions must return a single value, so we must have a mechanism to indicate to the system, whether to return 'JOAN' or 'FRED '. In this example, I arbitrarily in the network said een of tie, the lowest name, in alphabetical order, must be returned. In this case, 'FRED' would return, "FRED" prior to "JOAN".
Thank you for including CREATE TABLE and INSERT!
-
SQL statement error INSERT The conflicted with the FOREIGN KEY constraint
I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.
SQL questions are better posed on Technet. They are better equipped to manage the
http://social.technet.Microsoft.com/forums/en-us/categories/
-
The addition of sheep statement disconnects from the Internet
Hello
I found very strange question about the tunnel VPN IPSec L2L.
ASA 5510 I have a Site in Tunnels created for many clients and they all work correctly.
Now I create for new client VPN tunnel and as soon as I add statement sheep, I see that I have no connection with ASA 5510 and Internet disconnects for everyone.
I have to wait 30 seconds then Internet comes up and everything works fine but I see sheep stement is not added.
sh run nat
NAT (INSIDE-VL10) 0-list of access INSIDE_NAT0
NAT (INSIDE-VL10) 1 10.7.10.0 255.255.255.0
NAT (INSIDE-VL15) 0-list of access INSIDE_NAT0
NAT (INSIDE-VL15) 1 10.7.15.0 255.255.255.0
NAT (INSIDE-VL5) 0-list of access INSIDE_NAT0
NAT (INSIDE-VL5) 1 10.7.5.0 255.255.255.0
NAT (INSIDE VL25) 0-list of access INSIDE_NAT0
NAT (INSIDE VL25) 1 10.7.25.0 255.255.255.0
SH run access-list INSIDE_NAT0
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-group of objects CLIENT1_LAN
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-group of objects CLIENT11_LAN
INSIDE_NAT0 list of allowed ip extended access object-ABC_LAN-SF ABC_LAN-NET group object
INSIDE_NAT0 list of allowed ip extended access object-ABC_LAN-NET object group ABC_LAN-SF
INSIDE_NAT0 lists of permitted ip extended access object-ABC_LAN-ML item ABC_LAN-NET group
INSIDE_NAT0 list extended access permitted ip group ABC_LAN-ML object object-ABC_LAN-NET
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-group of objects CLIENT2_LAN
INSIDE_NAT0 list of allowed ip extended access object-ABC_LAN-NET ABC_LAN_RVPN-ADMIN group object
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-group of objects CLIENT3_LAN
INSIDE_NAT0 list extended access permitted ip group CLIENT4_LAN object object-ABC_LAN-SS
INSIDE_NAT0 list extended access permitted ip group CLIENT5_LAN object object-ABC_LAN-SS
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-group of objects CLIENT6_LAN
# #New Config
the NEWCLIENT_LAN object-group network
network-object 10.34.123.184 255.255.255.252
network-object 10.34.185.224 255.255.255.248
network-object 10.45.103.192 255.255.255.192
INSIDE_NAT0 list extended access permitted ip object-group ABC_LAN-SS NEWCLIENT_LAN object-group
access-list VPN_ABC-NEWCLIENT allowed extended ip object-group ABC_LAN-SS NEWCLIENT_LAN object-group
VPN-FILTER_NEWCLIENT-ABC extended access list permit ip object-group objects ABC_LAN-SS NEWCLIENT_LAN-group
correspondence address 25 card outside_map0 VPN_ABC-NEWCLIENT crypto
card crypto outside_map0 25 set pfs
outside_map0 25 crypto map set peer 6.6.6.6
card crypto outside_map0 25 game of transformation-ESP-AES-256-SHA
life card crypto outside_map0 25 set security-association seconds 28800
Group VPNGP_ABC-NEWCLIENT policy internal
Group VPNGP_ABC-NEWCLIENT policy attributes
value of filter-VPN VPN-FILTER_NEWCLIENT-ABC
tunnel-group 6.6.6.6 type ipsec-l2l
tunnel-group 6.6.6.6 General attributes
Group Policy - by default-VPNGP_ABC-NEWCLIENT
tunnel-group 6.6.6.6 ipsec-attributes
pre-shared-key fdfsf
ISAKMP retry threshold 30 keepalive 5
Route outside 10.34.123.184 255.255.255.252 183.82.0.1 1
Route outside 10.34.185.224 255.255.255.248 183.82.0.1 1
Route outside 10.45.103.192 255.255.255.192 183.82.0.1 1
Hello
So you're saying that you add the command which in turn on 30s causes break for all network connections and connection management to the ASA himself. And after you retrieve the management connection, you see that the ASA has not added the NAT0/configuration of the ASA statement?
If this is true then I have not run into this before.
Although the first thing that strikes me is that you share a unique ACL for all interfaces of the NAT0 configurations.
I suggest creating separate ACL for each interface on the ASA and use that separate ACL on each interface "(nameif) nat 0 access-list" configuration ".
-Jouni
-
Slow down execution SQL - extracting data from the FACT Table
taHi,
We have a SQL that runs slowly.
Select / * + ALL_ROWS PARALLEL (F 8) * /.
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_ID,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BIL_UNT_ID,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF_PKG_CD,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_UNDWR_CD,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_CAC_CD,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_RTMS_HLTH_COV_CD,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_ACTUR_RSRV_CATEG_CD,
IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF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_XREF. LGCY_SBSCR_ID,
OASIS_CLM_MBR_XREF. LGCY_MBR_SFX_ID,
OASIS_CLM_MBR_XREF. FACETS_SBSCR_ID,
OASIS_CLM_MBR_XREF. FACETS_MBR_SFX_ID,
OASIS_CLM_MBR_XREF. LGCY_CUST_ID,
OASIS_CLM_MBR_XREF. LGCY_GRP_ID,
OASIS_CLM_MBR_XREF. LGCY_BIL_UNT_ID,
OASIS_CLM_MBR_XREF. FACETS_PRNT_GRP_ID,
OASIS_CLM_MBR_XREF. FACETS_GRP_ID,
OASIS_CLM_MBR_XREF. FACETS_CLS_ID,
OASIS_CLM_MBR_XREF. FACETS_CONVER_MBR_EFF_DT,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_BILLING_PROV,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_ATTENDING_PROV,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_PCP_NUMBER,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_IPA_NUMBER,
EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_SVC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_LST_PRCS_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_LOC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_CHK_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_ADMIT_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_ICN,
EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NBR,
EDW. CLM_CAPITN_F.CLM_CAPITN_PD_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_BIL_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_DY_NBR,
EDW. CLM_CAPITN_F.CLM_CAPITN_UNT_OF_SVC_QTY,
EDW. CLM_CAPITN_F.CLM_CAPITN_COB_SAV_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_COINS_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_RSN_CHRG_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_WTHLD_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_DED_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_LAT_CALL_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_DED_PNLTY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_COPAY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_PCT_COPAY_AMT,
EDW. CLM_CAPITN_F.SANCT_FLAT_DLR_COPAY_AMT,
EDW. CLM_CAPITN_F.SANCT_HMO_ACCUM_COPAY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_TOT_NEGOT_RT_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NEGOT_RT_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SEC_ALLOW_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_GATWY_ID,
EDW. CLM_CAPITN_F.CLM_CAPITN_PROV_AGR_ID,
EDW. CLM_CAPITN_F.CLM_CAPITN_F_SNPSHOT_MO_SK
OF EDW. Partition CLM_CAPITN_F (JAN2012),
EDW. IA_OASIS_GRP_CAPTR_D IA_OASIS_GRP_CAPTR_D,
EDW. IA_OASIS_MBR_CAPTR_D IA_OASIS_MBR_CAPTR_D,
EDW. IA_OASIS_CLM_SPEC_D IA_OASIS_CLM_SPEC_D,
EDW. IA_OASIS_CAPITN_CLM_D IA_OASIS_CAPITN_CLM_D,
EDW. CLM_CLS_PLN_CAPTR_D CLM_CLS_PLN_CAPTR_D,
EDW. OASIS_CLM_MBR_XREF OASIS_CLM_MBR_XREF,
EDW. IA_OASIS_TOT_PROV_CUR_D IA_OASIS_TOT_PROV_CUR_D
WHERE
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_GRP_CAPTR_EDW_SK = IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_EDW_SK (+) and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_MBR_CAPTR_EDW_SK = IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_SPEC_EDW_SK = IA_OASIS_CLM_SPEC_D.CLM_SPEC_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_EDW_SK = IA_OASIS_CAPITN_CLM_D.CLM_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CLS_PLN_CAPTR_EDW_SK = CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CAPTR_EDW_SK and
EDW. CLM_CAPITN_F.MBR_XREF_SK = OASIS_CLM_MBR_XREF. MBR_XREF_SK (+) and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_BIL_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_ATTND_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_PCP_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_IPA_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK (+);
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE Production 11.2.0.4.0
AMT for Solaris: 11.2.0.4.0 - Production Version
NLSRTL Version 11.2.0.4.0 - Production
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.2.0.4
optimizer_index_caching integer 0
OPTIMIZER_INDEX_COST_ADJ integer 100
the string ALL_ROWS optimizer_mode
optimizer_secure_view_merging Boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines Boolean TRUE
Please suggest how this can be optimized.
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 32
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
DB_BLOCK_SIZE integer 32768
CURSOR_SHARING EXACT string
-
Try to get t my email, this happens: we're sorry, but you must enable cookies and Javascript to use your username with this site.
How can I do this?George Szántó
[email protected]see similar question answered https://support.mozilla.com/questions/836913
To be notified of updates to a question, if this is your problem or not just click on the "Get email notifications" and follow made the choice. Only the original poster can mark it as resolved, so there should be a slight difference in choice as an original poster and where you lock on another issue. Notifications only apply to individuals the question where is entered.
Maybe you are looking for
-
Not able to accommodate my WCF through IIS application.
I am new to IIS and WCF. So please help me about these things. I'm trying to convey what I understand. I have the version of WCF file MSPServer.exe application which I'm running Services in the Windows Server 2008 machine. There is a MSPServer.exe.co
-
Setup xp Outlook Express 6.0 problem - no support.
I am trying to configure Outlook Express 6.0 on an old XP, my modem is connected to AT & T and my regular internet e-mail is through Yahoo.com. I get conflicting information about the POP3 or IMAP protocols, and if I have to use att.net or yahoo.com
-
I upgraded to 10 when it first released 7 Home Premium, but he disliked at the time. About 6 months ago I had problems with the Home Premium so I installed the Enterprise GLVK version I think. I uninstalled 7 Home Premium, but I still have the produc
-
laptop battery runs faster in Windows 8 Windows 7.
Hello. After that I have upgraded from Windows 7 to Windows 8, my battery drains so fast. I can use my PC up to 4-5 hours in Windows 7, but I could only use my PC to less than 3 hours in Windows 8. I think I have already applied all the latest driver
-
SelectOneChoice in a table 12 c adf
I have a selectOneChoice component in a table column as well as a box of inputText where comments can be entered on the selection in the drop-down list in the component selectOneChoice (in the same column of the table).I have an autoSubmit = true on