WITH clause and Custom Folders in Discoverer 10.1.2....

Hi ,
Is there any way to write a sql query using the WITH clause in Discoverer Administrator 10.1.2. custom folder....???
I mean something like this......
WITH sample_data as (select .........)
as
  (select ..... from sample_data) which of course is valid in SQL*PLUS....
Thanks , a lot
Simon

Hi ,
sorry but i didn't make it working.....
I have written this WITH clause...
SQL> with sample_data as (select '13' as id , 'Y' as in_active from dual
  2                       union all
  3                       select '194' as id , 'Y' as in_active from dual
  4                       union all
  5                       select '792' as id , 'N' as in_active from dual)
  6    select id , in_active from sample_data
  7  /
ID  IN_ACTIVE
13  Y
194 Y
792 NIn custom folder of Discoverer , i have written....
  select id , in_active from  (with select '13' as id , 'Y' as in_active from dual
                     union all
                     select '194' as id , 'Y' as in_active from dual
                     union all
                     select '792' as id , 'N' as in_active from dual)But an error occured....ORA-00903 invalid table name
Can somebody help me in this...?????
Thanks , a lot
Simon

Similar Messages

  • Difference between WITH CLAUSE and INLINNE VIEW.

    Hi experts.
    Can anyone explain me the diff. between WITH CLAUSE and INLINNE VIEW with some example.
    Thanks in advance.

    user10314274 wrote:
    Hi experts.
    Can anyone explain me the diff. between WITH CLAUSE and INLINNE VIEW with some example.Generally, they are the same thing with a few minor differences.
    The WITH clause gives you a little more control on how the sub-queries are to be set up and used and allows the same subquery to be used multiple times without re-reading the data. Both simulate the functionality of views.
    I feel the WITH clause provides better strucure and maintainablility.
    The WITH clause aslo offesr two hints, INLINE and MATERIALIZE that can affect performance - both are used with the query in the IN clause. INLINE causes the subquery to be used as a subquery (inline view) while MATERIALIZE requests that the data be copied to a temporary table first. These hints are undocumented but are recognized by the user community.
    Edited by: riedelme on Jan 20, 2010 6:32 AM

  • Adding dynamic 'start with' clause in Hierarchial query in Discoverer 4i

    I have created a custom folder based upon the following hierarchial guery:
    SELECT supervisor_name, level
    FROM xxhr084_hr_emps_v
    START WITH supervisor_name = 'TEST SUPER'
    CONNECT BY prior person_id = supervisor_id
    ORDER SIBLINGS by supervisor_name
    I want the 'START WITH' value to be based upon a parameter i.e. the User enters the value of supervisor name at runtime.
    However, I can't use a parameter within the custom folder and I can't generate the 'start with' condition in my workbook.
    Anyone have a solution for populating the start with clause at run-time?
    Thanks,
    Kevin

    Can you create the custom folder without a condition on supervisor_name - i.e. without the supervisor_name = 'X' starts with clause - in the EUL, and then define the condition on the supervisor_name field within the report?
    SELECT supervisor_name, level
    FROM xxhr084_hr_emps_v
    CONNECT BY prior person_id = supervisor_id
    ORDER SIBLINGS by supervisor_name
    You can then restrict the results that the hierarchical query returns (from the custom folder) within the report, by adding a condition on supervisor_name.
    Hope that makes some sense.

  • SQL query to find all the custom folders in Discoverer (query posted)

    I know its not a question I am posting..this is just to inform community users that this query makes life easier in case someone wants to find out all the custom folders in a particular EUL (folder name starting with XX)
    select b.ba_name,f.obj_name folder_name,f.obj_id,f.obj_ext_owner Owner
    from
    APPS.EUL5_objs f
    , APPS.EUL5_ba_obj_links l
    , APPS.EUL5_bas b
    where 1=1
    and f.obj_id= l.bol_obj_id
    and b.ba_id= l.bol_ba_id
    and b.ba_name like 'XX%'
    order by b.ba_name,f.obj_name;
    Hopefully it would be useful to others!

    Connect as sysdba and try..
    To list all objects >100M in size.
    SQL> select owner, segment_type, segment_name, sum(bytes)/(1024*1021) from dba_segments
    group by owner, segment_type, segment_name
    having sum(bytes)/(1024*1021) > 100
    For tablespaces ..
    select tablespace_name, sum(bytes) tablespace_size
    from dba_data_files
    group by tablespace_name
    union all
    select tablespace_name, sum(bytes) tablespace_size
    from dba_temp_files
    group by tablespace_name
    order by tablespace_name

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

  • With clause and union

    any alternative solution for these kind of query? i have union in two with clause query but resulting error.
    below is a sample example.
      1   with x as (select distinct no from dbo.tt)
      2   select * from x
      3  union all
      4   with yy as (select distinct no from dbo.tt)
      5*  select * from yy
    SQL> /
    select * from yy
    ERROR at line 5:
    ORA-32034: unsupported use of WITH clause

    with x as (select distinct no from dbo.tt),
         yy as (select distinct no from dbo.tt)
    select * from x
    union all
    select * from yySY.

  • Problem with Mail and customized keyboard layout

    I have created a customized keyboard layout in XML, it loads and works perfectly with all applications except Apple Mail. I noticed on a googlegroup that somebody has the same problem. How can I submit this Mail bug to Apple?

    download and run Find Any File to search for  "Antidote".
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. Any file you find will be in the search results window and can be dragged to the Desktop and then to the Trash bin.
    OT

  • Selcetion with MB51 and Customer number

    When we select in transaction MB51 with movement type 601, customer number and posting date we got only all shipments without customer special stock (E) in the document list.
    But we want to see all shipments from unrestricted stock and from customer stock for one customer in a entered period.
    Are there any settings in Customizing to solve this problem?

    Hi Rudolph
    You can check customizing in the below path and modify your MB51 according to your requirement.
    spro>MM>inventory mangement>reporting>define display selection for material document list.
    Assign the required selection or output field here for program RM07DOCS. You can pick fields of MSEG and MKPF tables.
    Here you can modify MB51's selection screen and output screeen. Hope this will help you.
    Regards
    Antony

  • Problems with orders and customer support

    Here is my dilemma,
    I NEED photoshop for school so I ordered Creative Suite on January 26 and they never delivered it, in fact they CANCELED my order. So I had to reorder it on February 2nd. They delivered it to me but in fact sent the WRONG ONE. So I was forced to order it yet again. After probably ten phone calls to customer service making sure I would receive the correct product in time. Finally after a month of dealing with these issues my order finally arrived only for me to find out that Photoshop wont work on my computer. I called customer service AGAIN to get some assistance. I was told the wait would be 5 minutes but I ended up waiting for over an hour before I decided to call from another phone at the same time. I was told by the automated system that "Adobe's operating hours were from 5am to 7pm" and to "please call back within those reasonable times."
    Of course you can see how frustrated I am due to the fact that I have been dealing with these incidents for a month and I NEED these applications for my school projects and have had to resort to using Word for projects. Can anyone help me get in contact with someone who will actually help and get me what I need instead of me having to go through these ridiculous loops of annoying problems.

    Well, no offense, but you're not telling us anything. If you want help, as a minor you should probably tell us what computer and operating system you are using and why it doesn't qualify. Merely venting your frustrations doesn't help anyone. You could also post in the DIS forum, if you insist on getting more direct contact. Not saying that the employees there can help you better - after all, they, too, are mostly those poor Indian saps Adobe chose to let handle support - but they will try.
    Mylenium

  • RDS 2012 - Virtual desktop collection with powershell and custom answerfile fails on VDI deployment

    Hi Guys,
    I try to deploy a new virtual desktop collection with Win8 VDI's (pooled/managed) based on a custom answer file. Everything needs to automated so working with the server manager is not an option, that's why the answer file is needed.
    The lab environment is based on Windows Server 2012 and Win8 Enterprise only. So functional level etc. is off course Windows Server 2012.
    I Use the following command:
    New-RDVirtualDesktopCollection `
    -CollectionName "Pooled Managed Win8" `
    -Description "This collection contains Pooled and Managed Win 8 VDI machines." `
    -OU "VDI" `
    -ConnectionBroker "RDSCB01.lab.local" `
    -PooledManaged `
    -CustomSysprepUnattendFilePath "\\hyper02\_Unattend\OOBE-only.xml" `
    -VirtualDesktopAllocation @{"hyper02.lab.local"=3} `
    -VirtualDesktopNamePrefix "Pooled-Win8-" `
    -UserGroups "lab.local\domain users" `
    -MaxUserProfileDiskSizeGB 1 `
    -VirtualDesktopTemplateHostServer "hyper02.lab.local" `
    -VirtualDesktopTemplateName “_WIN8-Template” `
    -UserProfileDiskPath "\\hyper02.lab.local\_UserProfileDisks" `
    -StorageType LocalStorage `
    -LocalStoragePath "E:\_VDI" `
    -Force `
    -Debug
    $error[0]|format-list -force
    I tried multiple answer files, but even with this simple one it fails:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-US</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>nl-NL</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <UserAccounts>
    <AdministratorPassword>
    <Value>UABhAHMAcwB3AG8AcgBkACEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>UABhAHMAcwB3AG8AcgBkACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Admin</Description>
    <DisplayName>Admin</DisplayName>
    <Group>Administrators</Group>
    <Name>Admin</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>3</ProtectYourPC>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:d:/=%20software/iso&apos;s/lic/en_windows_8_enterprise_x64_dvd_917522/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Everything goes fine, until is comes to the deployment of the VDI machines and the answer file is called. It fails with the following error:
    PS N:\> \\dc01\isos\New-VirtualDesktopCollection.ps1
    Unable to retrieve the details of the virtual desktop collection.
    + CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
    + FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRo
    lloutCommand
    + PSComputerName : localhost
    CollectionName Type Size PercentInUse
    Pooled Managed... PooledManaged 0 0
    writeErrorStream : True
    OriginInfo : localhost
    Exception : System.Management.Automation.RemoteException: Unable to retrieve the details of the virtual desktop
    collection.
    TargetObject :
    CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
    FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRolloutCo
    mmand
    ErrorDetails :
    InvocationInfo :
    ScriptStackTrace :
    PipelineIterationInfo : {}
    PSMessageDetails :
    Without the answer file parameter is runs perfectly, BUT the VDI machines get the OOBE.... That's not what we want off course....
    This link (http://support.microsoft.com/kb/2747656?wa=wsignin1.0) and other sources tell me that when i set the regkeys i can find a log in c:\windows\logs, but there is
    nothing. I looked on the management server and the connection broker.
    The only thing i could find in the event viewer was this:
    The XML input specified for the VM Provisioning job is not in a valid format. Error: 0xC00CEE03
    Input XML:
    <?xml version="1.0"?>
    <rdvp:RDVProvisioning xmlns:rdvp="http://www.microsoft.com/rdv/2010/05/">
    <rdvp:ProvisionPoolRequest><rdvp:Job>
    <rdvp:Action>Create</rdvp:Action>
    <rdvp:OnError>Stop</rdvp:OnError></rdvp:Job>
    <rdvp:Pool><rdvp:Name>Pooled_Managed_W</rdvp:Name>
    <rdvp:Type></rdvp:Type>
    <rdvp:VhdType>DiffDisk</rdvp:VhdType>
    <rdvp:SaveDelay></rdvp:SaveDelay>
    <rdvp:Version></rdvp:Version>
    <rdvp:MARK_HA>No</rdvp:MARK_HA></rdvp:Pool>
    <rdvp:Vm>
    <rdvp:BaseVmLocation>\\RDSCB01\RDVirtualDesktopTemplate\Pooled_Managed_W\IMGS\__3</rdvp:BaseVmLocation>
    <rdvp:LocalVmCreationPath>E:\_VDI</rdvp:LocalVmCreationPath>
    <rdvp:LocalGoldCachePath></rdvp:LocalGoldCachePath>
    <rdvp:SMBShare></rdvp:SMBShare>
    <rdvp:EnableVmStreaming>0</rdvp:EnableVmStreaming>
    <rdvp:RunVMsFromSMB>0</rdvp:RunVMsFromSMB>
    <rdvp:NamingPrefix>Pooled-Win8</rdvp:NamingPrefix>
    <rdvp:NamingStartIndex>1</rdvp:NamingStartIndex>
    <rdvp:Domain>lab.local</rdvp:Domain>
    <rdvp:OU>OU=VDI,OU=Computers,OU=Kamer 2101,DC=lab,DC=local</rdvp:OU>
    <rdvp:ProductKey></rdvp:ProductKey>
    <rdvp:UnattendXml>
    <![CDATA[<?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>3</ProtectYourPC>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    </component>
    </settings>
    </unattend>]]>
    </rdvp:UnattendXml>
    </rdvp:Vm>
    <rdvp:HyperVHosts>
    <rdvp:HyperVHost>
    <rdvp:Name>hyper02.lab.local</rdvp:Name>
    <rdvp:NumberVms>3</rdvp:NumberVms>
    </rdvp:HyperVHost>
    </rdvp:HyperVHosts>
    </rdvp:ProvisionPoolRequest>
    </rdvp:RDVProvisioning>----------------------------------------------------------------------Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Admin
    Source: TerminalServices-SessionBroker
    EventID: 1549
    Level: Error
    User: NETWORK SERVICE
    Task Category: MS VM Provisioning Plugin
    Computer: RDSCB01.lab.local
    I hope we can get this working, thanks in advance everybody!
    Regards,
    Bart

    Hi Bartsp34ks,
    I'm trying to make a powershell script like yours.
    But at some point I receive this error:
    System.Management.Automation.RemoteException: VM ASD-1: The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A)
    My Powershell script is:
    $CollectionName = Read-Host 'What Name should the Collection have?'
    $Description = Read-Host 'Type a description of the Collection'
    $OU = Read-Host 'In which OU should I put the Collection?'
    $ConnectionBroker = Read-Host 'What is the Connection Broker Name? (use FQDN)'
    $Sysprep = Read-Host 'Type the Unattend file location'
    $DesktopAllocation = Read-Host 'On which RD Virtualization Host server should I create the Collection?'
    $DesktopAllocationNR = Read-Host 'How many Virtual Desktop would you like?'
    $NamePrefix = Read-Host 'What is the Prefix Name?'
    $NameSuffix = Read-Host 'What is the Suffix Name?'
    $UserGroup = Read-Host 'Which User Group can use the Collection?'
    $UserProfile = Read-Host 'How big can the ProfileDisk be?'
    $TemplateServer = Read-Host 'What is the RD Host that has the Virtual Desktop Template? (use FQDN)'
    $TemplateName = Read-Host 'What is the Virtual Desktop Template Name?'
    $UserProfilePath = Read-Host 'What should be the User Profile Path?'
    $StorageType = Read-Host 'How should be stored?'
    $StoragePath = Read-Host 'Type the Path'
    New-RDVirtualDesktopCollection `
    -CollectionName $CollectionName `
    -Description $Description `
    -OU $OU `
    -ConnectionBroker $ConnectionBroker `
    -PooledManaged `
    -CustomSysprepUnattendFilePath $Sysprep `
    -VirtualDesktopAllocation @{$DesktopAllocation=$DesktopAllocationNR} `
    -VirtualDesktopNamePrefix $NamePrefix `
    -UserGroups $UserGroup `
    -MaxUserProfileDiskSizeGB $UserProfile `
    -VirtualDesktopTemplateHostServer $TemplateServer `
    -VirtualDesktopTemplateName $TemplateName `
    -UserProfileDiskPath $UserProfilePath `
    -StorageType LocalStorage `
    -LocalStoragePath $StoragePath `
    -Force `
    -Debug
    $error[0]|format-list -force
    Thanks for help

  • Difficulty using an Aperture Web gallery with Iweb and custom domain

    I am not using a .Mac account. I do however, use Aperture to create web galleries. I cannot get Iweb to link to all my Aperture web galleries. Aperture web galleries create index.html files. When I link to a file called index.html nothing happens. Can someone please help. Thank you. Tom

    You need to use the entire URL and have your folders already uploaded to your server.
    Syntax would be something like this:
    http://myserver.com/foldername
    Since index.html is default you can leave it out of the URL.
    I don't use Aperture so I don't know the method it uses. I would suspect it allows you to name a folder for the files and inside it is the index.html file and maybe a folder of images and other support files.

  • Can't connect with SFTP and custom port

    I administer a website that recently switched its connection from FTP to SFTP, using port 21001.  I tried to edit the connection profile in Contribute CS4 to SFTP, but don't see where to add the custom port. (Advanced options are for Proxy servers).  I tried to append the port number to the host name (:21001), but Contribute still won't connect.  I am able to connect to the webserver with the new settings using an FTP program.  What do I need to do to specify the custom port for the SFTP connection in Contribute?
    Thanks,
    Robert

    Use Static Ip,,,subnet mask ,,,Default Gateway & DNS numbers from the router setup page(Go to Status page) ... On the router changethe MTU size to 1365 ...click save settings ... Uncheck block WAN request under security tab ... Click save settings ... See if it works ...

  • Need help with WITH Clause and Outer-Joins

    Hi,
    I have been struggling to understand these queries.
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 20 15:28:33 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> conn hr@xe
    Enter password:
    Connected.
    SQL> with week as ( select * from (select 1 item, 10 qty, 1 week from dual ))
      2  select main.item
      3       , week1.qty qty1
      4       , week2.qty qty2
      5    from week week1
      6       , week week2
      7       , ( select 1 item from dual ) main
      8   where main.item = week1.item (+)
      9     and week1.week (+) = 1
    10     and main.item = week2.item (+)
    11     and week2.week (+) = 2
    12     ;
          ITEM       QTY1       QTY2
             1
    SQL> with week as ( select 1 item, 10 qty, 1 week from dual )
      2  select main.item
      3       , week1.qty qty1
      4       , week2.qty qty2
      5    from week week1
      6       , week week2
      7       , ( select 1 item from dual ) main
      8   where main.item = week1.item (+)
      9     and week1.week (+) = 1
    10     and main.item = week2.item (+)
    11     and week2.week (+) = 2
    12     ;
          ITEM       QTY1       QTY2
             1         10
    SQL>I don't understand why the first query won't show the result for QTY1. The only difference they have is that the first uses an additional inline view.
    Can someone please explain the reason behind.
    Thanks,
    Allen
    Edited by: Allen Sandiego on Oct 20, 2011 3:31 PM
    Enclosed in CODE tags.

    Also in 10.2.0.4.0. The predicate part contains a clue about the transformation
    mhouri > select * from v$version;
    BANNER                                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi               
    PL/SQL Release 10.2.0.4.0 - Production                                         
    CORE     10.2.0.4.0     Production                                                     
    TNS for Solaris: Version 10.2.0.4.0 - Production                               
    NLSRTL Version 10.2.0.4.0 - Production                                         
    mhouri > with week as ( select * from (select 1 item, 10 qty, 1 week from dual ))
      2        select
      3               main.item
      4             , week1.qty qty1
      5             , week2.qty qty2
      6          from week week1
      7             , week week2
      8             , ( select 1 item from dual ) main
      9         where main.item = week1.item (+)
    10           and week1.week (+) = 1
    11          and main.item = week2.item (+)
    12          and week2.week (+) = 2;
          ITEM       QTY1       QTY2                                                                                       
             1                                                                                                             
    mhouri > select * from table(dbms_xplan.display_cursor);
    | Id  | Operation                  | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |             
    |   0 | SELECT STATEMENT           |                             |       |       |     8 (100)|          |             
    |   1 |  TEMP TABLE TRANSFORMATION |                             |       |       |            |          |             
    |   2 |   LOAD AS SELECT           |                             |       |       |            |          |             
    |   3 |    FAST DUAL               |                             |     1 |       |     2   (0)| 00:00:01 |             
    |   4 |   MERGE JOIN OUTER         |                             |     1 |    18 |     6   (0)| 00:00:01 |             
    |   5 |    NESTED LOOPS OUTER      |                             |     1 |     9 |     4   (0)| 00:00:01 |             
    |   6 |     FAST DUAL              |                             |     1 |       |     2   (0)| 00:00:01 |             
    |*  7 |     VIEW                   |                             |     1 |     9 |     2   (0)| 00:00:01 |             
    |   8 |      TABLE ACCESS FULL     | SYS_TEMP_0FD9D6631_72948EFD |     1 |    39 |     2   (0)| 00:00:01 |             
    |   9 |    BUFFER SORT             |                             |     1 |     9 |     4   (0)| 00:00:01 |             
    |* 10 |     VIEW                   |                             |     1 |     9 |     2   (0)| 00:00:01 |             
    |  11 |      TABLE ACCESS FULL     | SYS_TEMP_0FD9D6631_72948EFD |     1 |    39 |     2   (0)| 00:00:01 |             
    Predicate Information (identified by operation id):                                                                    
       7 - filter(("WEEK1"."ITEM"=1 AND "WEEK1"."WEEK"=1))                                                                 
      10 - filter(("WEEK2"."ITEM"=1 AND "WEEK2"."WEEK"=2))                                                                 
    33 rows selected.
    mhouri > with week as ( select * from (select 1 item, 10 qty, 1 week from dual ))
      2        select /*+ no_query_transformation */
      3               main.item
      4             , week1.qty qty1
      5             , week2.qty qty2
      6          from week week1
      7             , week week2
      8             , ( select 1 item from dual ) main
      9         where main.item = week1.item (+)
    10           and week1.week (+) = 1
    11          and main.item = week2.item (+)
    12          and week2.week (+) = 2;
          ITEM       QTY1       QTY2                                                                                       
             1         10                                                                                                  
    mhouri > select * from table(dbms_xplan.display_cursor);
    | Id  | Operation                  | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |             
    |   0 | SELECT STATEMENT           |                             |       |       |     9 (100)|          |             
    |   1 |  TEMP TABLE TRANSFORMATION |                             |       |       |            |          |             
    |   2 |   LOAD AS SELECT           |                             |       |       |            |          |             
    |   3 |    VIEW                    |                             |     1 |     9 |     2   (0)| 00:00:01 |             
    |   4 |     FAST DUAL              |                             |     1 |       |     2   (0)| 00:00:01 |             
    |*  5 |   HASH JOIN OUTER          |                             |     1 |    21 |     7  (15)| 00:00:01 |             
    |*  6 |    HASH JOIN OUTER         |                             |     1 |    12 |     5  (20)| 00:00:01 |             
    |   7 |     VIEW                   |                             |     1 |     3 |     2   (0)| 00:00:01 |             
    |   8 |      FAST DUAL             |                             |     1 |       |     2   (0)| 00:00:01 |             
    |*  9 |     VIEW                   |                             |     1 |     9 |     2   (0)| 00:00:01 |             
    |  10 |      TABLE ACCESS FULL     | SYS_TEMP_0FD9D6630_72948EFD |     1 |     9 |     2   (0)| 00:00:01 |             
    |* 11 |    VIEW                    |                             |     1 |     9 |     2   (0)| 00:00:01 |             
    |  12 |     TABLE ACCESS FULL      | SYS_TEMP_0FD9D6630_72948EFD |     1 |     9 |     2   (0)| 00:00:01 |             
    Predicate Information (identified by operation id):                                                                    
       5 - access("MAIN"."ITEM"="WEEK2"."ITEM")                                                                            
       6 - access("MAIN"."ITEM"="WEEK1"."ITEM")                                                                            
       9 - filter("WEEK1"."WEEK"=1)                                                                                        
      11 - filter("WEEK2"."WEEK"=2)                                                                                        
    36 rows selected.Best regards
    Mohamed Houri

  • Help with workflows and custom objects

    Hi!
    I want to create a script or workflow that will inventory computers C: and D: drives. I would like to use a workflow so i can query many computers simultaneously.
    Unfortunately I does not get the right output. I get PSComputerName and PSSourceJobInstanceID instead of my variables.
    PS C:\Windows\system32> Get-HDDInfo -ComputerName Comp1, Comp2
    PSComputerName PSSourceJobInstanceId
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    The Workfow!
    Workflow Get-HDDInfo ([string[]]$ComputerName) {
    $Result = @()
    ForEach -Parallel ($Computer in $ComputerName) {
    $WMIComSys = Get-WmiObject -Class win32_computerSystem -Property Name -PSComputerName $Computer
    $WMIDiskDrives = Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceID = 'C:' or DeviceID = 'D:'" -PSComputerName $Computer
    $tmpOBJ = New-Object psobject
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "ComputerName" -Value $WMIComSys.Name
    foreach ($DiskDrive in $WMIDiskDrives) {
    $VolumeLetter = ($DiskDrive.deviceID).substring(0,1)
    $VolumeTotalSize = "{0:N2}" -f $(($DiskDrive.Size) / 1GB)
    $VolumeFreeSize = "{0:N2}" -f $(($DiskDrive.FreeSpace) / 1GB)
    $VolumeName = $DiskDrive.VolumeName
    # Variables outputs the correct values to C:\_tmp\test.txt
    "$VolumeLetter $VolumeTotalSize $VolumeFreeSize $VolumeName" | out-file C:\_tmp\test.txt -Append
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_VolumeName" -Value $VolumeName
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_TotalSize" -Value $VolumeTotalSize
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_FreeSize" -Value $VolumeFreeSize
    } $workflow:Result += $tmpOBJ
    return $Result
    Can anyone point me in the right direction?
    Thanks!

    I created a none-workflow version of the script:
    Function Get-TestHDDInfo ([string[]]$ComputerName) {
    $Result = @()
    ForEach ($Computer in $ComputerName) {
    $WMIComSys = Get-WmiObject -Class win32_computerSystem -Property Name -ComputerName $Computer
    $WMIDiskDrives = Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceID = 'C:' or DeviceID = 'D:'" -ComputerName $Computer
    $tmpOBJ = New-Object psobject
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "ComputerName" -Value $WMIComSys.Name
    foreach ($DiskDrive in $WMIDiskDrives) {
    $VolumeLetter = ($DiskDrive.deviceID).substring(0,1)
    $VolumeTotalSize = "{0:N2}" -f $(($DiskDrive.Size) / 1GB)
    $VolumeFreeSize = "{0:N2}" -f $(($DiskDrive.FreeSpace) / 1GB)
    $VolumeName = $DiskDrive.VolumeName
    # Variables outputs the correct values to C:\_tmp\test.txt
    "$VolumeLetter $VolumeTotalSize $VolumeFreeSize $VolumeName" | out-file C:\_tmp\test.txt -Append
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_VolumeName" -Value $VolumeName
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_TotalSize" -Value $VolumeTotalSize
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_FreeSize" -Value $VolumeFreeSize
    $tmpOBJ | out-file C:\_tmp\test.txt -Append
    $Result += $tmpOBJ
    return $Result
    This is the output:
    PS C:\Windows\system32> Get-TestHDDInfo -ComputerName Comp1, Comp2
    ComputerName : Comp1
    C_VolumeName : OSDisk
    C_TotalSize : 109,79
    C_FreeSize : 21,59
    D_VolumeName : VMs
    D_TotalSize : 223,57
    D_FreeSize : 55,76
    ComputerName : Comp2
    C_VolumeName : OSDisk
    C_TotalSize : 59,91
    C_FreeSize : 2,26
    D_VolumeName : Data
    D_TotalSize : 51,87
    D_FreeSize : 10,14
    This is how i want it to look.

  • Please Help with Viewstack and custom component

    I'm having trouble trying to embed a component within a
    viewstack. I have my main applicaiton main.mxml application and the
    calander control from quietly scheming (app.mxml) is the component.
    The issue I'm having is how to have the calendar show within my
    viewstack canvas. The app.mxml file namespaces below:
    <?xml version="1.0" encoding="utf-8"?>
    <local:app_code xmlns:local="*" xmlns="
    http://www.adobe.com/2006/mxml"
    xmlns:qs="qs.controls.*" xmlns:g="qs.graphics.*"
    xmlns:qc="qs.containers.*"
    creationComplete="load();" xmlns:ns1="qs.containers.*"
    xmlns:effects="qs.effects.*" width="100%" height="100%"
    layout="absolute">
    <Style source="calendar.css" />
    <Style source="styles.css" />
    <Script source="app_imports.as" />
    </local>
    My application main.mxml has different namespaces:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="showLogin();"
    layout="absolute"
    horizontalGap="0"
    horizontalAlign="center"
    cornerRadius="20"
    xmlns:controls="com.adobe.ac.controls.*"
    >
    </application>
    If I take the code out of app.mxml and plae it on my
    viewstack canvas, I get all types of errors referencing functions
    or components in the other namespaces.
    Does this make any sense ? I just want to view the calendar
    in the viewstack.
    Please help

    I guess I'm just not understanding the difference betweeen
    the <local:app_code> in the app.mxml file and the
    <mx:Application> in my main application.
    If I run the app.mxml by itself, everything is fine. if I try
    to take the code out and past it within the viewstack canvas I get
    reference errors. It can't find the objects/functions from the
    <local:app_code> namespace.
    I guess I'm just confused on how to structure the entire
    application.
    Thanks all for your responses.

Maybe you are looking for

  • New Imac for Final Cut Studio

    Upgrading from my 24" Imac to a refurbished 27". I'm just getting started with FCS, will this one be sufficient http://store.apple.com/us/product/FB953LL/A?mco=MTU3ODcyNDE Or will I need to upgrade to this one "really cant right now due to cost" http

  • Query on FCC for Sender  File adapter

    Hi All, Our sender file is like below: 0191011            2005100007098240081117812600811178126 3            0                                                         10001011110112000004389      EUR C000000000224397 EUR9DE   294000945681            

  • Inserting PDF inc. comments as an Object in MS Excel

    Hi, I created a PDF document (Adobe Acrobat Standard 9) including a text box comment in that PDF. When I try to insert this document in a MS Excel Spreadsheet by using "Insert --> Object --> Adobe PDF Document" the inserted PDF in Excel does not show

  • SAP ERP Security Problems

    Hello, We are searching and investigating the security problems and needs in SAP Systems (the NetWeaver and R3). We are looking for vulnerabilities from the network level up to the application and SAP-GUI level. We would like to hear and learn from u

  • Cannot configure SCSI controller

    Hi, this task has landed on my desk and i have little or no knowledge of what this involves (lucky me). I am trying to configure a SCSI controller using the cfgadm command and it will not configure? SCSI controllers and attached drives: Ap_Id Type