Need help in the use of dbms_lob.read
I need to upload a file in an Oracle table to a Blob column. The name of the file with the contents of the file are all in a BLOB column.Once it's done, I need to read the file and extract the contents of the file and load it into an intermediate table.
Downloaded file is a. CSV file.
For example, the. CSV file is: ABC.csv file and its contents will look like:
1, Hello, Nisha
2, Hello, happy
3, bye, Rahul
Etc...
This is why the table containing the BLOB column will contain:
Creation_date file
ABC.csv 09/11/2009
How can I read a file from the BLOB and upload column in an intermediate table?
Final staging table should look like:
Record number welcome name
1 Hello Nisha
2 happy salvation
Rahul 3 bye
I think I'm supposed to use dbms_lob.read, but I'm not really sure how to use it. If there is any script, please mail me the same.
Thank you...
But for my needs, I multiiple users downloading the same file in the table of the BLOB.
It's just worse and worse.
You can do this asynchronously - have a background process download the CSV file and insert into the destination table. Depends on if your users want to see the results immediately. You can also have your users load the OS, insert it into the destination table, and then in the blob store.
Information on how to obtain one record of the other of the. The blob column CSV file...
You will be happy. This is a very unusual request, but you can try searching the interwebs - something can emerge.
Basically what did your 'condition' is to take a simple piece of functionality, which is well understood and more easily satisfied using built-ins regular, and sought to implement pretty much the hardest way possible. So, good luck with that.
Cheers, APC
blog: http://radiofreetooting.blogspot.com
Tags: Database
Similar Questions
-
Need help on the use of the PCI-6221 and c# to control three digital Port and an analog of entry
I need to send the digital output at three ports and then read an analog input voltage using the analog card PCI-6221.
I did a c# program to fight against it. I built four tasks altogether. Three tasks for three digital output ports and a single task for analog input.
How can I reduce the time?
Using my method, to 3.3ms in total. And it's slow.
I can build one task for three ports?
What is the best way to the control task to reduce the time of communication with the PC?
Is that possible to save a lot of analog reading entry in the memory of the DAQ hardware and then read it all together from the computer in order to reduce time consumption?
1 million thanks!
Hello
Hi Jin,
To answer your questions, Yes, you are able to configure a task of digital output to use three output ports and PCI-6221 has a buffer of memory FIFO aboard 4095 samples.
I would like to direct you to the example of NOR-DAQmx for c# files located in the following location on your computer
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0
Here, you will find predefined examples in c# that should give you a good idea of how to go about architecting your code to achieve the results you need.
There is also a useful help file which you will find by navigating to Start > all programs > National Instruments > NOR-DAQ > help of NOR-DAQmx .NET Framework 2.0
I hope that this answer is useful.
Best regards
Steve H
-
Need help with the use of beam between two subVis
Hi all
I have two inside a big Vi subVis that need to be connected one to the other.
It's a complicated thing, I already have many sons in the wholesale Vi, which will become a mess if I connect these two subVis line-by-line (there are nearly 16 lines between them).
I tried bundle but failed two times (basically I don't know how to connect the wires grouped source Subvi the slot - VI intended).
Could someone give me an idea? A simple example of VI would be useful.
Thank you
+ Kunsheng
You can get a lot of help on the Web site of NOR, too, as this document.
-
Need help with the use of conditions in the correspondence management
Hello
Could someone please provide me with any tutorials or tips on the use of conditions in the correspondence management.
Thank you.
-
I need help with the use of Class.forName and getResourceAsStream
I am trying to write code that will play an audio file. All references I found the point of code as follows...
Class dir = Class.forName("lib.testother"); InputStream input = dir.getResourceAsStream("/explosion.aac"); Player player = javax.microedition.media.Manager.createPlayer(input, "audio/aac"); player.realize(); VolumeControl vol = getVolumeControl(player); if (vol != null) { int volume = vol.getLevel(); vol.setLevel(volume); } player.prefetch(); player.start();
I use Blackberry JDE. Now, I'm supposed to put the audio file of the project?
Second, how then use the class.forName function? I put the audio file as a member of the project and then tried the above code and I get that it can not find lib.testother (which is the path of the code).
If I use getClass() instead of dir above, getResourceAsStream returns null.
Are there examples of the use of these or how to include the audio in your project... from end-to-end. The code snippet above is all I could find and it isn't enough.
THX
D
Check this thread:
-
Need help on the use of the Regex to parse the addresses
Let me start by saying three things:
- I suck at the regex
- I googled this and did not come with an answer, and
- I am in ColdFusion 10
I have a form with an AutoComplete entry that allows a user to enter street addresses (either in full as "123 Main St, Mayberry" or in the part "123 Main St" or "Main St" or "Main St, Mayberry".) I need to say if the user provided a street number or not at the beginning of the value they get into the entry. I'm testing the value of entry with this code:
< ReFind ("^([0-9]{1-5})", q) cfif >
<! - address begins with a number - >
< cfelse >
<! - address does not start with a number - >
< / cfelse >
q is the input value passed in my code for the AutoComplete feature.
x should be 0 (if the input value does not begin with a number) or a positive integer (if the input value starts with a number).
Basically, I just need to know if the input value begins with a five-digit.
I guess I could just do something like:
< Val (q) cfif >
I'm better use an expression, and if so, what I'm doing wrong with the one I tried?
-Carl V.
1.5 {} {1-5} is not.
Perhaps read my series of articles about CF regexes to help you get up to speed with them better:
http://adamcameroncoldfusion.blogspot.co.UK/2012/12/regular-expressions-in-ColdFusion-part .html
--
Adam
-
Need help with the use of GROUP BY in a select statement UNION
I am writing a query that allows to combine a legacy system that interfaces it is trial balance in the Oracle of R12 GL. It was only meant to continue for a month or two, but it is likely to continue for 6 months. Please Auditors Auditors, to provide proof that the system is in balance with Oracle GL. By my verification requirements, I need to make a full reconciliation from the month of conversion (life in the amount of date), then PTD for each month.
The legacy account is placed in attribute1 on the lines of the journals. Uses of the old system balancing segments that are also used on the platform in Oracle for this division, i.e., Procure-to-Pay has been cut over Oracle, but not everything yet. So, I can't count on the GL_BALANCES table for the info, I get from the JE_LINES.
My problem is not the only request for the month. But when I try to combine the queries with a Union, to aggregation of each measurement period in its own column, the group is necessary after each selected instruction rather than allowing me to put at the end of the UNION. (When I put the group by at the end of the UNION, I have the 'not one group' function)
So I get duplicate for each month of discrete measure accounts. When I duplicate in my Oracle database accounts, I can't count on the VLOOKUP function in excel to exactly match an account of inheritance. I know there are more sophisticated ways to provide this output, but I'm hoping to get this info in a simple query.
Thank you in advance for any advice you can provide
Example of data output (the goal for me is to get the two rows to appear as one based on common points on the LEGACY_ACCOUNT and the ORACLE ACCOUNT
The LEGACY ACCOUNT ORACLE ACCOUNT JUN_15 JUL_15 AUG_15 SEP_15 OCT_15 NOV_15 DEC_15 010000001109000003584 190-600552-1001-100231-000-0000-0000-0000 0 0 -242961.04 0 0 0 0 010000001109000003584 190-600552-1001-100231-000-0000-0000-0000 0 192588.02 0 0 0 0 0 Here is a simplified version of my code that returns both records. In my research, I had found a number of conversations where it has been shown that the group could be put at the end of the select statement. However, when I remove the group from the first select statement I get SQL error: ORA-00937: not a function of simple-group
Select
l.attribute1 LEGACY_ACCOUNT,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | COMBINATION OF C.SEGMENT8,
JUN_15 TO_NUMBER('0').
JUL_15, sum (NVL(l.accounted_dr,0.00)-NVL(l.accounted_cr,0.00)),
TO_NUMBER('0') AUG_15.
TO_NUMBER('0') SEP_15.
TO_NUMBER('0') OCT_15.
TO_NUMBER('0') NOV_15.
DEC_15 TO_NUMBER('0')
Of
b GL.gl_je_batches,
GL.gl_je_headers h,
GL.gl_je_lines l,
GL.gl_code_combinations c,
GL.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190 ', '191', '192', '193', '194', ' 195 ', ' 196',' 197', ' 198 ', ' 199',)
('200 ', '203', ' 205', '206 ', '330', '331', '332',' 333 ', ' 334',' 335', ' 336 ', ' 337')
and j.language = 'en '.
and h.PERIOD_NAME ("JUL-15'")
Group
l.attribute1,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | C.SEGMENT8
UNION
Select
l.attribute1 LEGACY_ACCOUNT,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | COMBINATION OF C.SEGMENT8,
JUN_15 TO_NUMBER('0').
TO_NUMBER('0') JUL_15.
AUG_15, sum (NVL(l.accounted_dr,0.00)-NVL(l.accounted_cr,0.00)),
TO_NUMBER('0') SEP_15.
TO_NUMBER('0') OCT_15.
TO_NUMBER('0') NOV_15.
DEC_15 TO_NUMBER('0')
Of
b GL.gl_je_batches,
GL.gl_je_headers h,
GL.gl_je_lines l,
GL.gl_code_combinations c,
GL.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190 ', '191', '192', '193', '194', ' 195 ', ' 196',' 197', ' 198 ', ' 199',)
('200 ', '203', ' 205', '206 ', '330', '331', '332',' 333 ', ' 334',' 335', ' 336 ', ' 337')
and j.language = 'en '.
and h.PERIOD_NAME ("AUG-15'")
Group
l.attribute1,
C.SEGMENT1: '-' | C.SEGMENT2: '-' | C.SEGMENT3: '-' | C.SEGMENT4: '-' | C.SEGMENT5: '-' | C.SEGMENT6: '-' | C.SEGMENT7: '-' | C.SEGMENT8
order by 1
Is there a good reason to make this period both as a series of trade unions? This looks like a classic pivot for me query. This will make a way through the tables and should get the desired results.
Select l.attribute1 legacy_account,
c.Segment1: '-' | c.Segment2: '-' | c.segment3: '-' | c.segment4: '-' |
c.segment5: '-' | c.segment6: '-' | c.segment7: '-' | combination of c.segment8,
sum (case when h.period_name = 'JUN-15'
then nvl(l.accounted_dr,0.00)-nvl(l.accounted_cr,0.00)
otherwise 0 end) jun_15,.
sum (case when h.period_name = 'JUL-15'
then nvl(l.accounted_dr,0.00)-nvl(l.accounted_cr,0.00)
otherwise 0 end) jul_15,.
- and similar to DEC - 15
GL.gl_je_batches b, gl.gl_je_headers h, gl.gl_je_lines l.
GL.gl_code_combinations c, gl.gl_je_sources_tl j
where b.je_batch_id = h.je_batch_id
and h.je_header_id = l.je_header_id
and l.code_combination_id = c.code_combination_id
and h.je_source = j.je_source_name
and c.segment1 ('190', '191', '192', '193', '194', '195',' 196', ' 197',
'198 ', '199', '200', '203', '205' ', 206',' 330 ', ' 331',
"332 ', '333', '334', '335',' 336 ', ' 337')
and j.language = 'en '.
and h.period_name (' Jun-15', ' 15 JUL', ' AUG-15'... "" ")
L.attribute1 group,
c.Segment1: '-' | c.Segment2: '-' | c.segment3: '-' |
c.segment4: '-' | c.segment5: '-' | c.segment6: '-' |
c.segment7: '-' | c.segment8
If you're on the 11G version of the database, you might want to look at the PIVOT keyword that will do the same thing in a more concise expression.
John
-
Need help on the use of Partition for a SELECT statement
-Hello everyone,
-This my request. I'm a junior developer of the APEX.
-database version is 11g version 4.0 apex
- and the results areDEFINE startmonth = "Aug 2012"; DEFINE endmonth = "Oct 2012"; WITH all_months AS ( SELECT ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM-1) AS which_month , ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM ) AS next_month from all_objects where rownum <= months_between(to_date('&endmonth','MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1)) ) , lt_event_type_a AS ( select event_type, active, e_id from lt_event_type where active = 1 ) , engagement_event_a as (SELECT * FROM engagement_event where active =1 ) select lt_ev.event_type,TO_CHAR (am.which_month, 'Mon YYYY') AS month, count(ce.engagement_id) as monthly_events_per_event_type from lt_event_type_a lt_ev left join engagement_event_a ev on lt_ev.event_type = ev.event_type left join court_engagement ce on ev.e_eng_id = ce.engagement_id and ce.court_name like '%' --will be filtered with a court_name parameter right join all_months am on ce.date_joined_court <= LAST_DAY(am.which_month) and (ce.date_terminated is null or ce.date_terminated > LAST_DAY(am.which_month) ) group by rollup(lt_ev.event_type, am.which_month) order by lt_ev.event_type, am.which_month ;
- but the condition is that I list all types of event in the search listEVENT_TYPE MONTH MONTHLY_EVENTS_PER_EVENT_TYPE -------------------------------------------------- ----------------- ----------------------------- Absent without leave Sep 2012 1 Absent without leave Oct 2012 1 Absent without leave 2 Court Appearance Sep 2012 2 Court Appearance Oct 2012 3 Court Appearance 5 Incentive granted Aug 2012 1 Incentive granted Sep 2012 2 Incentive granted Oct 2012 1 Incentive granted 4 Judicial direction Oct 2012 1 Judicial direction 1 Police report Sep 2012 2 Police report Oct 2012 2 Police report 4 Positive test Sep 2012 1 Positive test Oct 2012 1 Positive test 2 Sanction imposed Aug 2012 1 Sanction imposed Sep 2012 1 Sanction imposed Oct 2012 1 Sanction imposed 3 21 23 rows selected
-with a total number of events by event type for each month in a number of calendar months (user will select months like August 2012 or a range of month August 2012 - October 2012)
-the query above just list all the events (see table engagement_event) that have the date_join_court and date_terminated meets the required conditions.
-I wonder, is it possible to enumerate all types of event, then monthly for each event type with the total as
-I tried to use PARTTTION, but still, it does not produce the correct result,EVENT_TYPE MONTH MONTHLY_EVENTS_PER_EVENT_TYPE -------------------------------------------------- ----------------- ----------------------------- A very long long name Aug 2012 0 A very long long name Sep 2012 0 A very long long name Oct 2012 0 A very long long name Total 0 Absent without leave Aug 2012 0 Absent without leave Sep 2012 1 Absent without leave Oct 2012 1 Absent without leave Total 2 Court Appearance Aug 2012 0 Court Appearance Sep 2012 2 Court Appearance Oct 2012 3 Court Appearance Total 5 Incentive granted Aug 2012 1 Incentive granted Sep 2012 2 Incentive granted Oct 2012 1 ......
-Here's a version shortened the tables related to the query
-Thank you very much in advance.
-Thanks for reading this.--create lookup table for event type CREATE TABLE "LT_EVENT_TYPE" ("E_ID" NUMBER, "EVENT_TYPE" VARCHAR2(50 BYTE), "DATE_CREATED" DATE, "ACTIVE" NUMBER(2,0) DEFAULT 1 ) --create table court_engagement CREATE TABLE "COURT_ENGAGEMENT" ( "ENGAGEMENT_ID" NUMBER, "COURT_NAME" VARCHAR2(50 BYTE), "DATE_REFERRED" DATE, "DETERMINATION_HEARING_DATE" DATE, "DATE_JOINED_COURT" DATE, "DATE_TERMINATED" DATE, "TERMINATION_TYPE" VARCHAR2(50 BYTE), "DATE_CREATED" DATE, "ACTIVE" NUMBER(2,0) DEFAULT 1, "DEFENDANT_ID" NUMBER ) --create table engagement_event CREATE TABLE "ENGAGEMENT_EVENT" ( "EVENT_ID" NUMBER, "E_ENG_ID" NUMBER, "EVENT_TYPE" VARCHAR2(50 BYTE), "START_DATE" DATE, "END_DATE" DATE, "RELATED_SERVICE_ID" NUMBER, "DATE_CREATED" DATE, "ACTIVE" NUMBER(2,0) ) ------- Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (9,'A very long long name',to_date('02/11/12','DD/MM/RR'),0); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (6,'Excellent performance',to_date('27/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (7,'Sanction imposed',to_date('27/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (8,'Incentive granted',to_date('27/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (2,'Police report',to_date('25/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (1,'Court Appearance',to_date('25/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (3,'Judicial direction',to_date('25/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (4,'Positive test',to_date('25/09/12','DD/MM/RR'),1); Insert into LT_EVENT_TYPE (E_ID,EVENT_TYPE,DATE_CREATED,ACTIVE) values (5,'Absent without leave',to_date('27/09/12','DD/MM/RR'),1); ---------- REM INSERTING into COURT_ENGAGEMENT Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (13,'BBB',null,null,to_date('01/09/12','DD/MM/RR'),to_date('14/09/12','DD/MM/RR'),'Graduated',to_date('03/10/12','DD/MM/RR'),1,4); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (16,'BBB',null,null,to_date('15/09/12','DD/MM/RR'),to_date('07/11/12','DD/MM/RR'),'Did not Graduate',to_date('04/10/12','DD/MM/RR'),1,4); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (20,'AAA',null,null,to_date('07/10/12','DD/MM/RR'),null,'Did not Graduate',to_date('08/10/12','DD/MM/RR'),1,10); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (30,'BBB',null,null,to_date('04/09/12','DD/MM/RR'),null,null,to_date('05/11/12','DD/MM/RR'),1,19); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (21,'AAA',null,null,to_date('07/10/12','DD/MM/RR'),null,null,to_date('10/10/12','DD/MM/RR'),1,11); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (15,'AAA',null,null,to_date('02/10/12','DD/MM/RR'),null,null,to_date('03/10/12','DD/MM/RR'),1,3); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (23,'AAA',null,to_date('30/09/12','DD/MM/RR'),to_date('29/09/12','DD/MM/RR'),null,null,to_date('15/10/12','DD/MM/RR'),1,8); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (25,'AAA',null,to_date('10/10/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),null,null,to_date('18/10/12','DD/MM/RR'),1,15); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (27,'AAA',null,to_date('11/09/12','DD/MM/RR'),to_date('19/07/12','DD/MM/RR'),null,null,to_date('23/10/12','DD/MM/RR'),1,16); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (2,'BBB',to_date('01/10/12','DD/MM/RR'),to_date('01/10/12','DD/MM/RR'),to_date('29/09/12','DD/MM/RR'),null,'Did not Graduate',to_date('27/09/12','DD/MM/RR'),1,2); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (28,'AAA',null,to_date('03/10/12','DD/MM/RR'),to_date('01/10/12','DD/MM/RR'),null,null,to_date('24/10/12','DD/MM/RR'),1,17); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (17,'AAA',null,null,to_date('08/10/12','DD/MM/RR'),to_date('11/10/12','DD/MM/RR'),'Did not Graduate',to_date('04/10/12','DD/MM/RR'),1,6); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (18,'AAA',null,null,to_date('03/09/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),'Graduated',to_date('05/10/12','DD/MM/RR'),1,7); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (19,'BBB',null,null,to_date('01/10/12','DD/MM/RR'),to_date('09/10/12','DD/MM/RR'),'Graduated',to_date('05/10/12','DD/MM/RR'),1,9); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (22,'AAA',null,null,null,null,null,to_date('11/10/12','DD/MM/RR'),1,12); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (24,'AAA',to_date('08/10/12','DD/MM/RR'),to_date('01/10/12','DD/MM/RR'),to_date('04/10/11','DD/MM/RR'),null,'GangNam Style',to_date('17/10/12','DD/MM/RR'),1,14); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (26,'BBB',null,to_date('17/10/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),null,null,to_date('18/10/12','DD/MM/RR'),1,7); Insert into COURT_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TERMINATED,TERMINATION_TYPE,DATE_CREATED,ACTIVE,DEFENDANT_ID) values (29,'AAA',null,null,to_date('20/09/12','DD/MM/RR'),null,'GangNam Style',to_date('30/10/12','DD/MM/RR'),1,18); --------------- REM INSERTING into ENGAGEMENT_EVENT Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (8,18,'Incentive granted',to_date('01/10/12','DD/MM/RR'),null,null,to_date('05/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (21,2,'Police report',to_date('20/09/12','DD/MM/RR'),to_date('02/10/12','DD/MM/RR'),null,to_date('24/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (7,2,'Court Appearance',to_date('02/10/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),12,to_date('03/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (11,19,'Court Appearance',to_date('02/10/12','DD/MM/RR'),null,null,to_date('05/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (13,21,'Court Appearance',to_date('01/10/12','DD/MM/RR'),to_date('11/10/12','DD/MM/RR'),null,to_date('10/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (18,24,'Incentive granted',to_date('01/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),null,to_date('17/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (20,2,'Police report',to_date('16/09/12','DD/MM/RR'),to_date('18/09/12','DD/MM/RR'),10,to_date('23/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (24,17,'Court Appearance',to_date('16/10/12','DD/MM/RR'),null,null,to_date('25/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (26,30,'Judicial direction',to_date('01/10/12','DD/MM/RR'),null,null,to_date('06/11/12','DD/MM/RR'),0); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (9,2,'Court Appearance',to_date('01/09/12','DD/MM/RR'),to_date('15/09/12','DD/MM/RR'),10,to_date('05/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (12,20,'Judicial direction',to_date('07/10/12','DD/MM/RR'),null,null,to_date('08/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (17,24,'Sanction imposed',to_date('16/10/12','DD/MM/RR'),to_date('31/10/12','DD/MM/RR'),null,to_date('17/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (23,13,'Court Appearance',to_date('01/10/12','DD/MM/RR'),null,34,to_date('24/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (5,2,'Positive test',to_date('01/10/12','DD/MM/RR'),to_date('10/10/12','DD/MM/RR'),1,to_date('02/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (10,19,'Judicial direction',to_date('01/10/12','DD/MM/RR'),null,null,to_date('05/10/12','DD/MM/RR'),1); Insert into ENGAGEMENT_EVENT (EVENT_ID,E_ENG_ID,EVENT_TYPE,START_DATE,END_DATE,RELATED_SERVICE_ID,DATE_CREATED,ACTIVE) values (19,25,'Absent without leave',to_date('18/10/12','DD/MM/RR'),null,null,to_date('18/10/12','DD/MM/RR'),1);
AnnPlease give sample data and expected results.
Hope below is what you'd expect - yet, I would like to ask a clarification - you have a filter 'where active = 1.
And yet, you want these types in the output. I commented on this to my query filter.
You can change accordinglyWITH all_months AS ( SELECT ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM-1) AS which_month , ADD_MONTHS(to_date('&startmonth','MON YYYY'), ROWNUM ) AS next_month from all_objects where rownum <= months_between(to_date('&endmonth','MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1)) ) , lt_event_type_a AS ( select event_type, which_month,next_month from lt_event_type, all_months --where active = 1 ) , engagement_event_a as (SELECT * FROM engagement_event where active =1 ) select lt_ev.event_type,TO_CHAR (lt_ev.which_month, 'Mon YYYY') AS month, count(ce.engagement_id) as monthly_events_per_event_type from engagement_event_a ev left outer join court_engagement ce on ( ev.e_eng_id = ce.engagement_id and ce.court_name like '%' ) right outer join lt_event_type_a lt_ev on (ce.date_joined_court <= LAST_DAY(lt_ev.which_month) and (ce.date_terminated is null or ce.date_terminated > LAST_DAY(lt_ev.which_month) ) and lt_ev.event_type = ev.event_type ) group by rollup(lt_ev.event_type, lt_ev.which_month) order by lt_ev.event_type, lt_ev.which_month ; EVENT_TYPE MONTH MONTHLY_EVENTS_PER_EVENT_TYPE -------------------------------------------------- -------- ----------------------------- A very long long name Aug 2012 0 A very long long name Sep 2012 0 A very long long name Oct 2012 0 A very long long name 0 Absent without leave Aug 2012 0 Absent without leave Sep 2012 1 Absent without leave Oct 2012 1 Absent without leave 2 Court Appearance Aug 2012 0 Court Appearance Sep 2012 2 Court Appearance Oct 2012 3 Court Appearance 5 Excellent performance Aug 2012 0 Excellent performance Sep 2012 0 Excellent performance Oct 2012 0 Excellent performance 0 Incentive granted Aug 2012 1 Incentive granted Sep 2012 2 Incentive granted Oct 2012 1 Incentive granted 4 Judicial direction Aug 2012 0 Judicial direction Sep 2012 0 Judicial direction Oct 2012 1 Judicial direction 1 Police report Aug 2012 0 Police report Sep 2012 2 Police report Oct 2012 2 Police report 4 Positive test Aug 2012 0 Positive test Sep 2012 1 Positive test Oct 2012 1 Positive test 2 Sanction imposed Aug 2012 1 Sanction imposed Sep 2012 1 Sanction imposed Oct 2012 1 Sanction imposed 3 21 37 rows selected
-
Need help in the use of ctx_doc.themes)
Hello
I am new to oracle text, I have a table that has a column "e_id" (primary key) and text data in a column that is indexed context, now I want to find words appearing frequently in this column, so I use the ctx_doc.themes () procedure to achieve.
I created an array of result "ctx_themes" which has query_id, themes and columns of weight which will fill after executing the ctx_doc.themes proc (), but I am facing the error after execution of the ctx_doc.themes () procedure, so below please help me in the question of fixing.
Start
ctx_doc.set_key_type ('PRIMARY_KEY');
end;
Start
ctx_doc. Themes ('text_data_index', 'e_id', 'CTX_THEMES', 1, full_themes = > FALSE, num_themes = > 20);
end;
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error from the 1 in the command line:
Start
ctx_doc. Themes ('text_data_index', 'e_id', 'CTX_THEMES', 1, full_themes = > FALSE, num_themes = > 20);
end;
Error report:
ORA-20000: Oracle text error:
DRG-11445: rowid value is not valid: e_id
ORA-06512: at "CTXSYS. DRUE", line 160
ORA-06512: at "CTXSYS. CTX_DOC', line 210
ORA-06512: at line 2
20000 00000 - '%s '.
* Cause: The stored procedure 'raise_application_error.
We called that causes this error to be generated.
* Action: Fix the problem, as described in the error message or contact
the administrator of the application or the DBA for more information.
Thank you.If your name of the index myindex you can do:
select token_text, sum(token_count) as total from dr$myindex$i where token_type = 0 having sum(token_count) > 10 group by token_text order by total desc
Lists all of the chips with more than 10 occurrences.
Otherwise, I think that ctx_report.index_stats will list page high fees, but I'm not sure about this.
-
need help on the use of more than 28 number of connector in the components
Hai,
There are six Subvi in my utility and each output at least 8 of the indicators in the panes. In the main program, I need to collect them all and display. How is that possible?
Any ideas/suggestions?
Thank you
Mathan
cluster
-
Need help with the use of masks
I tried to use the quick selection tool to select areas of a photo in an adjustment layer, but it is not put at the disposal of the adjustment. The selection is done on the photo, but not in the adjustment layer box, as the selection brush only. I find that the selection brush is rather hard to use that you can't see exactly what you select as it only indicates in the layer box not on the photo itself.
I'm sure there is a better way to do it, but I'm not.
Can someone give me a hint or a clue, please?
It would be really useful to be able to use the quick selection tool, or one of the other selection tools to isolate parts of images for extra work, or to keep separate work on the rest of the image.
I know I'm not understanding something in Elements 8 page 129 + Barbara instructions.
You must select the box before making the adjustment layer, on the one hand. To change the area of the layer afterwards, you paint according to the instructions in Chapter 10. Selections have no effect on an existing adjustment layer.
-
Hello. I need help. I use Photoshop Elements 10 on my MAC, but is no longer reads discs. Can I download it from internet with my serial number original package? Thank you
Yes, from here:
-
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
-
I'm on Acrobat 10 for mac and I need help with the distribution of shape feature. Is there a way to change the registration e-mail download addressed to the? Currently all forms I create and then distribute may only be subjected to my email account... I appreciate any help!
Do not use the feature distribute the form. Instead of this, just put up a button "submit" and configure it to send email using any email address you want. Just add a button and set the action of the mouse upward on "Submit a form" and use a type mailto URL and specify that you want to send the full PDF. Then activate the reader of the document: where "Advanced/extended features in Adobe Reader" is located in Acrobat XI?
If you really want to use distribute the form for some reason, change the e-mail address in your preferences: Edit > Preferences > identity > Email address
-
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.
Maybe you are looking for
-
How to manage the photos of the IPhone from the Finder (IMac)
I have connected my IPhone 6 to my IMac and would expect to see in the Finder so that I can remove or transfer the pictures from my IPhone on any folder in the Finder. I get the connection to ITunes and IPhoto, but not in the Finder.
-
V. slow down Safari on Mac Mini, 8 GB, OS X El captain; 'cam.apple.Webkit.Webcontent close unexpectedly' a few times. Activity Monitor shows: Networking of Safari, Safari database content, Safari, See the auxiliary bridge and Mail Web Content (when t
-
Automatic after update 6.5 does not respect the ID_FLUX
Hello! Once the update to 6.5 automatic does not seem to respect the parameters of ID_FLUX. At least for recently added items, only it looks overall of all foods, no juice in the ID_FLUX defined in the config file
-
Printer suddenly stopped workgin no appearant reason.
Print title: printer prints original I have a destjet f4100 all-in-one and a laptop computer and my printer was working fine and then it just stopped tried for about 2 days to fix it please help me about to pull my hair out there is one on my printer
-
DATA IS MISSING, PLEASE RESTORE base SN master.idx
How to restore the file?