deploy column OWB 10.1 comments
OLA.On the customer site, we try to fill our metadatmodel. The column comments are part of it.
While we add these comments in the note field in table objects we can't in the database after deployment.
The generated scripts contains a comments.dll. But it seems that this scipt is never executed...
Y at - it a setting of managere deployment we need to adjust in order to deploy these comments?
(of course, you can run the comment.dll manually, but that's just what we're trying to avoid...).
We use OWB 10.1
Kind regards
Moscowic
Hi Moscowic,
This is a Bug identified in OWB 9.2
Bug 3422288: COMMENTS of COLUMN AND TABLE ARE GENERATED BUT NOT DEPLOYED
There is no patch available with OWB 10.1.
The functionality is implemented in OWB 10.2.
Thank you
Fati
Tags: Business Intelligence
Similar Questions
-
Any deployment of an existing map of OWB, particularly in an environment (example B), I am facing this error message so that the same code works fine in another environment (say A).
I tried importing the .mdl to another (A) environment where it works fine, imported in a B environment and attempted to deploy, has always given me same error message all in deployment.
Help, please.
Errors of compilation for BODY of PACKAGE *.
Error: PLS-00801: internal error [phdcsql_print_kge_errors::parm pos]
Line: 1
Text: CREATE OR REPLACE PACKAGE BODY "*" AS
Error: PL/SQL: statement ignored
Line: 11
Text: SELECT
Error: PLS-00801: internal error [phdcsql_print_kge_errors::parm pos]
Line: 1
Text: CREATE OR REPLACE PACKAGE BODY 'MAP_DMT_CUST_COMPLAINT_UI' AS
Error: PL/SQL: statement ignored
Line: 709
Text: SELECT
Error: PLS-00801: internal error [phdcsql_print_kge_errors::parm pos]
Line: 1
Text: CREATE OR REPLACE PACKAGE BODY "*" AS
Error: PL/SQL: statement ignored
Line: 2332
Text: MERGE
Error: ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
Line: 1
Text: CREATE OR REPLACE PACKAGE BODY "*" AS
A table was missed and not imported in the OWB repository from which this table was not related. I imported this table, bounded to the search with the table operator and it worked fine.
Somehow instead of give the real reason, she gave this vague error.
I hope that this solution works for others :-)
-
How to: add comments to a file.
In XP with the help of the "Details" display files, right-click in the topic area columns would provide a list of possible columns, then selecting the comments field he would place this column on the screen. "» It is also possible with Win7, well.
In XP, we could add a comment to a folder (for almost any type of file in any folder) by double-clicking on the file and selecting the properties option and then selecting the Summary tab you could type a comment, and it was posted in the comments on the file screen. He has worked for almost all types of files and has been VERY useful when filenames were the better undescriptive, (most of the time).
In Win7 it seems that it is NOT possible for almost all files types, very disappointing!
Is this feasible?Hello
What type of files you are unable to add comments to?
You can add comments and change the properties of most of the files in Windows 7. But you cannot add comments to some files that have been
blocked by the author. You will not be able to add comments to the .exe files.See the mentioned link below for more information:
Change the properties of a file:
http://Windows.Microsoft.com/en-us/Windows7/change-the-properties-for-a-file
Kind regards
Amal-Microsoft Support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
Cisco ISE 1.4 comments account Backup
I currently deploy portal free registry for comments, I now of questions you want to certify, I just want to know to anyone facing the same problem as me.
(1) except REST API any way to export the guest account
(2) backup of the Appendix will include the guest account or not
(3) what deployment node 2, guest account will sync on both nodes?
Sorry for the bad English.
Kind regards
Alan
1.] I don't think - I can see a well on the same feature request
CSCty82007 ENH: Export invited accounts set up in ISE
2.] Yes - backup should have all guest accounts.
[3.] the Cisco ISE guest services use distributed the Cisco ISE management system to allow several Cisco ISE nodes to work in a deployment. Configurations performed on the head node is replicated to the secondary nodes.
~ Jousset
-
OWB 11 g R2 issue: PRE-02075 during Workflow execution
Hello gurus
Its been a while that I worked with workflows so apologies if I'm missing something. We have recently allowed Oracle workflow in our environment of DW in the hope to try process workflows to call the OWB mappings. Ours is OWB 11.2.0.4 on Linux and Oracle 11 g.
I get a PRE-02075 error while executing a test workflow I created to call a mapping that is deployed in OWB. Here is the detailed log
PRE-02075: Oracle Workflow could not process the request for enforcement of PF_2:LOAD_STG_STORE activity. Maybe it's because dependent objects have not yet been deployed. ORA-20001: PF_2:LOAD_STG_STORE task does not exist. Please check that the ProcessFlow has been deployed successfully.
ORA-20035: task %1 does not exist. Please check that the %2 has been deployed successfully (PF_2:LOAD_STG_STORE, ProcessFlow)
ORA-06512: at "OWBSYS. WB_RTI_EXCEPTIONS', line 144
ORA-06512: at "OWBSYS. WB_RTI_WORKFLOW_UTIL', line 639
ORA-01403: no data found WB_RT_WORKFLOW_UTIL_11G. Execute_Any_Task (PFPKG_BV, 12, 483, RUN)
WB_RT_WORKFLOW_UTIL_11G. Execute_Task (PFPKG_BV, 12, 483, RUN)
Wf_Engine_Util.Function_Call (WB_RT_WORKFLOW_UTIL_11G. EXECUTE_TASK, PFPKG_BV, 12, 483, RUN) Don't know what it means that I can run the mapping alone and there is no problem with it. I feel that something is missing somewhere in terms of configuration, but cannot determine the exact cause.
Would really help if someone can guide me here.
Birdy
Ok
Sort problem. Had to go to the list of users under Design Center and activate the option 'Control center execution' as follows
and it flattens. Duh!
-
OMB orders - Comparison of time with OWB
Hello
1.
I wrote a TCL script with OMB orders to deploy the objects of my OWB to a destination environment.
The script works well, but it takes a little more time when deployed via OWB.
OWB a module takes 3.4 minutes but the script it takes 5.2 minutes.
I'm just trying to understand the reason why this script takes longer.
I see the following reasons for this delay in the script.
a. connect to the repository
b. start the control center
My script is as follows.
-----------
....
If {[catch {}
OMBCREATE TRANSITIONAL DEPLOYMENT_ACTION_PLAN "TREX_DEPLOY_PLAN" ACTION TO ADD "TREX_DEPLOY_PLAN".
SET the PROPERTIES (OPERATION) VALUES ('REPLACE') DEFINED SEQUENCE OF REFERENCE "$seqName".
OMBDEPLOY DEPLOYMENT_ACTION_PLAN "TREX_DEPLOY_PLAN".
OMBDROP DEPLOYMENT_ACTION_PLAN "TREX_DEPLOY_PLAN".
{Errmsg OMBCOMMIT}]}
....
------------
Will there be another reason for the delay? Or am I missing something?
2.
Is there a difference between execution of OMBCOMMIT 'once' in the script and run it for each OMBDEPLOY?
What method is recommended?
3.
We have run the script in parallel of several modules at a time.
Is there a way we can do this in TCL by getting the same connection and the control center instead of throw for each thread?
(Something like the sharing of connections and control centers?)
I appreciate assistance regarding the above doubts.
Thanks and greetings
SameerHi Sameer,
1 there is no obvious reason why an OMB order would take longer than the equivalent operation in the user interface. The initial connection to the repository and the link with the control center will take time, as you mentioned, but probably not as long.
OMB * more is not taken responsible for deploying an entire course in a go as the user interface, so I guess you have a TCL script that deploys the content of the module as a separate deployment plans? If this is the case, then this will introduce a few recouvrirle as each deployment should carry out the same controls of location and create mechanisms for the deployment controller. If you haven't already done so, you can try to add all the objects in the module to a single deployment plan because this would reduce overhead costs.
2. There should not be any difference between commits by the declaration, or a big one at the end. I would just use one at the end.
3 OMB * more it has support for parallel activities through the keyword OMBDEPLOY ASYNCHRONOUS. This will start the deployment and return to the command line so that you can continue with other tasks. Unfortunately, you can't make two deployments as well as a generation can be performed at a time in each session.
In order to achieve parallel modules, you will need to use several TCL sessions, each would create their own separate connections for rest / control center (there is no link between the threads). I hope that this should not be a big overhead, however.
Nigel.
-
Is there a way to disable the cost center column in the layout pay TC
Hi Heroes,
Is there a way to disable the center column of cost in terms of payroll time sheet?
and how do I add the Details column also so a comment can be added for each item a day
Thanks in advance.
Published by: user8331446 on January 12, 2009 17:17I'm not a technical guy either! It is how to configure the self-service score card. It seems unusual, but this is the method of support.
In fact, it is not as technical as it seems. You will need some technical assistance (e.g., s/n), but only to recover and then download the ldt.
You will need recover the such appropriate LDT file specified in the file table in the document that I've referenced.
You can then open it with any text editor (such as wordpad or Notepad).Here is an example of the type of text you will see (using for example cost center):
BEGIN HXC_LAYOUT_COMPONENTS 'XXCU Exception Timecard Layout - cost center'
OWNER = 'ORACLE '.
COMPONENT_VALUE = "COSTCENTER.
REGION_CODE = "HXC_CUI_TIMECARD."
REGION_CODE_APP_SHORT_NAME = "HXC".
ATTRIBUTE_CODE = 'HXC_TIMECARD_COST_CENTER '.
ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC".
SEQUENCE = "210".
COMPONENT_DEFINITION = "CHOICE_LIST".
RENDER_TYPE = 'WEB '.
PARENT_COMPONENT =
* "' Exception Timecard Layout - day laid Building blocks for matrix worker scorecard" * "
LAST_UPDATE_DATE = ' 23/05/2004.BEGIN HXC_LAYOUT_COMP_QUALIFIERS 'XXCU Exception Timecard Layout - cost center'
OWNER = 'ORACLE '.
QUALIFIER_ATTRIBUTE_CATEGORY = "CHOICE_LIST".
QUALIFIER_ATTRIBUTE1 = "Custom9VO".
QUALIFIER_ATTRIBUTE4 = "N".
QUALIFIER_ATTRIBUTE8 = "DisplayValue".
QUALIFIER_ATTRIBUTE9 = '#NUMBER value '.
QUALIFIER_ATTRIBUTE10 =
* "Oracle.apps.HxC.selfservice.Timecard.Server.Custom9VO" *.
QUALIFIER_ATTRIBUTE11 = "TIMECARD_BIND_END_DATE" TIMECARD_BIND_END_DATE ".
QUALIFIER_ATTRIBUTE17 = "OraTableCellText".
QUALIFIER_ATTRIBUTE20 = "N".
QUALIFIER_ATTRIBUTE21 = 'Y '.
QUALIFIER_ATTRIBUTE22 = 'L '.
QUALIFIER_ATTRIBUTE25 = "FLEX".
QUALIFIER_ATTRIBUTE26 = "Dummy economic context."
QUALIFIER_ATTRIBUTE27 = "Attribut3".
LAST_UPDATE_DATE = ' 23/05/2004.
END HXC_LAYOUT_COMP_QUALIFIERSEND HXC_LAYOUT_COMPONENTS
To delete this article, just comment it by putting "#" (hash space) in front of each line between HXC_LAYOUT_COMPONENTS BEGIN and END HXC_LAYOUT_COMPONENTS
Then save your file and get the DBA to uplaod again.
You must make sure that filename ldt so the section at the top of the file with the entry
BEGIN HXC_LAYOUTS "XXCU TIM EXCEPTION-SCORE CARD" "HXC".
OWNER = 'ORACLE '.
DISPLAY_LAYOUT_NAME = "XXCU Tim Exception Layout - time sheet entry Page"have a unique name. You will see that my example has 'TIM' in the name of layout and display name.
Make you the ldt file name unique so that it does not replace the Oracle version seeded and you're doing the DISPLAY_NAME and LAYOUT_NAME usinque because that's what you will see in your list of page layouts in the preferences in OTL. If you do not change the names, you will see duplicates and won't know which is yours!
It's about as technical as it gets.
Good luck. I hope that answers the question further.
Concerning
Tim
-
How to overload a sequence?
I want to overload the sequences TestStand operation can be overloaded in other programming languages. By overloading, I mean I want multiple sequences with the same name and different parameters. He appealed and enveloping the function much easier and cleaner.
For example if I need 3 parameters for specific action, but I only have 2 and want to use the 'standard' for the 3rd parameter value, I take steps to get the third parameter inside a function with 2 parameters, and then call the function with 3 parameters.
I put the standard quoted value because most of the time it will not be a digital fault. It could be a piece of information obtained from a network or a field of another parameter, or anything really.
I think you are badly understand what I'm telling you...
The default values for common data types are:
Boolean = False
Digital = 0
String =' '
However, this is not what I am referring. When you add a parameter to a sequence there are 4 columns: name, value, type, comment. Under the comment of value that you put a value that you want to be the default. Let's say you have a digital set called Foo and you put 10 as value. Now when someone puts down a call to this sequence sequence and they check the default zone for the parameter Foo the value will be 10 when he enters the subsequence.
Edit: If you really want to try to check if the default value has been used:
RunState.CallingStep.Module.AsSequenceCallModule.Parameters.Item (X). UseDefaultValue whre X is the index of the parameter you want to check.
See you soon,.
-
Windows Explorer - file attributes
In Windows 7, Windows has additional Explorer can be put on columns - which is the comment column. How we do add a comment to this column. There used to be a summary page under properties where the comment could be added. The other attributes are editable as well, and how that would be incurred?
In Windows 7, Windows has additional Explorer can be put on columns - which is the comment column. How we do add a comment to this column.
Right-click on the file, select properties and go to the Details tab, move the cursor to the right in front of the "Observations" section and a box should open. Type your comments in there. If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog
-
ISE 1.4 and access for guests with distinct SMS providers
Could someone please help with the installation of the guest access. I am trying to perform an establishing a unique SSID prompted with two central WISN and a pair of ISE 1.4 to manage a building containing different companies. Installation work good with a sponsor (company) chooses just the customer who registered but at the end of the implementation the handover raised a question that left me speechless. Every company wants to have their own account SMS provider. How can I configure so that the end-user location defines the SMS provider?
Hello
There are 2 different stand-alone ise or there are members of the same deployment?
You can add gateways sms on the parameters of the ise. So if there are 2 different deployment, simply choose the sms gateway that you created in a configuration Portal comments.
If you have only 2 servers ise 1 deployment, you can create 2 comments portal on each one you set the right sms gateway.
If you have 1 deployment and have the same ssid comments:
-divide PSA between 2 companies using the AP group
-to the ise, you can use the defined strategy (simpler and more readable).
-According to the AP group, you can Portal popup comments 1 to 1 group AP and another portal of comments for another group of AP. In order to make this work, you need to change the type of id station call on the Security tab, on the wlc himself.
hope this is clear.
If you have deployed MSE, you can set your rules and popup portal based on the physical location without the use of the AP group
-
To work with a SAN and vMotion virtual servers configuration
Hi all:
I apologize in advance if this discussion is too much like another.
I intend to use the following configuration (not yet deployed) and would appreciate your comments and input:
2 physical host servers running VMware ESXi
1 SAN Fiber Channel
high availability and vMotion
I just have a few questions:
(1) then I keep all the VHD on the SAN files? (I intend to have VHD files separate OS disk and DATA drive for each virtual computer).
(2) is it recommended that I have all the hard drives the on host computers physical (to run virtual machines or anything else like swap files)?
(3) how much space I have on the SAN? I guess too much for the readers of the OS and DATA readers of all virtual machines... it's any additional space recommended for anything?
(4) everyone would be able to direct me towards guides describing how to set up?
Sincerely,
Kahn
(1) then I keep all the VHD on the SAN files? (I intend to have VHD files separate OS disk and DATA drive for each virtual computer).
Yes you can, and just a tip, on VMware world the virtual disk is called VMDK :-)
(2) is it recommended that I have all the hard drives the on host computers physical (to run virtual machines or anything else like swap files)?
You can use the same physical host computers without the hard drive, because you can boot from SAN, or use features such as automatic deployment, but it is the facility for the virtual machine, my recommendation is to use disks (volumes) of your San and share this volumes between your hosts to be able to configure High Availability (HA). Without shared storage, you can not HA.
(3) how much space I have on the SAN? I guess too much for the readers of the OS and DATA readers of all virtual machines... it's any additional space recommended for anything?
Space on SAN depends on the size of your virtual machines and little extra space to make room for Exchange and snapshot files.
(4) everyone would be able to direct me towards guides describing how to set up?
The documentation will have everything you need: VSphere 6.0 Documentation Center , but if you want some guide step by step and with video/screen, see this one: BackToBasics | Mike Landry...
-
Capture a photo on a smartphone for storage in an APEX application
Hi people
None of you don't know if it is possible to have an application APEX which, when used on a mobile device, can use the camera integrated phone to capture an image that is then transferred to the APEX and stored in the database as a BLOB column?
All thought, comments etc gratefully received.
SimonYou can use Phonegap to access the native API inside the Apex.
Roel Hartman has blogged about it:
http://roelhartman.blogspot.be/2011/12/Apex-app-running-native-on-iPhone.html -
by default generate scripts in the old style instead of ansi to designer lev joins
I have already deployed 1000 owb mapings and default is to show the intermediate result script in ANSI syntax.
Is it possible to change the property of configuration in OWB (syntax SQL ANSI false condition) to the generation of ANSI SQL and Oracle SQL-level code instead of the mapping level designer?
Help, please.Hello
There is a quick blog here;
https://blogs.Oracle.com/warehousebuilder/entry/owb_configuration_templates_default_valuesSee you soon
David -
Hi all!
I have a little problem. I have a PanelCollection with table in my application. Also, I have a menu 'Excel export' as exports table in excel sheet.
In the table I have row-function popup, that runs on right click of the mouse in each row of the table.
The problem is: when I export the result in excel, I got a popup from data export too. But I don't want
There are some code:
Published by: Vis555 on July 20, 2012 10:06<af:table var="row" id="tblHistory" binding="#{IndexBean.tblHistory}" columnStretching="multiple" rowBandingInterval="0" partialTriggers="::cmiShowLogsFromStart ::cmiFilterComments ::ctbShowLogsFromStart ::ctbGroupTasks" emptyText="#{viewBundle.emptyText_tblHistory}" filterVisible="false" contentDelivery="immediate" fetchSize="25"> <af:column sortable="false" headerText="Build" id="c7" visible="#{IndexBean.colBuildVisible}"> <af:outputText value="#{row.build}" id="ot8"/> </af:column> <af:column sortable="true" headerText="Rev" id="c1" width="7%" sortProperty="revision" visible="#{!IndexBean.ctbGroupTasks.selected}"> <af:outputText value="#{row.revision}" id="ot3"/> </af:column> <af:column sortable="true" headerText="Author" id="c2" width="16%" sortProperty="author" visible="#{!IndexBean.ctbGroupTasks.selected}"> <af:outputText value="#{row.author}" id="ot4" shortDesc="#{row.authormail}"/> </af:column> <af:column sortable="true" headerText="Date" id="c3" width="9%" sortProperty="data" visible="#{!IndexBean.ctbGroupTasks.selected}"> <af:outputText value="#{row.data}" id="ot5"> <af:convertDateTime pattern="dd.MM.yyyy"/> </af:outputText> </af:column> <af:column sortable="true" headerText="Type" id="c4" width="2%" sortProperty="task.typeId" shortDesc="Task type"> <af:image source="#{row.task.typeImg}" id="i8" shortDesc="#{row.task.type}" visible="#{row.task.typeImg!=''}"/> </af:column> <af:column sortable="true" id="c5" width="1%" shortDesc="Complete"> <af:image source="#{row.task.statImg}" id="i9" shortDesc="#{row.task.statImg}" visible="#{row.task.statImg!=''}"/> </af:column> <af:column sortable="true" headerText="Comment" id="c6" width="64%" sortProperty="task.id" filterable="true"> <af:popup id="pTaskInfo" contentDelivery="immediate"> <af:panelWindow id="pw2" title="#{row.task.id}" modal="true" titleIconSource="#{row.task.typeImg}" inlineStyle="width:300px;"> <af:outputText value="#{row.task.summary}" id="ot16"/> <af:panelFormLayout id="pfl2" rows="4" maxColumns="3" inlineStyle="border-top:solid 1px Silver; padding-top:5px; margin-top:5px;"> <af:outputText value="#{viewBundle.value_taskInfo1}" id="outputText1" inlineStyle="font-weight:bold;"/> <af:outputText value="#{viewBundle.value_taskInfo2}" id="ot10" inlineStyle="font-weight:bold;"/> <af:outputText value="#{viewBundle.value_taskInfo3}" id="ot12" inlineStyle="font-weight:bold;"/> <af:outputText value="#{viewBundle.value_taskInfo4}" id="ot14" inlineStyle="font-weight:bold;"/> <af:outputText value="#{row.task.type}" id="ot9" noWrap="true"/> <af:outputText value="#{row.task.priority}" id="ot11" noWrap="true"/> <af:outputText value="#{row.task.status}" id="ot13" noWrap="true"/> <af:outputText value="#{row.task.assignee}" id="ot15" noWrap="true"/> </af:panelFormLayout> </af:panelWindow> </af:popup> <af:group id="g3"> <af:goLink text="#{row.task.id}" id="gl1" destination="#{row.task.link}" targetFrame="_blank" inlineStyle="color:rgb(0,99,148);"> <af:showPopupBehavior triggerType="contextMenu" popupId="pTaskInfo" alignId="gl1" align="afterStart"/> </af:goLink> <af:outputText value="#{row.comment}" id="ot6" shortDesc="#{row.comment}"/> </af:group> </af:column> </af:table>
Published by: Vis555 on July 20, 2012 10:08Hello
You can move ouside popup table and display the popup window
concerning
Published by: Praveen on July 20, 2012 12:08
-
10g - how to get the total overall totals
I need to generate a report of sales of products and companies with 3 columns of running totals. The columns are the amounts of gross sales,
the commissions earned and net premiums (gross sales - commissions earned). As each item in the purchase order, a record (transaction.transaction_id) is created and also
inserted into the table transaction_link as FK (transaction_link.trans_settle_id). When transaction_link has all the elements necessary to complete the order, the seller receives
his commission and totals to add to the report.
Here are the tablesscrewdrivers gross premium commission net premium(gross - commission) philips 1000 300 700 sears 500 200 300 === === === screwdriver ttl 1500 500 1000 power drills dewalt 1000 300 700 makita 600 200 400 === === === power drill ttl 1600 500 1100 grand total 3100 1000 1100
provider - prov_id (pk)
PRODUCT_TYPE - prod_type_id (pk)
transaction-transaction_id (pk), amount, dealer_commission
transaction_link - trans_settle_id, trans_trade_id, trans_type
I'm using the With clause, if I understand correctly it is very effective, but all the other tips are welcome:
net premium of the gross premium commission (gross-commission)WITH getSettlementTransaction AS (SELECT transaction_id FROM transaction trans WHERE trans.trans_type_id = 9 AND trans.PROV_ID = 25 AND trans.TRADE_DATE BETWEEN '1-SEP-05' AND TRUNC(SYSDATE)+1 ), getWireTransaction AS (SELECT trans_trade_id, trans_settle_id, trans.prov_id, prov.prov_name, trans.amount, trans.dealer_commission, trans.prod_type, prod.product_type FROM transaction_link, transaction trans, provider prov, product_type prod WHERE trans_link_type_id = 3 AND trans.transaction_id = transaction_link.trans_trade_id AND prov.PROV_ID = trans.PROV_ID AND trans.prod_type = prod.product_type_id AND trans.TRADE_DATE BETWEEN '1-SEP-05' AND TRUNC(SYSDATE)+1 ) SELECT prov_name, product_type, SUM(amount) gross_premium, SUM(dealer_commission) commission_earned , SUM(amount) - SUM(dealer_commission) FROM getWireTransaction, getSettlementTransaction WHERE trans_settle_id = transaction_id GROUP BY prov_name, product_type;
Philips 1000 700 300
Sears 500 200 300
But it doesn't give me the total for each vendor and does not include totals as I need.
Any guidance would be appreciated. Thank you.Hello
Achtung wrote:
It's great! Is it possible to format?DEPTNO:10 ENAME SAL --------------- ---------- CLARK 2450 KING 5000 MILLER 1300 Dept. Total 8750 DEPTNO:20 ADAMS 1100 FORD 3000 JONES 2975 SCOTT 3000 SMITH 800 Dept. Total 10875 DEPTNO:30 ALLEN 1600 BLAKE 2850 JAMES 950 MARTIN 1250 TURNER 1500 WARD 1250 Dept. Total 9400 Grand Total 29025
I don't know how to make a line like "DEPTNO:10" before the header. It was maybe just a typo.
GROUP OF ROLLUP (or GROUP BY GROUPING SETS) will produce an great aggregate (such as 'Dept 9400 Total') line for each distinct value of the column rolled up. It looks like you want two of these lines: one at the beginning of each Department ("DEPTNO:30") and the other at the end ("min. Total 9400'). I don't know if you can get in a single subquery with GROUP BY. You can get it without a doubt with the UNION.
WITH union_results AS ( -- This branch of the UNION produces the header row for each department -- (and also the blank row before the grand total) -- SELECT deptno AS raw_deptno , CASE WHEN GROUPING (deptno) = 0 THEN 'DEPTNO: ' || deptno END AS display_deptno , NULL AS ename , NULL AS sal , 1 AS group_num FROM scott.emp GROUP BY ROLLUP (deptno) -- UNION ALL -- -- This branch of the UNION produces the rows for each employee, and the "Total" rows -- SELECT deptno AS raw_deptno , NULL AS display_deptno , CASE WHEN GROUPING (deptno) = 1 THEN ' Grand Total' WHEN GROUPING (ename) = 1 THEN ' Dept. Total' ELSE ename END AS ename , SUM (sal) AS sal , CASE WHEN GROUPING (ename) = 0 THEN 2 ELSE 3 END AS group_num FROM scott.emp GROUP BY ROLLUP (deptno, ename) ) SELECT display_deptno AS deptno , ename , sal --, group_num FROM union_results ORDER BY raw_deptno , groUp_num , ename ;
Results:
DEPTNO ENAME SAL ------------ --------------- ---------- DEPTNO: 10 CLARK 2450 KING 5000 MILLER 1300 Dept. Total 8750 DEPTNO: 20 ADAMS 1100 FORD 3000 JONES 2975 SCOTT 3000 SMITH 800 Dept. Total 10875 DEPTNO: 30 ALLEN 1600 BLAKE 2850 JAMES 950 MARTIN 1250 TURNER 1500 WARD 1250 Dept. Total 9400 Grand Total 29025
The subquery is needed only to hide a part of the ORDER BY columns.
You can comment the group_num column in the SELECT clause, to see how it works.
Maybe you are looking for
-
What does it mean when he says "a script slows down the computer running slowly?
Whenever I'm on FACEBOOK, I get a grey inset block on the screen saying that something is causing a "script" and, therefore, my computer works more slowly.
-
I spoil yesterday 8/24 today my system is not compatible, and every thing is blurry. I am trying to use the system restore, but nowhere can I enter the date of 2 days ago that do I do? Post proposed by the facilitator for the appropriate forum placed
-
Why my computer installs windows 10 without my concern?
So tonight I've calmly ended up playing video games, when all of a sudden the computer decides that it is time to upgrade to windos 10 without even asking questions first. But since I didn't install windos 10 I restarted my pc. Now, my computer is in
-
Formatting CD in Windows 7 Home premium
In Windows 7, how to format a blank CD with a slower speed? I don't see no choice on the format screen to set the speed. The computer screen that shows readers has a box dialog CD format but no way to set the speed.
-
Smartphones blackBerry how to globally remove PDF files on the 9900
My 9900 file list "" documents "to go has 100s of files PDF named"sla.pdf"and"warrenty.pdf. " I can remove them with a global deletion of some sort? Why BB put them there? They have just a bloody nuisance. Someone has it on their 9900 besides