Need help to understand the query result
Hi gurus
I was reading one of the question here in this forum and its link is below:
I had some confusion related to this code and don't understand the logic of the out put, see query below:
Query
with sub_services as
(
Select su_seq 12323, 'HLR1' so_id, 1 seq Union double all the
Select su_seq 12323, "HLR2' so_id, seq 2 Union double all the
Select su_seq 12323, "A09" so_id, seq 3 of all the double union
Select su_seq 12333, "MO1" so_id, seq 4 Union double all the
Select su_seq 12333, "MO2' so_id, seq 5 Union double all the
Select su_seq 12333, "A09" so_id, 6 seq in union double all the
Select su_seq 12333, 'M0CR' so_id, seq 7 Union double all the
Select su_seq 12999, "LOL1' so_id, seq 8 Union double all the
Select su_seq 12999, "LOL2' so_id, seq 9 double
)
Select *.
of sub_services b
where exists (select 1 from sub_services
where su_seq = b.su_seq
and so_id = 'A09.
)
order by 2;
The query result
12323 A09 3
12333 6 A09
12323 HLR1 1
12323 HLR2 2
12333 M0CR 7
12333 4 MO1
12333 5 MO2
According to my understanding, the above query should return records in red only because of her is below command
It exists (select 1 from sub_services
where su_seq = b.su_seq
and so_id = 'A09.
but don't know why he's back 7 files, can someone help me understand the result...
It is query is functionally identical to the PL/SQL block, but much more effective.
declare
number of l_res;
Start
for line (select *)
sub_services) loop
Start
Select 1 from l_res
of sub_services
where su_seq = row.su_seq and
so_id = "A09" and
rownum = 1;
Essentially every row in the outer query are tested against him exists query. Given the correlation between two requests is based only on su_seq each line with a su_seq value returned by him is returned in the output.
Another way to think he uses instead a join condition. This query is equivalent to the query to exist
Select the main
of main sub_services
Join select (separate su_seq
of sub_services
where so_id = "A09") cond
We main.su_seq = cond.su_seq;
John
Tags: Database
Similar Questions
-
Need help to understand the network of vSphere environment
Hello
I need your help in understanding the network environment in vSphere. Please see the diagram and the text below:
NIC #1 - Management Port (access from client vsphere, vCenter server)
NIC #2 - Port of VMkernal (for iSCSI, vMotion, etc.)
NIC #3 -?
#4 – CARTE NETWORK INTERFACE?
Q1 how allow external users to access services over the ESX host? (for example, IIS, FTP, Exchange, NFS)
Q2, what will be the role of the other two network cards? Is it connected to the physical switch?
* Ask you all to please help me by sharing your knowledge / experience on the network portion, you have made in your environment as NIC how, what to do with that. *
I really need to understand the networking of concepts in vSphere, hope that your help!
Best regards: Yash
With an additional NIC with 2 port a general configuration might look like this:
vSwitch0 - vmnic0, vmnic1 (connected to different physical switches)
Network VMkernel management
VMotion VMkernel network (own IP network, own VLAN)
Better if they is configured as active / standby.
vSwitch1 - vmnic2, vmnic3 (connected to different physical switches)
Trade VM
vSwitch2 - vmnic4, vmnic5 (connected to different physical switches)
VMkernel iSCSI (own IP network, own VLAN)
Ideal if it is added to the component Multipath iSCSI, which is quite easy to vSphere 5.
-
Hi Experts,
I have a DB table has columns of more than 50.
I question this table, it should only return one line at any time. as sqldeveloper below image.
here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.
Eg: Key - Value
TASK_EVENT_ID - 1765
EVENT_TYPE - ASR_UPDATE
... etc until all of the columns in my table.
Experts please comment on that point, appreciate your help on this.
Thank you
-Vincent.
Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)
create or replace procedure (task_expired)
v_store_id in full,
v_task_action_id in full,
v_job_id in full
)
as
-[SNIP code...]
v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123'; -Your SQL here!
v_v_val VARCHAR2 (4000);
v_n_val NUMBER;
v_d_val DATE;
v_ret NUMBER;
c NUMBER;
d NUMBER;
col_cnt INTEGER.
f BOOLEAN;
rec_tab DBMS_SQL. DESC_TAB;
col_num NUMBER;
vAsString VARCHAR2 (4000);
BEGIN
-[SNIP code...]
Message_properties. CORRELATION: = "EDF_EVENT";
MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();
Msg.set_string_property ('queueName', ' shipping/csi_cth');
Msg.set_string_property ('MODE', 'CR8');
c: = DBMS_SQL. OPEN_CURSOR;
DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);
d: = DBMS_SQL. Execute (c);
DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);
1.col_cnt J
LOOP
CASE rec_tab (j) .col_type
WHEN 2 THEN
DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val); -Number
WHEN 12 CAN
DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val); -Date
ON THE OTHER
DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000); -Else treat as varchar2
END CASE;
END LOOP;
LOOP
v_ret: = DBMS_SQL. FETCH_ROWS (c);
WHEN OUTPUT v_ret = 0;
1.col_cnt J
LOOP
-Fetch each column to the correct data type based on coltype
CASE rec_tab (j) .col_type
WHEN 2 THEN
DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);
vAsString: = to_char (v_n_val);
WHEN 12 CAN
DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);
vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');
ON THE OTHER
DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);
vAsString: = v_v_val;
END CASE;
Msg.set_string_property (rec_tab (j) .col_name, vAsString);
END LOOP;
END LOOP;
DBMS_SQL. CLOSE_CURSOR (c);
DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',
Enqueue_options => Enqueue_options,
Message_properties => Message_properties,
Payload-online msg,
Msgid => Message_handle);
dbms_output.put_line ('00 Msgid =' |) Message_handle);
dbms_output.put_line('===Done=');
-[SNIP code...]
END;
/
-
Need help to build the query to group the lines
Hello all, hope someone can help me with this. I am working in Oracle 11 g PL/SQL 11.2.0.2.0.
I have the following query, which does exactly what I need, but I have been invited to consolidate the results in a specific way and I can't do that. First of all the existing request:
I was asked to do, is to display a number of facility_type who have each of the combinations of the 'DEAL' 33 areas. Installation types are strings. So an expected result would look something like:SELECT facility_id ,facility_type ,COUNT (CASE WHEN component_type = 'ATTACH2NDPARTY' THEN 1 END) AS ATTACH2NDPARTY ,COUNT (CASE WHEN component_type = 'ATTACH3RDPARTY' THEN 1 END) AS ATTACH3RDPARTY ,COUNT (CASE WHEN component_type = 'BREAKERGT' THEN 1 END) AS BREAKERGT ,COUNT (CASE WHEN component_type = 'BREAKERUSS' THEN 1 END) AS BREAKERUSS ,COUNT (CASE WHEN component_type = 'CAPACIFORMER' THEN 1 END) AS CAPACIFORMER ,COUNT (CASE WHEN component_type = 'CAPACITOR' THEN 1 END) AS CAPACITOR ,COUNT (CASE WHEN component_type = 'CEFIBEROPTIC' THEN 1 END) AS CEFIBEROPTIC ,COUNT (CASE WHEN component_type = 'ELASTIDISCONN' THEN 1 END) AS ELASTIDISCONN ,COUNT (CASE WHEN component_type = 'NETWORKPROTECT' THEN 1 END) AS NETWORKPROTECT ,COUNT (CASE WHEN component_type = 'POLE' THEN 1 END) AS POLE ,COUNT (CASE WHEN component_type = 'REACTOR' THEN 1 END) AS REACTOR ,COUNT (CASE WHEN component_type = 'RECLOSER3PUPOIL' THEN 1 END) AS RECLOSER3PUPOIL ,COUNT (CASE WHEN component_type = 'RECLOSERTSUP' THEN 1 END) AS RECLOSERTSUP ,COUNT (CASE WHEN component_type = 'RECLSR3PCNTRL3A' THEN 1 END) AS RECLSR3PCNTRL3A ,COUNT (CASE WHEN component_type = 'RECLSR3PCNTRLNT' THEN 1 END) AS RECLSR3PCNTRLNT ,COUNT (CASE WHEN component_type = 'RECLSRTSCNTRL' THEN 1 END) AS RECLSRTSCNTRL ,COUNT (CASE WHEN component_type = 'RECTIFIERUSS' THEN 1 END) AS RECTIFIERUSS ,COUNT (CASE WHEN component_type = 'REGULATORJOINT' THEN 1 END) AS REGULATORJOINT ,COUNT (CASE WHEN component_type = 'REGULATOROH' THEN 1 END) AS REGULATOROH ,COUNT (CASE WHEN component_type = 'REGULATORUSS' THEN 1 END) AS REGULATORUSS ,COUNT (CASE WHEN component_type = 'RMS' THEN 1 END) AS RMS ,COUNT (CASE WHEN component_type = 'SPLICEPRIMARY' THEN 1 END) AS SPLICEPRIMARY ,COUNT (CASE WHEN component_type = 'STREETLIGHT' THEN 1 END) AS STREETLIGHT ,COUNT (CASE WHEN component_type = 'SWITCHSCADA' THEN 1 END) AS SWITCHSCADA ,COUNT (CASE WHEN component_type = 'TAPCHANGER' THEN 1 END) AS TAPCHANGER ,COUNT (CASE WHEN component_type = 'TRAFFICSIGNAL' THEN 1 END) AS TRAFFICSIGNAL ,COUNT (CASE WHEN component_type = 'TRANSF480' THEN 1 END) AS TRANSF480 ,COUNT (CASE WHEN component_type = 'TRANSFGROUND' THEN 1 END) AS TRANSFGROUND ,COUNT (CASE WHEN component_type = 'TRANSFISOLATION' THEN 1 END) AS TRANSFISOLATION ,COUNT (CASE WHEN component_type = 'TRANSFOH' THEN 1 END) AS TRANSFOH ,COUNT (CASE WHEN component_type = 'TRANSFUG' THEN 1 END) AS TRANSFUG ,COUNT (CASE WHEN component_type = 'TRANSFURD' THEN 1 END) AS TRANSFURD ,COUNT (CASE WHEN component_type = 'TRANSFUSS' THEN 1 END) AS TRANSFUSS FROM (SELECT fy.id AS facility_id ,fy.external_facility_id ,fy.flty_facility_type as facility_type ,cp.cpty_component_type as component_type FROM facilities fy LEFT OUTER JOIN components cp ON cp.facility_id= fy.id ORDER BY fy.id DESC) GROUP BY facility_id, facility_type
FACILITY_TYPE | ATTACH2NDPARTY | ATTACH3RDPARTY | BREAKERGT | ... TRANSFUSS | COUNTY
MANHOLE X X 10
MANHOLE X X 22
POLE X X 5
and so on. Because there are 33 BUSINESS areas and therefore 33! possible combinations, I was thinking about a sort of loop would achieve the desired result, but I'm stuck and could really use a shot in the arm. Any help will be appreciated and obtained points! Thanks in advance.select facility_type ,ATTACH2NDPARTY ,ATTACH3NDPARTY -- and so on , count(*) cnt from ( --your query SELECT facility_id ,facility_type ,COUNT (CASE WHEN component_type = 'ATTACH2NDPARTY' THEN 1 END) AS ATTACH2NDPARTY ,COUNT (CASE WHEN component_type = 'ATTACH3RDPARTY' THEN 1 END) AS ATTACH3RDPARTY ,COUNT (CASE WHEN component_type = 'BREAKERGT' THEN 1 END) AS BREAKERGT ... ) group by facility_type ,ATTACH2NDPARTY ,ATTACH3NDPARTY -- and so on like in projection
-
Need help to write the query to extract the value of the previous row - Lag not help
HelloI created follwing table.
Create table test
(number of fi,
number of fo_fv
number of jup_fv
action varchar2 (10)
);
insert into TEST(1,1,1,'LOAD');
Insert into TEST (2, NULL, 2, "ROLL");
insert into TEST(3,,3,'ROLL');
insert into TEST(4,,4,ROLL);
insert into TEST (5,2,5,LOAD);
I want the result of the query as below:
FI FO_FV JUP_FV ACTION
-------------------------------------------------------------------
1 1 1 LOAD
2 1 2 ROLL
3 1 3 ROLL
4 1 4 ROLL
5 2 5 LOAD
Help, please.
Thank you!
SQL > select fi
2, max (fo_fv) on fo_fv (fi control)
3, jup_fv
4, action
5 of the test;FI FO_FV JUP_FV ACTION
---------- ---------- ---------- ----------
1 1 1 LOAD
ROLL OF 2 1 2
3 1 3 ROLL
4 1 4 ROLL
5 2 5 LOADOR
SQL > select *.
2 test
model 3
Dimension 4 by (fi)
5 measures (fo_fv, jup_fv, action)
6 rules
7 (
8 fo_fv [any] = case when fo_fv [cv ()] is null
9. can fo_fv [cv () - 1]
10 fo_fv [cv () else]
11 end
(12);FI FO_FV JUP_FV ACTION
---------- ---------- ---------- ----------
1 1 1 LOAD
ROLL OF 2 1 2
3 1 3 ROLL
4 1 4 ROLL
5 2 5 LOAD -
Need help to understand the security sandbox problem after changing Web host
I am trying to switch my Web host 1 & 1 shared hosting to an IP address with a small company that specializes in Drupal sites and doesn't know much about flash dedicated.
1 & 1 is always the Registrar for my domain, but I 'tidied up' YourGods.com on holistic servers and "stressed" my site DomainNameServers holistic rather than servers 1 & 1.
After doing this, my Flash site (which is based on the Gaia framework) has stopped working, and the Flashplayer debugger, gave me the following errors:
Error: Cannot load the xmlsocket://127.0.0.1:5800 policy file
Error: Request for resource at the xmlsocket://127.0.0.1:5800 by the http://www.yourgods.com/bin/main.swf applicant failed because the server is not reachable.
Security Sandbox Violation
Connection to 127.0.0.1:5800 broken - not allowed to http://www.yourgods.com/bin/main.swf
Someone to help me on another thread thought 127.0.0.1:5800 could mean that the problem had to do with my ways and I tried to access something on my local computer, rather than being a matter of cross-domain standard where one server was attempting to access files on another server without report.
If anyone can clarify this?
I googled 127.0.0.1:5800 and found some stuff on the loops between a server and the original computer, but I don't really know how to put it all together.
Is it possible (with the flash debugger or other software) to step through my code actionscript with periodic break points so I can understand which line is causing the problem?
Or a way to find out if there is a problem between holistic and my local or holistic computer and the 1 & 1 servers?
Thanks for any help.
127.0.0.1 is your local development server. It seems that your application is trying to access this IP address and unable to. You need to look at the source and find where it accesses to this and replace it with the IP address.
-
Need help to highlight the query text in the document
Hi, I'm trying to load files into the blob column and try to create the text index.
I need to query the blob column in the original glass by a string, which should return the relevant documents with the query string, highlighted with some color.
Can you please help me with an example of the above.
Thanks in advance.SCOTT@orcl_11gR2> -- table: SCOTT@orcl_11gR2> CREATE TABLE document_tab 2 (document_col BLOB) 3 / Table created. SCOTT@orcl_11gR2> -- procedure to load documents: SCOTT@orcl_11gR2> CREATE OR REPLACE PROCEDURE load_document 2 (p_dir IN VARCHAR2, 3 p_file IN VARCHAR2) 4 AS 5 v_blob BLOB; 6 v_bfile BFILE; 7 BEGIN 8 INSERT INTO document_tab (document_col) 9 VALUES (EMPTY_BLOB()) 10 RETURNING document_col INTO v_blob; 11 v_bfile := BFILENAME (UPPER (p_dir), p_file); 12 DBMS_LOB.FILEOPEN (v_bfile, DBMS_LOB.LOB_READONLY); 13 DBMS_LOB.LOADFROMFILE (v_blob, v_bfile, DBMS_LOB.GETLENGTH (v_bfile)); 14 DBMS_LOB.FILECLOSE (v_bfile); 15 END load_document; 16 / Procedure created. SCOTT@orcl_11gR2> SHOW ERRORS No errors. SCOTT@orcl_11gR2> -- load documents (directory and files must be on server, not client): SCOTT@orcl_11gR2> CREATE OR REPLACE DIRECTORY my_dir AS 'c:\my_oracle_files' 2 / Directory created. SCOTT@orcl_11gR2> BEGIN 2 load_document ('my_dir', 'banana.pdf'); 3 load_document ('my_dir', 'english.doc'); 4 load_document ('my_dir', 'sample.txt'); 5 END; 6 / PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> -- confirm files were loaded: SCOTT@orcl_11gR2> SELECT DBMS_LOB.GETLENGTH (document_col) 2 FROM document_tab 3 / DBMS_LOB.GETLENGTH(DOCUMENT_COL) -------------------------------- 222824 22016 60 3 rows selected. SCOTT@orcl_11gR2> -- text index: SCOTT@orcl_11gR2> CREATE INDEX document_idx 2 ON document_tab (document_col) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 / Index created. SCOTT@orcl_11gR2> -- confirm files were indexed: SCOTT@orcl_11gR2> SELECT COUNT(*) FROM dr$document_idx$i 2 / COUNT(*) ---------- 319 1 row selected. SCOTT@orcl_11gR2> -- function to return highlighted document: SCOTT@orcl_11gR2> CREATE OR REPLACE FUNCTION your_markup 2 (p_index_name IN VARCHAR2, 3 p_textkey IN VARCHAR2, 4 p_text_query IN VARCHAR2, 5 p_plaintext IN BOOLEAN DEFAULT TRUE, 6 p_tagset IN VARCHAR2 DEFAULT 'HTML_DEFAULT', 7 p_starttag IN VARCHAR2 DEFAULT '*', 8 p_endtag IN VARCHAR2 DEFAULT '*', 9 p_key_type IN VARCHAR2 DEFAULT 'ROWID') 10 RETURN CLOB 11 AS 12 v_clob CLOB; 13 BEGIN 14 CTX_DOC.SET_KEY_TYPE (p_key_type); 15 CTX_DOC.MARKUP 16 (index_name => p_index_name, 17 textkey => p_textkey, 18 text_query => p_text_query, 19 restab => v_clob, 20 plaintext => p_plaintext, 21 tagset => p_tagset, 22 starttag => p_starttag, 23 endtag => p_endtag); 24 RETURN v_clob; 25 END your_markup; 26 / Function created. SCOTT@orcl_11gR2> SHOW ERRORS No errors. SCOTT@orcl_11gR2> -- query that returns highlighted document: SCOTT@orcl_11gR2> VARIABLE string VARCHAR2(100) SCOTT@orcl_11gR2> EXEC :string := 'test AND demonstration' PL/SQL procedure successfully completed. SCOTT@orcl_11gR2> SELECT your_markup ('document_idx', ROWID, :string) 2 AS highlighted_text 3 FROM document_tab 4 WHERE CONTAINS (document_col, :string) > 0 5 /
HIGHLIGHTED_TEXT
--------------------------------------------------------------------------------
It is a document test of demonstration to highlight.1 selected line.
Scott@orcl_11gR2 >
-
Need help to understand the collection
Hi all
I'm trying to understand the concept of collection, but when I look in the documentation that exists in google.ca, then, it seems very confusing. If someone suggest me or send me some simple examples and good collection and I really appreciate it. Thanks in advance.
Concerning
Line
Thanks for the explanation, could you please explain what does really to take care of the index as a whole and clause varchar2 and if yes then what condition we use varchar2 index and in which condition we use index as a whole, be we just use index by integer in our daily practice. Really appreciate your response. Thank you
Generally if you use collections, especially PL/SQL-only collections, your architecture is probably wrong. Collections are rarely necessary, but are often USED in the mistaken belief that they will help performance.
The use of the collections usually DEGRADES performance, sometimes severely, and they are often used in a way that is not scalable. You should avoid using collections if possible.
So don't use the collections AT ALL in your 'common practice '.
For the rare cases where there is to use an array associative index type to use depends on the data type of the element that you will use for the index. If you plan to use a string, then you use INDEX OF VARCHAR2. If you plan to use an integer, then you use INDEX BY PLS_INTEGER.
What type of index to use has NOTHING to do with performance.
One of the WORST mistakes developers make is to use an associative array as target of a BULK COLLECT INTO instead of using a TABLE IMBRIQUEE. Collection in bulk is more often used in a FORALL statement so that the elements are accessible only in the order. Useds "indexed" access with associative arrays isn't even necessary or used.
-
Hello
I got the info from a table named X.
Col1 Col2 Col3 Col4
IT01 20 01 X
IT01 20 50 X
IT01 30 01 X
IT01 30 50 X
If the value of "X" all 4 combinations of Col2 and Col3, Col4 the result should be displayed as
Col1, Col4
IT01 X
If the actual values are as
Col1 Col2 Col3 Col4
IT01 20 01 X
IT01 20 50 X
IT01 30 01 X
30 50 IT01 Y
The result should be displayed as
Col1, Col4
IT01 Y
How will generate the query for this?
Thank you
Thomas Titus
Published by: Titus Thomas on April 20, 2010 14:48Try this:
with test_tab as (select 'ITO1' Col1, 20 Col2, 01 Col3, 'X' Col4 from dual union all select 'ITO1' Col1, 20 Col2, 50 Col3, 'X' Col4 from dual union all select 'ITO1' Col1, 30 Col2, 01 Col3, 'X' Col4 from dual union all select 'ITO1' Col1, 30 Col2, 50 Col3, 'X' Col4 from dual union all select 'ITO2' Col1, 20 Col2, 01 Col3, 'X' Col4 from dual union all select 'ITO2' Col1, 20 Col2, 50 Col3, 'X' Col4 from dual union all select 'ITO2' Col1, 30 Col2, 01 Col3, 'X' Col4 from dual union all select 'ITO2' Col1, 30 Col2, 50 Col3, 'Y' Col4 from dual) --- end of mimicking your data; use SQL below: select col1, max(col4) col4 from test_tab group by col1; COL1 COL4 ---- ---- ITO2 Y ITO1 X
-
Need help to resolve the query by using analytic functions
Hello
I need help to solve this problem, I tried an analytical function but could not solve the problem.
I have three table as illustrated below the table is filled with a flat file. The records are arranged sequentailly based on the name of the file.
The first record of the game based on EIN goes to TAB_RCE
the following records then goes to TAB_RCW
and last save of the game based on EIN goes to the RCT table
How can I make groups and
assign a
EIN * 12345 * line number * 02, 03, 04 * in the table TAB_RCW and * 05 * in the table TAB_RCT
EIN * 67890 * line number * 07, 08, 09,10 * in the table TAB_RCW and * 11 * in the table TAB_RCT
and so on...
Thank you
Rajesh
TAB RCE_--------------------------------------------------------------
LineNumber EIN FILENAME TYPE
-----
01 12345 ABC NCE. TXT
06 67890 ABC NCE. TXT
12 76777 ABC NCE. TXT
-----
TAB_RCW
-----
LineNumber TYPE SSN FILENAME
-----
02 22222 ABC RCW. TXT
03 33333 ABC RCW. TXT
04 44444 ABC RCW. TXT
07 55555 ABC RCW. TXT
08 66666 ABC RCW. TXT
09 77777 ABC RCW. TXT
10 88888 ABC RCW. TXT
13 99998 ABC RCW. TXT
14 99999 ABC RCW. TXT
-----
TAB_RCT
-----
NAME OF THE FILE OF TYPE LINENUMBER
-----
RCT 05 ABC. TXT
RCT 11 ABC. TXT
RCT 15 ABC. TXT
-----SQL> with TAB_RCE as ( 2 select 'RCE' rtype,'01' linenumber, '12345' EIN,'ABC.TXT' FILENAME from dual union all 3 select 'RCE','06','67890','ABC.TXT' from dual union all 4 select 'RCE','12','76777','ABC.TXT' from dual 5 ), 6 TAB_RCW as ( 7 select 'RCW' rtype,'02' linenumber,'22222' ssn,'ABC.TXT' FILENAME from dual union all 8 select 'RCW','03','33333','ABC.TXT' from dual union all 9 select 'RCW','04','44444','ABC.TXT' from dual union all 10 select 'RCW','07','55555','ABC.TXT' from dual union all 11 select 'RCW','08','66666','ABC.TXT' from dual union all 12 select 'RCW','09','77777','ABC.TXT' from dual union all 13 select 'RCW','10','88888','ABC.TXT' from dual union all 14 select 'RCW','13','99998','ABC.TXT' from dual union all 15 select 'RCW','14','99999','ABC.TXT' from dual 16 ), 17 TAB_RCT as ( 18 select 'RCT' rtype,'05' linenumber,'ABC.TXT' FILENAME from dual union all 19 select 'RCT','11','ABC.TXT' from dual union all 20 select 'RCT','15','ABC.TXT' from dual 21 ) 22 select rtype, 23 last_value(ein ignore nulls) over(partition by filename order by linenumber) ein, 24 linenumber, 25 ssn 26 from ( 27 select rtype, 28 linenumber, 29 ein, 30 to_char(null) ssn, 31 filename 32 from TAB_RCE 33 union all 34 select rtype, 35 linenumber, 36 to_char(null) ein, 37 ssn, 38 filename 39 from TAB_RCW 40 union all 41 select rtype, 42 linenumber, 43 to_char(null) ein, 44 to_char(null) ssn, 45 filename 46 from TAB_RCt 47 ) 48 order by linenumber 49 / RTY EIN LI SSN --- ----- -- ----- RCE 12345 01 RCW 12345 02 22222 RCW 12345 03 33333 RCW 12345 04 44444 RCT 12345 05 RCE 67890 06 RCW 67890 07 55555 RCW 67890 08 66666 RCW 67890 09 77777 RCW 67890 10 88888 RCT 67890 11 RTY EIN LI SSN --- ----- -- ----- RCE 76777 12 RCW 76777 13 99998 RCW 76777 14 99999 RCT 76777 15 15 rows selected. SQL>
SY.
-
Buy the new iMac and need help to understand the new options
Replacement of the motherboard of my 2009 end iMac is unaffordable, so I'm looking to buy a new one. But the 'talk' has my head swimming. I know I want a 21.5 inches and that's it. My biggest complaint to my death machine now it was slow. However, I attributed as uVerse (Internet) and not my Mac; Maybe I was wrong?
My previous was 33. GHz Intel Core 2 Duo 8 GB, DDR3, a SATA 1 TB disk. I'm an independent publisher, it's full of documents, PDF files and tons of photos but apart from that... I did not use the design software (although I want to go in this area) and pretty much could have several tabs in Safari, Facebook, Word and Adobe open at the same time... nothing too taxing.
So what do I need? I read everything I can find and I can't yet answer that question!
Do I need a Fusion player (and what it is anyway)?
What is the difference between a Fusion of 1 TB drive and a 256 GB or 512 GB flash drive?
If I get in InDesign or Quark, Photoshop, will it take more RAM so I should just go with 16 now?
Is the standard 2.7 GHz quad-core i5 processor fast enough, or should I switch to 2.9 or even the quad of 3.1 GHz with i7 processor? (allowing it to run faster, more RAM or higher processor?)
Any advice or the definition terms would be MOST appreciated! Thank you!
In your situation, I would buy the 1 TB drive fusion, quad-core processor i5 2.7 GHz with 16 GB of RAM. The RAM is perhaps an exaggeration, but you cannot add it later these days so I think 16 GB is safe. You should get a noticeable performance gain compared to your current system.
IME, most of the complaints "My Mac is slow" result of naïve users be swindled by adding the third "crapware" such as antivirus programs, "cleaners", "optimizers" and "extensions". After a report of EtreCheck for your current computer see if it is the problem.
It is possible that adding an SSD in your current setup will give you the extra boost you are looking for, but if you use the machine to make a living, I'd be inclined to think that 7 years is old enough. Be sure to ask your accountant and covers the cost of your new machine against the tax.
Please take the opportunity to review your backup strategy. When it's your life on the line, you must have at least two external drives for backups. Keep one off-site and on-site, and rotate each week.
C.
-
need help to understand the ACLs and security levels
I use static NAT (nat (inside, outside) static interface) between a single host inside for the DHCP address used on the external interface. The inside interface has the security level of 100, and the outside has the security level of 0. My understanding is that for connections with State, I wouldn't need the ACL. However, nothing works unless I set up an ACL (for example, right now I have a global allow rule). What Miss me?
Even if you 'dormant', but you still have the access list applied on the interface which, by default, will have the "deny ip any any" implicitly at the end of the access eventhough list you have existing line "inactive".
To remove access from the inside of the interface completely list, you must remove the following line:
inside_access_out access to the interface inside group
-
Need help to understand the code
Hi allI was reading an article related to fill the list item, but I don't get some codes (see the code in red), I really appreciate if someone explain it to me.
Thanks in advance
link real =Oracle application development: how to dynamically populate a Pop list?
Code
DECLARE
group_id RecordGroup;
GroupName varchar2 (10): = 'abc ';
status NUMBER;
BEGIN
group_id: = find_group (group_name);
If not id_null (group_id) then
delete_group (group_id);
end if;
group_id: = Create_Group_From_Query (groupname, 'select DNAME, TO_CHAR (DEPTNO) Department');
/ * Select statement must have two column * /.
status: = Populate_Group (group_id);
Populate_List('DUMMY.) TXT_LIST', group_id);
END;
Concerning
Line
POPULATE_GROUP is a function (not a procedure) and must be called in this way.
State could be verified - see forms help:
"After a successful query, POPULATE_GROUP returns a 0 (zero)."
Kind regards
Zlatko
-
need help to understand the compatibility with video cards
I recently bought a HP Pavilion a6742p Desktop PC I have no idea what graphics cards, it supports (trying to upgrade). Check the manufacturers page, but I couldn't understand anything either here is the link
http://h10025.www1.HP.com/ewfrf/wc/product?LC=en&DLC=en&CC=HK&lang=en&product=3875703
insaneaim wrote:
THX but which manufacturers video card companies take in charge of hp?
HERE, none of them. I recommend the following manufacturers, XFX, BFG, EVGA, Sapphire & PNY, in that order. These recommendations are based on personal knowledge, as well as several years of hanging around in the forums of enthusiasts.
-
Hello
Since last week, I've known several BSOD. Some have referred to a memory problem, but after you run a memory diagnostic seveal times, I still have to find the problem.
Since last week, here is the link to the minidump files.
https://onedrive.live.com/redir?RESID=2FA3EA1D7C87B0CD! 471 & authkey =! AA05X_X_DXaEOgc & ithint = % 2cdmp
Thanks in advance for any help you can give.
These accidents were related to the corruption of memory (probably caused by a driver).Please run these tests to check your memory and find which driver is causing the problem.
If you're overclocking (pushing components beyond their design) return you to default at least until the crash is resolved. If you don't know what it is that you're probably not overclocking.
Since then, it is more likely to be a pilot run everything first.1-Driver Verifier (for full instructions, see our wiki here)
If the auditor does not have the issue we move to it.2-Memtest. (You can learn more about running memtest here)
If you cannot start after you have enabled the auditor reboot in safe modeIn Vista & victory (F8)
Co-written by JMH3143.
Microsoft (R) Windows debug 6.3.9600.17029 AMD64 Version
Copyright (c) Microsoft Corporation. All rights reserved.Loading file Dump [C:\Users\Ken\Desktop\New folder\080714-32011 - 01.dmp]
The mini kernel dump file: only registers and the trace of the stack are availableSymbol of validation of the path summary *.
Location of response time (ms)
Deferred srv * C:\Symbols* http://msdl.microsoft.com/download/symbols
Symbol search path is: srv * C:\Symbols* http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 7 Kernel Version 7601 (Service Pack 1) MP (4 procs) free x 64
Product: WinNt, suite: TerminalServer personal TerminalServer
By: 7601.18409.amd64fre.win7sp1_gdr.140303 - 2144
Computer name:
Kernel base = 0xfffff800'03660000 PsLoadedModuleList = 0xfffff800'038 has 3890
The debugging session: Thu Aug 7 14:15:03.891 2014 (UTC - 04:00)
System Uptime: 0 days 4:02:55.202
Loading the kernel symbols
...............................................................
................................................................
........................
Loading user symbols
Loading unloaded module list
.......
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************Use! analyze - v to obtain detailed debugging information.
Bugcheck 50, {fffff6e400084040, 0, fffff800036e7f42, 5}
Could not read the name of the problem driver
Probably caused by: memory_corruption (nt! MiUpdateWsle + 122)Follow-up: MachineOwner
---------0: kd >! analyze - v
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************PAGE_FAULT_IN_NONPAGED_AREA (50)
Invalid system memory was referenced. This cannot be protected by try-except,
It must be protected by a probe. In general, the address is simple bad or it
pointing to freed memory.
Arguments:
Arg1: fffff6e400084040, memory referenced.
Arg2: 0000000000000000, value 0 = read operation, 1 = write operation.
Arg3: fffff800036e7f42, if not zero, the address of the instruction that refers to bad memory
address.
Arg4: 0000000000000005, (reserved)Debugging information:
------------------Could not read the name of the problem driver
READ_ADDRESS: GetPointerFromAddress: unable to read from fffff8000390d100
GetUlongFromAddress: cannot read fffff8000390d1c0
fffff6e400084040 non paged poolFAULTING_IP:
NT! MiUpdateWsle + 122
fffff800'036e7f42 498b 00 mov rax, qword ptr [r8]MM_INTERNAL_CODE: 5
CUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: WIN7_DRIVER_FAULT
BUGCHECK_STR: 0 X 50
Nom_processus: vsserv.exe
CURRENT_IRQL: 0
ANALYSIS_VERSION: 6.3.9600.17029 (debuggers (dbg). 140219-1702) amd64fre
TRAP_FRAME: fffff8800970b550-(.trap 0xfffff8800970b550)
NOTE: The frame trap does contain not all registers.
Some registry values can be set to zero or incorrect.
Rax = 0000098000000000 rbx = 0000000000000000 rcx = 0000000000000a0f
RDX = 0000c 80010808009 rsi = 0000000000000000 rdi = 0000000000000000
RIP = fffff800036e7f42 rsp = fffff8800970b6e0 rbp = 0000000000000c 70
R8 = fffff6e400084040 r9 = 0000000fffffffff r10 = fffff70001080488
R11 = 000000000000116e r12 = 0000000000000000 r13 = 0000000000000000
R14 = 0000000000000000 r15 = 0000000000000000
iopl = 0 nv in pe of na EI ng nz cy
NT! MiUpdateWsle + 0 x 122:
fffff800'036e7f42 498b 00 mov rax, qword ptr [r8] ds:fffff6e4'00084040 =?
Reset the default scopeLAST_CONTROL_TRANSFER: from fffff800037525b3 to fffff800036d5bc0
STACK_TEXT:
"fffff880 '0970b3e8 fffff800' 037525b 3: 00000000'00000050 fffff6e4 ' 00084040 00000000 00000000' fffff880 ' 0970b 550: nt! KeBugCheckEx
fffff880 '0970b3f0 fffff800' 036d3cee: 00000000 00000000' fffff6e4 ' 00084040 fffffa80' 04122600 fffffa80'00000028: nt! : FNODOBFM: 'chain' + 0 x 43801
fffff880 '0970b 550 fffff800' 036e7f42: fffffa80'00000028 00000000'00000000 00000000'00000000 00000000'00000000: nt! KiPageFault + 0x16e
fffff880 '0970b6e0 fffff800' 036f41bd: 00000000' 00000a0f 00000000' 23ba4548 fffff700 ' 01080000 fffff700' 01080000: nt! MiUpdateWsle + 0 x 122
fffff880 '0970b 750 fffff800' 036f39df: 20f00001 '63eb7025 00000001' 63eb7121 fffffa80' 04e10200 00000000' 00000000: nt! MiCompleteProtoPteFault + 0x2cd
fffff880 '0970b7e0 fffff800' 036f24f3: 00000000' 0016bd60 000007fe'fbef34ac fffff683 'ff7df798 fffffa80' 07f6cd08: nt! MiResolveProtoPteFault + 0x1cf
fffff880 '0970b 870 fffff800' 036e2179: 00000001 00000000' 000007fe 'fbef34ac fffffa80' 09a44af0 00000000' 00000000: nt! MiDispatchFault + 0x1c3
"fffff880 '0970b 980 fffff800' 036d3cee: 00000000 ' 00000008 000007fe ' fbef34ac fffff880'00000001 00000000' 0863fe50: nt! MmAccessFault + 0 x 359
fffff880 '0970bae0 000007fe' fbef34ac: 00000000'00000000 00000000'00000000 00000000'00000000 00000000'00000000: nt! KiPageFault + 0x16e
00000000' 0863fb68 00000000'00000000: 00000000'00000000 00000000'00000000 00000000'00000000 00000000'00000000: 0x000007fe'fbef34acSTACK_COMMAND: kb
FOLLOWUP_IP:
NT! MiUpdateWsle + 122
fffff800'036e7f42 498b 00 mov rax, qword ptr [r8]SYMBOL_STACK_INDEX: 3
SYMBOL_NAME: nt! MiUpdateWsle + 122
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: nt
DEBUG_FLR_IMAGE_TIMESTAMP: 531590fb
IMAGE_VERSION: 6.1.7601.18409
Nom_image: memory_corruption
FAILURE_BUCKET_ID: X64_0x50_nt! MiUpdateWsle + 122
BUCKET_ID: X64_0x50_nt! MiUpdateWsle + 122
ANALYSIS_SOURCE: KM
FAILURE_ID_HASH_STRING: km:x64_0x50_nt! miupdatewsle + 122
FAILURE_ID_HASH: {adc90a39-f60f-e57a-aeeb-d2a428d2eb03}
Follow-up: MachineOwner
---------
Maybe you are looking for
-
Satellite X 200 - 21 d - two unknown devices after installing Vista 64 bit
I just newly installed (my Vista 64-bit), my laptop 21(d) and noticed that in Device Manager, there is option - hidden features, then 2 new unknown devices appear.What are these devices and where to find the right driver for it?
-
application source Event viewer event id 1000 error
Dear, I am running windows server 2008 r2 in my business and recently started Active Directory to freezes from time to time, and im not able to use it, below that is the event that is logged in the event viewer: can you please help as im not able to
-
Reinstall Outlook Express 6.0 or fix
My Outlook Express 6.0 login password doesn't work anymore. Have a new password for web mail. I can now send and receive emails via Webmail. But the old mails stored in Outlook Express are missing. I can't get Outlook Express. How can I enter new pas
-
Windows Live Movie Maker 2011 crashed. How can I recover the work?
In WLMM 2011, I was working on this project for 2 hours or more. I just undo an action and Director Live 2011 crashed. I want to know how to recover my work. I think that programs windows auto save. If this isn't the case, it is a huge problem in Win
-
Original title: unlock files locked in the residential-change group of security settings does not (always says that I don't have permission even if I am Admin) I have a Windows 7 operating system. I am new to congregate. I recently noticed that I wa