Need help for the Partition of PL/SQL query for a question
Hi all
I'm running on a question that I'm not able to get the desired result. I would appreciate if one of you experts can help resolve this.
SQL * more: Production of release 11.2.0.1.0 game 4 Feb 09:31:26 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
with t as)
Select 1 numero_enregistrement, Student_ID 123, nvl (trim (01), 'NULL') like Item_id, 'ITEM_ID_01' FIELD_NAME Union double all the
Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_02' FIELD_NAME Union double all the
Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_03' FIELD_NAME Union double all the
Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_04' FIELD_NAME Union double all the
Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_05' FIELD_NAME Union double all the
Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_06' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_01' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('02'), 'NULL') like Item_id, 'ITEM_ID_02' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('03'), 'NULL') like Item_id, 'ITEM_ID_03' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_04' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_05' FIELD_NAME Union double all the
Select 2 numero_enregistrement, Student_ID 123, nvl (trim('02'), 'NULL') like Item_id, 'ITEM_ID_06' double FIELD_NAME)
SELECT distinct COUNT (*) OVER (PARTITION BY numero_enregistrement ORDER BY numero_enregistrement) REC_COUNT, numero_enregistrement, STUDENT_ID, ITEM_ID, Field_Name FROM t
where ITEM_ID = 'NULL '.
I get the following result.
NUMERO_ENREGISTREMENT ITEM_ID FIELD_NAME STUDENT_ID REC_COUNT
5 1 123 NULL ITEM_ID_02
5 1 123 NULL ITEM_ID_03
5 1 123 NULL ITEM_ID_04
5 1 123 NULL ITEM_ID_05
5 1 123 NULL ITEM_ID_06
My desired output is
Rec_COUNT Student_ID ITEM_ID FIELD_NAME numero_enregistrement
5 1 123 NULL ITEM_ID_02, ITEM_ID_03, ITEM_ID_04, ITEM_ID_04, ITEM_ID_05
Thanks in advance
Rajesh
Hi, Renon,
Thanks for posting the sample data and results; It is very useful.
Be sure to explain exactly how you get these results from these data. There are many different reasons you may have, that all happen to produce the same results with the sample data you posted, but will get different results with other data sets.
This looks like a job for aggregate (including the LISTAGG) functions and GROUP BY, not for functions, analytical and PARTITION BY
Tags: Database
Similar Questions
-
need help with the place where small sql query
types of numbers names {}
ID | name | ID | Phone | which | type of | ID | type |
| 1. Jenny | 1. 867-5309 | 1. 3 | | 1. Home |
| 4: Tom | 4: 555-1212. 3. 1 | | 4: cell |
| 3. Smith | 3. 364-4311 | 3. 2 | | 3. work |
| 4. Amy | 4. 936-2828 | 4. 3 | | 4. Fax |
| 5. 525-8722 | 3. NULL | -----------
----------------------------
I'm currently out put like this:
Type name phone
| Smith | Home | 555-1212 |
| Smith | cell | 364-4311 |
| Smith | NULL | 525-8722 |
is it possible to get the time of the tree 'smith' in the name column, which confuses me a lot
{Please can someone give idea how to solve this problem}
Published by: user4463478 on May 20, 2009 17:38
Edited by: user4463478 May 21, 2009 11:51
Edited by: user4463478 May 21, 2009 11:52select n.name,t.type,s.phone from names n,numbers s,types t where n.id=s.who and s.type=t.id(+)---right outer join and name ='&name'
Here go us
-
Need help on the results of a bizarre query...
Hi guys,.
I need your help
Requirement is:-suppose we have under titles in a single table;
HULK
THE INCREDIBLE HULK - 2001 (DO NOT USE)
INVERSE OF HULK
INCREDIBLE HULK U/A
BRING ME THE HEAD OF THE INCREDIBLE HULK
JENNIFER JASON LEIGH, HULK HOGAN
HULK 2
BRIDE OF THE INCREDIBLE HULK
HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD
THE INCREDIBLE HULK #03 (1979/80)
HULK HOGAN CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)
Now, he must: -.
O/p should be below order without duplicate records
HULK first, then
HULK then %
HULK %.
O/p: -.
HULK
HULK 2
HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD
HULK HOGAN CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)
THE INCREDIBLE HULK - 2001 (DO NOT USE)
INVERSE OF HULK
INCREDIBLE HULK U/A
BRING ME THE HEAD OF THE INCREDIBLE HULK
JENNIFER JASON LEIGH, HULK HOGAN
BRIDE OF THE INCREDIBLE HULK
THE INCREDIBLE HULK #03 (1979/80)
How can do us using sql query? Is it possible to make a request?
Or to do table PL/SQL etc.?
There should be no duplicates if you use more than a query or a single query.
Can you help me?tappusingh wrote:
O/p should be below order without duplicate records
HULK first, then
HULK then %
HULK %.
Maybe something like:
SQL> WITH test_tab 2 AS (SELECT 'HULK' col FROM DUAL 3 UNION ALL 4 SELECT 'THE INCREDIBLE HULK - 2001 (DO NOT USE)' FROM DUAL 5 UNION ALL 6 SELECT 'REVERSE HULK' FROM DUAL 7 UNION ALL 8 SELECT 'INCREDIBLE HULK U/A' FROM DUAL 9 UNION ALL 10 SELECT 'BRING ME HEAD OF THE HULK' FROM DUAL 11 UNION ALL 12 SELECT 'JENNIFER JASON LEIGH, HULK HOGAN' FROM DUAL 13 UNION ALL 14 SELECT 'HULK 2' FROM DUAL 15 UNION ALL 16 SELECT 'BRIDE OF THE INCREDIBLE HULK' FROM DUAL 17 UNION ALL 18 SELECT 'HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD' FROM DUAL 19 UNION ALL 20 SELECT 'INCREDIBLE HULK #03 (1979/80)' FROM DUAL 21 UNION ALL 22 SELECT 'HULK HOGAN''S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09)' 23 FROM DUAL) 24 -- " end of test data " 25 SELECT DISTINCT col 26 FROM test_tab 27 ORDER BY CASE 28 WHEN col = 'HULK' THEN 1 29 WHEN col LIKE 'HULK%' THEN 2 30 WHEN col LIKE '%HULK%' THEN 3 31 ELSE 4 32 END, col 33 / COL ----------------------------------------------------------- HULK HULK 2 HULK HOGAN'S CELEBRITY CHAMPIONSHIP WRESTLING #01 (2008/09) HULK HOGAN, DAVID WILLEY, NATASHA BEDINGFIELD BRIDE OF THE INCREDIBLE HULK BRING ME HEAD OF THE HULK INCREDIBLE HULK #03 (1979/80) INCREDIBLE HULK U/A JENNIFER JASON LEIGH, HULK HOGAN REVERSE HULK THE INCREDIBLE HULK - 2001 (DO NOT USE) 11 rows selected. SQL>
Kind regards
JO -
Need help on the re-write of a query
Hello
Recently, I've migrated database from MSSQL to Oracle using SQL Developer tool.
There is a table, "PERSONALIZATIONITEMS" that has a column of data type XML, ('ACTIONS' and 'ELIGIBILITYDEFINITION') in MSSQL, was translated into Oracle CLOB data type;
PersonalizationItems table in MSSQL
[PersonalizationItemID] [int] IDENTITY (1,1)
[PersonalizationID] [smallint]
[PersonalizationContentTypeID] [smallint]
[ContentDescription] [nvarchar] (50)
[EligibilityDefinition] [xml]
[Actions] [xml]
[Priority] [decimal] (5, 2)
[IsActive] [ILO]
[DateCreated] [smalldatetime]
[DateModified] [datetime]
Table PersonalizationItems in Oracle
PERSONALIZATIONITEMID NOT NULL NUMBER (10)
PERSONALIZATIONID NOT NULL NUMBER (5)
PERSONALIZATIONCONTENTTYPEID NUMBER (5)
CONTENTDESCRIPTION NVARCHAR2 (50)
ELIGIBILITYDEFINITION NOT NULL CLOB
ACTIONS NOT NULL CLOB
PRIORITY NOT NULL NUMBER (5.2)
ISACTIVE NOT NULL NUMBER (1)
DATECREATED NOT NULL DATE
DATEMODIFIED NOT NULL DATE
I'd like to get your opinion/advice here on how I would write the sql query in Oracle which would be equivalent to the following query in MSSQL.
SELECT PersonalizationItemID PersonalizationID , Actions.value ('(/ Actions/Action/ContextItems/ContextItem [@Key = "FlowcationID"] /@Value) [1] ',' nvarchar (250)') AS FlowcationID FROM dbo. PersonalizationItems
(OÙ_Actions.exist('(/Actions/Action/@ActionData)[contains(.,"~/SharedUI/UserControls/Commerce/UpsellDisplayAdapter.ascx")]') = 1
AND IsActive = 1 Thank you.
I finally managed to re - write the query in Oracle that provide the same output as the query in MSSQL.
SELECT
PersonalizationItemID,
PersonalizationID,
extractValue(actions,'/Actions/Action/ContextItems/ContextItem[@Key="FlowcationID"]/@Value') "FlowcationID".
Of
PersonalizationItems
WHERE
existsNode (actions,'/ Actions/Action [@ActionData="~/SharedUI/UserControls/Commerce/UpsellDisplayAdapter.ascx"]') = 1
AND IsActive = 1;
-
Need help with the condition join in SQL
Hi all -
I need to ask for help with this query:
Create table user_tab_col_test (varchar2 (30) from table_name, column_name varchar2 (30), data_type varchar2 (30));
Insert into user_tab_col_test (table_name, column_name, data_type) values ('table1', 'column1', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('Column2', 'table1', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ("Column3", 'table1', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('column4', 'table1', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ("column1", "table2", 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', 'column2', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', "Column3", 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('table2', 'column4', 'varchar2')
Commit;
Create table all_cons_columns_test (varchar2 (30) from table_name, column_name varchar2 (30), constraint_name varchar2 (30))
Insert into all_cons_columns_test (table_name, column_name, constraint_name) values ("table1", "column1", "primary")
Insert into all_cons_columns_test (table_name, column_name, constraint_name) values ("table1", "column1", "secondary")
Commit;
This is my query and the current result:
Select u.table_name, u.column_name, c.constraint_name
Of user_tab_col_test u
Outer join all_cons_columns_test c left
On (u.table_name = c.table_name
AND U.COLUMN_NAME = C.COLUMN_NAME
AND C.CONSTRAINT_NAME IN ('main'))
order of U.table_name, U.COLUMN_NAME;
TABLE_NAME COLUMN_NAME, CONSTRAINT_NAME
------------------ --------------------- ----------------------------
Table1 primary Column1
Table1 Column2
Table 1 Column3
Table2 Column1
Table2 Column2
Three questions:
(1) I don't want to return results where table_name = "table1". I can't get this to work.
(2) is my proper request and this is the best way to return my desired results? For example, I want all of the columns of user_tab_col_test and I want to only display the constraint_name from all_cons_columns_test argument if the argument constraint_name = 'primary '.
(3) will be the synatx be the same if I need to join a third table to all_cons_columns_test?
Any advice/suggestions are appreciated-
John
Published by: user703358 on January 11, 2013 20:57
Published by: user703358 on January 11, 2013 21:48Hi, John,.
user703358 wrote:
Hi all -I need to ask for help with this query:
Create table user_tab_col_test (varchar2 (30) from table_name, column_name varchar2 (30), data_type varchar2 (30));
Insert into user_tab_col_test (table_name, column_name, data_type) values ('table1', 'column1', 'varchar2')
Insert into user_tab_col_test (table_name, column_name, data_type) values ('Column2', 'table1', 'varchar2')...Thanks for posting the CREATE TABLE and INSERT.
It is more useful if you post the code that can be run without modification. You did not semicolons after INSERTION instructions.Three questions:
(1) I don't want to return results where table_name = "table1". I can't get this to work.What have you tried? Post your best attempt.
Here's one way:SELECT u.table_name , u.column_name , c.constraint_name FROM user_tab_col_test u LEFT OUTER JOIN all_cons_columns_test c ON u.table_name = c.table_name AND u.column_name = c.column_name AND c.constraint_name IN ('primary') WHERE u.table_name = 'table1' -- ***** NEW ***** ORDER BY u.table_name , u.column_name ;
You would not put this condition in the clause; who controls what is considered as a match between the tables, and "u LEFT OUTER JOIN c" means show all lines of u, even if they do not have a match in the c.
(2) is my proper request and this is the best way to return my desired results? For example, I want all of the columns of user_tab_col_test and I want to only display the constraint_name from all_cons_columns_test argument if the argument constraint_name = 'primary '.
Basically, this application is very well.
It displays all the columns of user_tab_col_test; missing data_type. Just add u.data_type to the SELECT clause, or change the SELECT clauseSELECT u.* , c.constraint_name
(3) will be the synatx be the same if I need to join a third table to all_cons_columns_test?
Do you mean "" * add * one-third * column * to all_cons_columns_test '? "
It depends on what results you want. Post new CREATE TABLE and INSERT and instructions the results you want new data.
Most likely, the basic structure of what you've written will remain exactly the same. -
Need help with the compilation of PL/SQL procedure
Hi people,
Can someone help me with the following problem?
Version: 10g Rel 2
I create the following proc
CREATE OR REPLACE PROCEDURE SYS. "P_SEND_MAIL"(p_message VARCHAR2).
is
Start
UTL_MAIL. SEND ('[email protected]',
message = > 'Oracle alert. "
subject = > p_message);
end;
*/*
The above proc compile successfully
Then I create a second proc that references the above proc
CREATE OR REPLACE PROCEDURE SYSMAN. LOG_CRITICAL_ALERTS (gravity IN MGMT_NOTIFY_SEVERITY)
IS
BEGIN
-Connect all the critical severities
IF severity.severity_code in (MGMT_GLOBAL. G_SEVERITY_CRITICAL, MGMT_GLOBAL. G_SEVERITY_CRITICAL)
THEN
BEGIN
SYSMAN.p_send_mail (Severity.message);
EXCEPTION
WHILE OTHERS
THEN
-If there is that no problem, then get the notification retried
RAISE_APPLICATION_ERROR (-20000, "Please try again");
END;
COMMIT;
END IF;
END LOG_CRITICAL_ALERTS;
*/*
I get the following compilation error
SYSMAN PROCEDURE. LOG_CRITICAL_ALERTS
Online: 8
PLS-00201: identifier ' SYSMAN. P_SEND_MAIL' must be declared
Thanks in advance
rogers42One of the basic directions using Oracle, we should NOT, do not create your own procedures user SYS (or tables also). SYS is the datadictionary. That the datadictionary is changed automatically when importing, it is never exported: provided non-Oracle of objects are ignored.
System: essentially the same question.Why you have this 'problem '.
Just because you don't read the documentation and do not want to check for errors in the online documentation.Would you do that, you would have known
SYSMAN would need to execute privilege
You have put in place a public synonym.--------------
Sybrand Bakker
Senior Oracle DBA -
need help on the conversion of ANSI sql
Existing query:
Select (list of the columns in the list of tables) SPANS A, EMPANS_MEMO M, QSTLINK L, QSTN Q
WHERE A.FLDCOMMENT = M.FLDREC_NUM (+) AND L.FLDFORM =? AND L.FLDQUESTION = A.FLDQUESTION AND L.FLDROLLOVER = 'y' AND Q.FLDCODE = L.FLDQUESTION AND
(Q.FLDINACTIVE IS NULL OR Q.FLDINACTIVE <>'y')
Converted ANSI:
Select (list columns from the list of tables) SPANS A LEFT JOIN OUTER EMPANS_MEMO M on (A.FLDCOMMENT = M.FLDREC_NUM)
INNER JOIN QSTLINK ON (A.FLDQUESTION = L.FLDQUESTION) L
INNER JOIN QSTN Q ON (L.FLDQUESTION = Q.FLDCODE)
WHERE L.FLDFORM =? AND L.FLDROLLOVER = 'y' AND
(Q.FLDINACTIVE IS NULL OR Q.FLDINACTIVE <>'y')
could you any body let me know, - is this correct.
Thank you for your support.The order of the joins is not important, as long as the columns referred to in the JOIN conditions have been mentioned previously.
JOIN is the abbreviation of INNER JOINand LEFT JOIN is short for LEFT OUTER JOIN.
-
I need help for the upgrade of my current system.
I need help for the upgrade of my current system.
I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.
I want to make the larger environment using the following:
(1) apply Virtualization
(2) apply to the failover process (clustering)
"(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.
Storage 4) that supports Raid (1 and 5)
UTM excellent 6) that supports (SSL VPN, VPN Global)
suitable backup solution 7)
(8) good antivirus for clients
my questions:
(1) can you provide me with a good design for this environment
(2) should I choose what operating system:
Microsoft datacenter or company
I know datacenter provide us the unlimited VM but needs per processor license
so if I have two Grouped servers I want to buy 4 licenses
and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?
(3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?
(4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?
(5) what about win2k8 license for VM:
lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?
(6) can I use backExec license for SBS with windows 2008 standard
(7) who better to virtualization AMD or INTEL
(8) hyper V or VMware?
(9) what of Microsoft data protection Manager... is this good?
(10) what virtual machine manager? What are the benefites keys
Thanks in advance
Hello AnasAI,
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
Need help with the launching track pack for forza code 4
Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.
This is the help I get when the cat to an Ambassador xbox on xbox.com
Terry wrote:Need help with the launching track pack for forza code 4The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Location of Ambassador of the community...The Xbox Ambassador says:Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]The Xbox Ambassador says:HelloTerry wrote:HelloThe Xbox Ambassador says:HeyTerry wrote:just to be on the phone to xbox live support and was told to come hereThe Xbox Ambassador says:ok\The Xbox Ambassador says:What is your problem?Terry wrote:I bought the 4 for forza ansd 360 new sealed Christmas...Terry wrote:has got 2 codes that accompanies the game but the pack track code does not workThe Xbox Ambassador says:Wow goodTerry wrote:whenever I put in the code it says code redeemedThe Xbox Ambassador says:I think the code is used. You must return to the retailerTerry wrote:I tried to, but since I already opened the case they will not acceptThe Xbox Ambassador says:Oh. No,Terry wrote:the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is openThe Xbox Ambassador says:Maybe it was auto bought?Terry wrote:so, how do I get another code generated track Pack if defective?The Xbox Ambassador says:I do not know.Terry wrote:bought the game new, so I get the track packThe Xbox Ambassador says:Oh. It's bad.The Xbox Ambassador says:I think that if you Exchange 1 code it will buy itTerry wrote:car pack code worked, starter pack did not workThe Xbox Ambassador says:Oh.The Xbox Ambassador says:It's a badThe Xbox Ambassador says:BTW you have an evolution of the tests?Terry wrote:Yes, I want to? but more anxious to get a code object generated for this packThe Xbox Ambassador says:Hey if I help can u give me this game too?Terry wrote:?????????????????Terry wrote:So is it possible to get a code for that time?The Xbox Ambassador says:HeyThe Xbox Ambassador says:Yes.The Xbox Ambassador says:you need to contact themThe Xbox Ambassador says:and tell them that the code is used.Terry wrote:I was told to come here? where can I go to get the code?Hi Terryg76,
· What version of the operating system is installed on the computer?
I suggest you to contact the game manufacturer for more help and information.
-
I need help for activation of the real administrator account.
I have a problem with Adobe reader 9 standard, Adobe customer service asked the unhide real administrator account before you can continue to help me.
I need help for that.
http://www.Vistax64.com/tutorials/67567-administrator-account.html
Read the above info.
See you soon. Mick Murphy - Microsoft partner
-
Need help with the ip configuration on/etc/hosts for the installation of 11 GR 2 on linux vmware 6 on win7.
Let me know if you need more info... in fact I have a setting error while installation said
-(/ etc/hosts has no correct entry for the host name)
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Thank you...
(host computer)
Win7 64 bit
(vmware)
Oracle Linux Server 6.3 version
Release of Red Hat Enterprise Linux Server 6.3 (Santiago)
Oracle Linux Server 6.3 version
-(/ etc/hosts has no correct entry for the host name)
Then post your/etc/hosts.
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Why 85? have you tried 192.168.1.100?
-
Hello, I need help for cancel the payment on my adobe account.
Hello, I need help for cancel the payment on my adobe account. I'm from Peru, Im paying a monthly fee as a student. Help, please...
-
Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him. Thank you very much
Hey ihorl18351266,
Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.
Kind regards
Ana Maria
-
Hi all
I need help license the following environment:
1 400 VDIs.
2. associated VDI servers.
3-8 non - VDI associated servers.
This environment runs on 6 dual CPU servers.
Concerning
For this, but all these already include vSphere, ESX and vCenter licenses.
Advanced also include VSAN.
Advanced horizon is available as simultaneous user and username, so if you can choose what type of license would be the most suitable for you, in most cases, the concurrency model is best suited.
So say you have 400 concurrent users, you need 400 advanced Horizon permits and are then all included vSphere licenses.
Linjo
-
Need help to reduce the cost of my sql Query below 100 to optimize.
Can you please suggest how to reduce the COST of my SQL query? Is it possible to get the < 100 COST?
My goal:
------------------------
To recover the data of length (a column is in normalised_event: table) corresponding to each type of call (which is to extract the column rc.abbreviation in reference_code: table) in a given range of dates. So I wrote the following as SQL below:
------------------------------------------------------------------------------------------------------------------
Select nvl (sum (round(ne.duration/60,3)), 0), rc.abbreviation
Since the rc reference_code, normalised_event not
where to_char (rc.reference_code) = ne.full_path
and rc.reference_type_id = 505002 AND
trunc (don't. CHARGE_START_DATE) between trunc (to_date (January 1, 2008 "," dd-mm-yyyy hh24:mi:ss'))))
and trunc (to_date (January 1, 2009 "," dd-mm-yyyy hh24:mi:ss'))))
Rc.abbreviation group
-----------------------------------------------------------------------------------------------------------------
IAM using Toad Software which is taken in charge by oracle 9i.
Explain the plan above query is:
explain plan
Set statement_id = "mp01" for
Select nvl (sum (round(ne.duration/60,3)), 0), rc.abbreviation
Since the rc reference_code, normalised_event not
where to_char (rc.reference_code) = ne.full_path
and rc.reference_type_id = 505002 AND
trunc (don't. CHARGE_START_DATE) between trunc (to_date (January 1, 2008 "," dd-mm-yyyy hh24:mi:ss'))))
and trunc (to_date (January 1, 2009 "," dd-mm-yyyy hh24:mi:ss'))))
Rc.abbreviation group
Select LPad (' ', 2 *(Level-1)). Level | '.' || NVL (position 0). ' ' ||
Operation | ' ' || Options of | ' ' || Object_name | ' ' ||
Object_type | ' ' || Decode (id, 0, Statement_Id |) "Cost = ' | Position)
"Query plan.
From Plan_Table
Start with id = 0 and Statement_Id = 'mp01 ".
Connect Id Parent_Id = prior
And Statement_Id = 'mp01 ";
---------------------------Query Plan explained is----------------------------------------------------------
1.555 INSTRUCTION SELECT mp01 cost = 555
2.1 TYPE GROUP
3.1 FILTER
4.1 HASH JOIN
5.1 TABLE ACCESS BY INDEX ROWID REFERENCE_CODE
6.1 INDEX RANGE SCAN NON-UNIQUE I_REFERENCE_CODE_REF_TYPE
5.2 PARTITION RANGE ALL THE
6.1 TABLE ACCESS FULL NORMALISED_EVENT
-Automatic tracking of the SQl query is:.
recursive calls - 0
DB block gets - 0
compatible gets - 174
physical reads - 0
size - 104
Parse count (hard) - 0
Parse count (chess) - 0
run the County - 2
bytes sent via SQL * Net to dblink - 0
bytes received via SQL * Net from dblink - 0I was wrong. Once again, this shows how it is dangerous to assume (I assumed that FBI was new in 10g because it is when I used them), and the power of the community to ensure that accurate information is provided.
John
Maybe you are looking for
-
LG g3 HP 6500. small prints. How do I change size
Help, please. LG g3 hp 6500 need to change the size of the page. Small prints.
-
Change the color of the counter
We have an application that would be really the meter or the caliber, I hope we could change the color. I've searched the forums and while it's a little change of color of eacharea, there is nothing on [i] Add [/ i] areas or change the [i] [/ i] area
-
"TCP server inactive" error in LabView 7.0
My TCP in LabView 7.0 feature has disappeared. In the lower right corner of LabView on splash, he says "TCP server inactive". How can I fix it? Thank you
-
I have FSX Deluxe. When I installed FSX SP1, it was all fine, but when I installed FSX SP2 graphics were messed up. So I uninstalled FSX SP2 and tried again, and it was the same thing. So I uninstalled FSX all together and reinstalled fresh and put o
-
Advance cyber security strategy Initiatives
Above just e-mail came in my Inbox. Was it Microsoft or is it a phishing scam?