WITH CLAUSES - need advice

Recently we found that the server converts all the request to 'with clauses' format in the physical query even if the request does not contain any subquery. I am bit concerned on this as some article suggest that there is a limitation in using with clauses and it can return unexpected results. Could this change in behavior cause some problem?

Hi all,
We are currently using ORACLE 10g.
For ex the original query for a specific report would look like
select distinct D1.c1 as c1,
D1.c2 as c2
from
(select distinct T41994.NAME as c1,
T41994.LOC as c2
from
(SELECT
A.*,
ORA62102.F_UTC2LOCAL(A.CREATED_TS,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS CREATED_LCL,
ORA62102.F_UTC2LOCAL(A.LAST_UPD,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS LAST_UPD_LCL,
ORA62102.F_UTC2LOCAL(A.REFERENCE_START_DT,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS REFERENCE_START_DT_LCL,
ORA62102.F_UTC2LOCAL(A.INDEXED_DATE_0,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS INDEXED_DATE_0_LCL
FROM ORA62102.S_ORG_EXT A) T41994
where ( T41994.BU_ID = '1-D3DGK' and T41994.DELETED_STATE = 'N' )
) D1
Now the query is changed to the following format
WITH
SAWITH0 AS (select distinct T41994.NAME as c1,
T41994.LOC as c2
from
(SELECT
A.*,
ORA62105.F_UTC2LOCAL(A.CREATED_TS,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS CREATED_LCL,
ORA62105.F_UTC2LOCAL(A.LAST_UPD,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS LAST_UPD_LCL,
ORA62105.F_UTC2LOCAL(A.REFERENCE_START_DT,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS REFERENCE_START_DT_LCL,
ORA62105.F_UTC2LOCAL(A.INDEXED_DATE_0,'(GMT-08:00) Pacific Time (US & Canada); Tijuana') AS INDEXED_DATE_0_LCL
FROM ORA62105.S_ORG_EXT A) T41994
where ( T41994.BU_ID = '1-D3DGK' and T41994.DELETED_STATE = 'N' ) )
select distinct SAWITH0.c1 as c1,
SAWITH0.c2 as c2
from
SAWITH0
Even if I select 2 columns from a table , the select clause in the physical query in OBI server contains 'with clause'.
-Uma

Similar Messages

  • Econometrics/Statistical computaion with Java - Need advice

    Dear All,
    I need to perform econometrics/statistical computaion for the bank. We were using Matlab from MathWorks.com. Recently, we are planning to perform computation with java instead of Matlab.
    e.g. below is the sample equation that I want to evaluate in java -
    ∆Φ_^(-1) (SDP_t )_ =B_1 〖∆SDF〗_(t-1 )+ B_2 〖∆XXX〗_(t-2 ) + B_3 〖∆linear〗_(t-1)+B_4 〖∆Linear〗_(t-2)
    +Z_m
    My question is, I have not found API in java though which I can perform calculation. Also, we are performing this type of computation first time in java, does java supports all statistics calculation like standard deviation, mean distribution et cetera.
    I came across Apache commons-maths library which provides class related to maths/statistics. (http://commons.apache.org/math/api-1.2/index.html)
    Has anyone performed statistics/equation evaluation in java or with Apache commons-maths? Please share your thought?
    I appreciate your time reading my post.
    Edited by: rasmeh on Jan 28, 2010 12:06 PM
    Edited by: rasmeh on Jan 28, 2010 12:07 PM
    Edited by: rasmeh on Jan 28, 2010 12:11 PM

    the concept of mean distribution must be sth in econometrics that hasn't caught on.
    Java math does not define standard deviation or any other stat methods. it's quite easy to program though. to do linear algebra and optimization you will need to call C or Fortran libraries from java. no need to reinvent the wheel.
    cheers
    s.

  • Treo 700P with contacts - need advice on synchronizing with new outlook user profile

    Hello Treo Experts.
    I have a Treo 700P.
    It is full of contacts.
    I have a new Outlook user profile and am unable to synchronize between the Treo and Outlook.
    I deinstalled Palm SW and reinstalled it
    I am about to 'syhncronize the Treo with my computer
    my question is: Is this safe to do? I don't want to lose all my contacts on my Treo. 
    Any suggestions - greatly appreciated!
    Post relates to: Treo 700p (Verizon)
    Post relates to: Treo 700p (Verizon)

    Hi..  Welcome to the Palm forums.  You should be fine, the contacts on the device should write to outlook and combine with what ever is in outlook.
    Post relates to: Centro (Sprint)

  • Need help with INSERT and WITH clause

    I wrote sql statement which correctly work, but how i use this statment with INSERT query? NEED HELP. when i wrote insert i see error "ORA 32034: unsupported use of with clause"
    with t1 as(
    select a.budat,a.monat as period,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    c.wrbtr,
    c.matnr,
    c.menge,
    a.monat,
    c.zuonr
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='D'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,t2 as(
    select a.BUKRS,a.BELNR, a.GJAHR,t1.vtweg,t1.budat,t1.monat from t1, ldw_v1.bkpf a
    where t1.zuonr=a.xblnr and a.blart='WL' and bukrs='8431'
    ,tcogs as (
    select t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    sum(bseg.wrbtr) as COGS,bseg.matnr,bseg.kunnr,sum(bseg.menge) as QUANTITY
    from t2, ldw_v1.bseg
    where t2.bukrs=bseg.bukrs and t2.belnr=bseg.BELNR and t2.gjahr=bseg.gjahr and BSEG.KOART='S'
    group by t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    bseg.matnr,bseg.kunnr
    ,t3 as
    select a.budat,a.monat,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    case when c.shkzg='S' then c.wrbtr*(-1)
    else c.wrbtr end as NTS,
    c.matnr,c.kunnr,
    c.menge*(-1) as Quantity
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='S'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,trevenue as (
    select t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,
    sum(t3.NTS) as NTS,t3.matnr,t3.kunnr,sum(t3.QUANTITY) as QUANTITY
    from t3
    group by t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,t3.matnr,t3.kunnr
    select NVL(tr.budat,tc.budat) as budat,
    NVL(tr.monat,tc.monat) as monat,
    NVL(tr.vtweg,tc.vtweg) as vtweg,
    NVL(tr.gjahr, tc.gjahr) as gjahr,
    tr.hkont as NTS_hkont,
    tc.hkont as COGS_hkont,
    NVL(tr.prctr,tc.prctr) as prctr,
    NVL(tr.MATNR, tc.MATNR) as matnr,
    NVL(tr.kunnr, tc.kunnr) as kunnr,
    NVL(tr.Quantity, tc.Quantity) as Quantity,
    tr.NTS as NTS,
    tc.COGS as COGS
    from trevenue TR full outer join tcogs TC
    on TR.BUDAT=TC.BUDAT and TR.MONAT=TC.MONAT and TR.GJAHR=TC.GJAHR
    and TR.MATNR=TC.MATNR and TR.KUNNR=TC.KUNNR and TR.QUANTITY=TC.QUANTITY
    and TR.VTWEG=TC.VTWEG and TR.PRCTR=TC.PRCTR
    Edited by: user13566113 on 25.03.2011 5:26

    Without seeing what you tried it is hard to say what you did wrong, but this is how it would work
    SQL> create table t ( n number );
    Table created.
    SQL> insert into t
      2  with test_data as
      3    (select 1 x from dual union all
      4     select 2 x from dual union all
      5     select 3 x from dual union all
      6     select 4 x from dual)
      7  select x from test_data;
    4 rows created.
    SQL>

  • Day 2 with ATV, may need advice.

    iPhoNettie wrote:Apple Genius-tried syncing thru ethernet cable
    I need to know if this is possible with ethernet cable only between ATV/MacPro vs Airport wireless.
    I've spent hours with this 32gb ATV to just load and it's been nothing but long hours.
    One trick that will not work.
    Macpro is mainly using ethernet cable to the wireless access 24/7.
    I leave his airport off.
    I'm on day two of the first attempt at using ATV, it has been sitting for a year never used.
    This all started yesterday with a members advice using ATP, vs iPhone connected to RXv3900.
    What a Great iDea.
    I turned Airport on the MacPro. Not sure why I did. In the end, you need to.
    Plug in ATV, and started in last night. Noticing it's Quite slow on Airport.
    Discovered there is no real-time status of the load you checked/selected in iTunes to know if it's too much.
    Sure enough at present, the 5th time of de-selecting is to make room again.
    At 50 something, we have a set logic that's hardened.
    If dishwasher is full & ready, do you unload/reload complete to add one item?
    Apparently Apple does.
    There maybe an update that is needed.
    It's not showing up by default or where to access if there is.
    ATV finally finished with 8.5Gb free. I'll see if update is found.
    Still very reluctant to do update with ATV actually working.
    Getting to the chase here, can ATV & MacPro be direct linked w/ethernet cable?
    One test I just tried while ATV was loading again, I shut Airport off on the MacPro.
    ATV immediately disconnected from iTunes. Whoops.
    My test was to see if ATV would still get through to Mac wirelessly by accessing wifi MacPro is wired to. Nope.
    Is this telling me I don't need Comcast's wifi to connect the 2? ATV/MacPro only for loading ATV.
    Can ATV connect it's path directly to MacPro's Airport? Skipping Comcast's wifi.
    I guess my final question is/ can ATV connect to MacPro with only angry twisted copper wire?
    Also, is there any advantage with MacPro on ethernet cable and Airport on at the same time?
    I see no results either way.
    I hope my versing is with some accuracy.
    I'm not up on the latest politically correct lingo.
    For sure of one thing, a 1Tb drive is on it's way for a new mission.
    For the first time, I'm viewing trailers on ATV, and I have Airport shut off on MacPro.
    This is good. I was afraid up to this point.
    Thanks'

    Alley_Cat wrote:
    Yes they should provided you've registered the AppleTv to sync with iTunes on the Mac Pro account - do you remember setting AppleTV to connect to iTunes by entering a 5 digit code in iTunes from AppleTV?
    Yes, I have performed all the loading of ATV by wireless from iTunes from the MacPro.
    This simple ethernet connection should just work to sync from previous reports.
    This will be great. The main reason is to take ATV to the cabin or shop with no internet access.
    This should work if all you're doing is syncing and then putting the AppleTv back where you want to use it.
    However, if you want to connect by ethernet all the time, then the direct connection to the Mac Pro will not allow AppleTV to access the internet for various store/photo/YouTube features or to authorise playback of some iTunes Store material/rentals etc, unless you've configured internet sharing over the Mac Pro ethernet port and the Mac Pro is connected to the internet either via it's other ethernet port or wireless.
    Thank You, it's not a priority to access these features with ATV.
    Your best bet is to have AppleTv connect to a router to see the internet itself and to see the Mac Pro on the local network.
    Great, and I really appreciate your quick reply.
    Have a Great Day.
    Message was edited by: Philscbx

  • Major Issues with installing 4tb internal. Really need advice please

    In the process of a long needed upgrade to my 2010 Mac Pro Quad core 2.8 and have run into a serious headache that I really need advice on so I can get back to work. I've already spent 2 days dealing with all of this...
    Just did a new SSD install and Migration which went fine but I'm also updating the rest of the internal drives. My main (non boot) drive was being upgraded from a Seagate Barracuda 3tb to a 4th Deskstar NAS (it was showing as compatible with my desktop, see links below). My 3tb ran fine for years but now due to it being heavily used I want to switch to a new drive and I can also use a bit more space.
    The issue I'm running into is that initially on boot, my system was telling me it couldn't recognize the disk and it wasn't even showing up in Disk Utility. I had to purchase a SATA USB 3 kit to attach it as an external to get it to show which worked without problem. With the USB kit I was then able to partition it (GUID, Mac OS extended journaled) and format it properly. After reinserting the drive into my tower as an internal it failed to show again. After a few attempts of restarts and trying various bays it popped up but showed as a non formatted drive and I was told again that the system didn't recognise it. I was then given the option to initialise and was then actually able to then format and partition it though Disk Utility while it was installed as an internal.
    Figured that was problem solved but when I went to check the drive and getting ready to transfer files over I noticed that Disk Utility was only allowing the First Aid and Partition options but not Erase, RAID, Restore which I'd never seen before. I then also noticed that none of the drive connection info was in the same format nor will it even provide drive bay info, connection info or read/write status (See screen shots). This is what I can't figure out and really need to clarify before I put full trust into using this drive.
    Any info would be greatly appreciated...
    Deskstar 4tb internal info which is installed in Bay 2
    3tb Seagate which I trying to retire and transfer from.
    Here are the weblinks to the Deskstar 4tb drive and the compatibility list but I support isn't allowing me to add direct links so add the www. before hand.
    (Drive - eshop.macsales.com/item/HGST/0S03664/) (compatibility list - eshop.macsales.com/Descriptions/specs/Framework.cfm?page=macpromid2010.html).

    What OSX version?
    Disk Utility in later versions of ML and I think Mavericks have problems formatting with 4 TB internal drives.
    http://forums.macrumors.com/showthread.php?t=1661024
    http://apple.stackexchange.com/questions/112266/why-doesnt-my-mac-pro-see-my-new -4tb-sata-drive

  • Doc Project with format confusion- need advice

    I have a documentary project with a plethora of footage formats because the doc spans a long length of time and different project collaborators. We just shot more footage and I don't want to move forward converting the new footage until I know the best path to take form here on out. please advise.
    Here is the info.
    Below i'm listing the descritption of footage, the format, and the % I'm predicting it will be used in the final edit of the documentary I'm working on.
    Archival Footage: DV NTSC 720x480 (10%)
    Original footage shot: DV NTSC 720x480 anamorphic (40%)
    Additional Footage shot in Summer 2010 with Panasonic HVX200: DVCPRO HD 720p60 29.97 (35% shared with canon 7D footage listed below)
    Additional Footage shot in Summer 2010 with Canon 7D: shot 1920x1080 23.98 Apple Pro Res 422, pixel aspect square. I converted this footage to 720p60 29.97 to match the Panasonic footage but I still have the original files saved. (35% shared with hvx200 footage listed above)
    New Footage shot with Canon 7D: 1920x1080 23.98 Apple Pro Res 422, pixel aspect square (15%)
    Timelines:
    - I edit the SD footage in timelines with SD sequence settings matching the format of the footage
    - I edit the HD footage in timelines with DVCPRO HD sequence settings matching the format of the footage
    - when footage of both formats ends up in one 'scene' the timeline is DV NTSC 720x480
    - when I output a rough cut, I nested sequences and output DV NTSC 720x480
    I have not converted the new footage yet and before I do convert it and then transform continue editing, I feel I need to re-evauluate how I'm approaching the multi-format situation.  I need advice about the best path to take from here on out. WHAT WOULD YOU DO?
    Should I upconvert the SD footage and do everything HD from now on? The final cut will probably be 50% SD and 50% HD with possibly more HD than SD.
    If I do upconvert and go HD, is 720p60 29.97 the best format for me to use considering my footage sources? If you have any ideas, please also explain how you might go about carrying them out.
    Thank you!

    krgarty wrote:
    Exactly, whic is why I'm seeking advice. the final delivery will be film festival screenings and hopefully broadcast, and considering the channels today that = HD.
    That's not a final decision at all, that's a series of delivery options. You must produce your project in the highest resolution for which you have space, codecs and techniucal competency.You will save that as the "final" but I'd not call it that since nothing is ever finalized. Jsut keep naming the versions. Then you will open the full rez version and use any of several conversion or compresiona apps to satisfy all other distribution needs.
    The omst flexible will be a 1080/60 format but that decision will cost you tons of conversion time, lots of space, and will require many stylistic decisions along the way.
    That's what I would do but I'm not you and I'm not your client. 

  • Need advice on Career in SAP after completing 9 yrs in IT mainly in Telecommunication Domain with BMC Remedy Tool knowledge

    Need advice on Career in SAP after completing 9 yrs in IT mainly in Telecommunication Domain with BMC Remedy Tool knowledge.
    Which Module of SAP I can learn and get into as I have Tool based knowledge in BMC Remedy and fair knowledge in SQL, as I come from non-IT background. What are career prospect after completing  any SAP module now will my previous experience will be taken into account?

    Prashant,
    One of the reasons nobody has replied to you yet is that, this is a question with so little information provided.
    - There is no mention of your education background.
    - Your work background is very vague.What exactly did you do in Telecommunication Domain?
    - What exactly did you do in BMC Remedy? Where you just an end-user or did you do any background support work?
    - What exactly did you do in SQL? Did you work on it or did you just attend training?
    - Why do you want to jump into SAP? And what precisely you want to jump into in SAP?
    - What are your interests? Technical or Non-technical?
    - What's your career objective? Where do you want to be 5 years from now?
    Without providing these information how can anyone help you? Picking a module and going with it makes no sense. What if you spend an insane amount of time and money learning a module in SAP (based on some random suggestions given here) and realize that this is not what you were looking for, or there is little scope for that module in the market? What then?
    It's your career that you are planning. It definitely deserves more thought-process and planning to go into.
    pk

  • Need help in 'WITH CLAUSE' Query

    Hello Gurus,
    I am trying to calculate the count of distinct members for each provid.
    I am using the with clause to get information regarding the provid.
       WITH T AS
      (SELECT a.UD_ID MRR_ID,
                            A.UD_LASTNAME LAST_NAME,
                            A.UD_FIRSTNAME FIRST_NAME,
                            COUNT(DISTINCT DP.PA_PROVIDERID) PROVIDERS_ASSIGNED
                       FROM (SELECT UD.UD_ID,
                                    UD_LASTNAME,
                                    UD_FIRSTNAME
                               FROM USER_DETAILS       UD,
                                    MAP_USERS_TO_ROLES MR
                              WHERE MR.MUR_UR_ID_REF = 1000
                                AND MR.MUR_UD_ID_REF = UD.UD_ID) A,
                            D4C_PROVIDER_ASSIGNMENT DP
                      WHERE A.UD_ID = DP.PA_ASSIGNEDTO
                      AND dp.pa_status ='A'
                      GROUP BY A.UD_ID,
                               A.UD_LASTNAME,
                               A.UD_FIRSTNAME
                      ORDER BY 3 DESC)    OUTPUT of just above query without WITH clause.
    MRR_ID     LAST_NAME     FIRST_NAME     PROVIDERS_ASSIGNED
    1229    mrrTest         mrrTest         4
    1228    mrr2Last        mrr2First       5
    1230    mrr1Last        mrr1First       7
    1226    Panwar          SIngh           1
    1181    MRRLast         MRRTest         4
    1221    One             MRR             1
    1322    Thakuria        Bibhuthi        2I am creating this and get all the information to show on front end. Now I want to calculate the no of members as per the providers assigned for each MRR_ID
    Below query show the no of members for all the providers assigned to a provider.
    ex:
    SELECT * FROM (   
    SELECT COUNT(DISTINCT dmpc_hicn) countmember
    FROM D4C_HICN_PROVIDER_claims  a WHERE trim(DPMC_PROVIDER_NO) IN 
    (SELECT trim(pa_providerid)
       FROM d4c_provider_assignment
       WHERE pa_assignedto = 1181  (mrr_id)    --here i have use the mrrid from with clause and get the member count with all the columns coming from WITH CLAUSE.
       AND pa_roleid = 1000
       AND PA_STATUS ='A'
    GROUP BY a.dmpc_ss_id_ref)Right now I am using materialized view i dont wanna use the same..
    I am sending the materialized view code as well what i am doing ..
    ( SELECT SUM(member_count)member_count_bynpi ,mrr_id  FROM (
    (SELECT count(DISTINCT hp.dmpc_hicn) member_count,hp.DMPC_SS_ID_REF ,a1.ud_id mrr_id FROM  D4C_HICN_PROVIDER_claims hp ,
    (SELECT   a.UD_ID ,DP.PA_PROVIDERID
         FROM (SELECT UD.UD_ID, UD_LASTNAME, UD_FIRSTNAME
                 FROM USER_DETAILS UD, MAP_USERS_TO_ROLES MR
                WHERE MR.MUR_UR_ID_REF = 1000
                  AND MR.MUR_UD_ID_REF = UD.UD_ID) A,
              D4C_PROVIDER_ASSIGNMENT DP
        WHERE A.UD_ID = DP.PA_ASSIGNEDTO
        AND dp.pa_status ='A'
        /*AND dp.PA_ASSIGNEDTO = 1221*/) a1
        WHERE trim(a1.PA_PROVIDERID) = trim(hp.dpmc_provider_no)
        GROUP BY a1.ud_id,hp.DMPC_SS_ID_REF))
        GROUP BY mrr_id)Please help me to write the code with the materialized view. Thanks in Advance.
    Kind regards,
    UP
    Edited by: BluShadow on 22-Aug-2011 07:58
    fixed {noformat}{noformat} tags.  Please use lowercase "code" rather than uppercase "CODE" in the tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Probably, this may help
    WITH T1 as(
               SELECT UD.UD_ID,
                      UD_LASTNAME,
                      UD_FIRSTNAME
                FROM USER_DETAILS UD, MAP_USERS_TO_ROLES MR
                WHERE MR.MUR_UR_ID_REF = 1000
                AND MR.MUR_UD_ID_REF = UD.UD_ID)
          T2 as (SELECT a.UD_ID ,DP.PA_PROVIDERID
                 FROM T1 A, D4C_PROVIDER_ASSIGNMENT DP
                 WHERE A.UD_ID = DP.PA_ASSIGNEDTO
                 AND dp.pa_status ='A')
           T3 as(SELECT count(DISTINCT hp.dmpc_hicn) member_count,
                              hp.DMPC_SS_ID_REF ,
                               a1.ud_id mrr_id
                  FROM T2 A1 ,D4C_HICN_PROVIDER_claims hp
                  WHERE trim(a1.PA_PROVIDERID) = trim(hp.dpmc_provider_no)
                  GROUP BY a1.ud_id,hp.DMPC_SS_ID_REF)
    SELECT SUM(member_count)member_count_bynpi ,mrr_id from T3
    GROUP BY mrr_id

  • I'm desperately needing advice to a common question.  I use Quicken and love it.  But the Mac version is not as great as the PC.   Has anyone installed it by segmenting their Mac with Parallels or Fusion or Boot camp.  If so, which one do you recommend.

    I'm desperately needing advice.  New Mac.   Used Quicken on my PC.  Researched all software for Financial programs and Quicken is still the most recommended.   I want to use Quicken on my Mac.  The Mac version is not highly rated so I would need to partition my Mac.   Has anyone done this for their quicken program and if so, which partitioning program did you use - Parallels, Fusion ware or Boot camp?
    Thx

    Lisa Ellies-Laye wrote:
    Thanks.  Hadn't heard of it. ?  Is there any concern installing this free program on my Mac.    Have you used it?  Apart from being free is there any other advantage of Parallels and VMfusion. ?
    Virtual Box is safe and well developed, it offers similar or identical features to the paid competition, it may be a little less polished but that's all.
    Download and try it out, nothing to lose (except time).

  • Need help using WITH clause

    I have an update statement that is using the same suquery twice.
    I am not usre if WITh clause be used in update statements?
    Is there a way the below statement can be modified to use WITH clause?
    UPDATE EMP_TRACKING_LIST L
    SET ACTIVE_FLAG = DECODE((SELECT COUNT(*)
    FROM EMP_TRACKING_LIST L2
    WHERE L.NAME = L2.NAME AND
    L.EMP_CODE = L2.EMP_CODE AND
    L2.EMP_FLAG = 'Y'), 0, 'N', 'Y')
    WHERE ACTIVE_FLAG != DECODE((SELECT COUNT(*)
    FROM EMP_TRACKING_LIST L2
    WHERE L.NAME = L2.NAME AND
    L.EMP_CODE = L2.EMP_CODE AND
    L2.EMP_ACTIVE_FLAG = 'Y'), 0, 'N', 'Y')
    OR EMP_ACTIVE_FLAG IS NULL;
    I would really appreciate your input
    Edited by: user10937534 on Sep 2, 2009 4:47 PM

    Hi,
    WITH comes immediately before SELECT, not before UPDATE.
    To use WITH in an UPDATE statement, you would say something like:
    UPDATE  EMP_TRACKING_LIST  L
    SET     ACTIVE_FLAG =
            WITH  sub_q  AS
                SELECT  ...
            SELECT  ...
            FROM    sub_q  ...
    ;I don't think there's any way to use values from the sub-query in the WHERE clause of the UPDATE statement itself; MERGE is a much better bet for eliminating redundancy there.
    Sorry, I'm not at a database now, so I can test anything.

  • Syntax help needed in update using 'WITH' Clause

    Update     CP_JP_CORP_FSASA_FEEDUPLOAD_r r
                             set     (
                                   gfrn,                              
                                   tenor_code,
                                   tenor_description,
                                   exposure_category,          
                                   frr,          
                                   facility_classification,
                                   limit_amount,
                                   limit_usd,
                                   approval_ccy,
                                   approval_date,
                                   expiry_date,
                                   avail_status_code,
                                   avail_status_desc,
                                   revolving_indicator,
                                   committed_flag,
                                   committed_until_date,
                                   committed_amount,
                                   advised_flag,
                                   advised_amount,
                                   facility_long_description,
                                   booking_unit_code,
                                   extending_unit_code,
                                   extending_unit_short_desc,
                                   approving_unit_code,
                                   approving_unit_short_des,
                                   transaction_type,
                                   branch_no
                                   =
                                            With t as
                                                 Select     fac.gfrn,fac.tenor_code,fac.tenor_description,fac.exposure_category,fac.frr,
                                                      fac.facility_classification,fac.limit_amount,fac.limit_usd,fac.approval_ccy,
                                                      fac.approval_date,fac.expiry_date,fac.avail_status_code,fac.avail_status_desc,
                                                      fac.revolving_indicator,fac.committed_flag,fac.committed_until_date,fac.committed_amount,
                                                      fac.advised_flag,fac.advised_amount,fac.facility_long_description,fac.booking_unit_code,
                                                      fac.extending_unit_code,fac.extending_unit_short_desc,fac.approving_unit_code,fac.approving_unit_short_des,
                                                      /*'Check' normalflag,
                                                      cust.adjusted_orr fsasaorr1stborrower,
                                                      'Normal' category1stborrower,
                                                      cust.adjusted_orr fsasaorr2ndborrower,
                                                      'Normal' category2ndborrower,
                                                      cust.adjusted_orr fsasaorrfinal,
                                                      'Normal' categoryfinal */
                                                      txn.transaction_type,txn.branch_no,txn.gfcid,txn.transaction_id
                                                 from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                           --cp_fsa_boj_corp_cr_cust_hist cust,
                                                           cp_fsa_boj_corp_cr_txn_hist txn
                                                 where     fac.gfcid = txn.gfcid
                                                           and fac.facility_id = txn.facility_id
                                                           and fac.as_of_date = txn.as_of_date
                                                           and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                           and fac.as_of_date = last_day(fac.as_of_date)
                                            select      t.gfrn,
                                                      t.tenor_code,
                                                      t.tenor_description,
                                                      t.exposure_category,
                                                      t.frr,
                                                      t.facility_classification,
                                                      t.limit_amount,
                                                      t.limit_usd,                                             
                                                      t.approval_ccy,                                             
                                                      t.approval_date,                                             
                                                      t.expiry_date,                                             
                                                      t.avail_status_code,                                             
                                                      t.avail_status_desc,                                             
                                                      t.revolving_indicator,                                             
                                                      t.committed_flag,                                             
                                                      t.committed_until_date,                                             
                                                      t.committed_amount,                                             
                                                      t.advised_flag,                                             
                                                      t.advised_amount,                                             
                                                      t.facility_long_description                                             
                                                      t.booking_unit_code,                                             
                                                      t.extending_unit_code,                                             
                                                      t.extending_unit_short_desc,                                        
                                                      t.approving_unit_code,                                             
                                                      t.approving_unit_short_des,                                             
                                                      t.transaction_type,
                                                      t.branch_no
                                            from     t
                                       where      r.financialperiod           = p_financial_period
                                                 and exists
                                                           Select     1
                                                           from     t
                                                           where     t.transaction_id = r.ce_trans_id
                                                      )I'm facing syntax problem

    Hii All,
    This is my actual update.(I stopped performing dml operations in cursors following Karthick Arp) :-)
    Update     CP_JP_CORP_FSASA_FEEDUPLOAD_r r
                             set     (
                                   gfrn,                              
                                   tenor_code,
                                   tenor_description,
                                   exposure_category,          
                                   frr,          
                                   facility_classification,
                                   limit_amount,
                                   limit_usd,
                                   approval_ccy,
                                   approval_date,
                                   expiry_date,
                                   avail_status_code,
                                   avail_status_desc,
                                   revolving_indicator,
                                   committed_flag,
                                   committed_until_date,
                                   committed_amount,
                                   advised_flag,
                                   advised_amount,
                                   facility_long_description,
                                   booking_unit_code,
                                   extending_unit_code,
                                   extending_unit_short_desc,
                                   approving_unit_code,
                                   approving_unit_short_des,
                                   transaction_type,
                                   branch_no
                                   = (          
                                       Select     fac.gfrn,fac.tenor_code,fac.tenor_description,fac.exposure_category,fac.frr,
                                            fac.facility_classification,fac.limit_amount,fac.limit_usd,fac.approval_ccy,
                                            fac.approval_date,fac.expiry_date,fac.avail_status_code,fac.avail_status_desc,
                                            fac.revolving_indicator,fac.committed_flag,fac.committed_until_date,fac.committed_amount,
                                            fac.advised_flag,fac.advised_amount,fac.facility_long_description,fac.booking_unit_code,
                                            fac.extending_unit_code,fac.extending_unit_short_desc,fac.approving_unit_code,fac.approving_unit_short_des,
                                            txn.transaction_type,txn.branch_no
                                       from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                 --cp_fsa_boj_corp_cr_cust_hist cust,
                                                 cp_fsa_boj_corp_cr_txn_hist txn
                                       where     fac.gfcid = txn.gfcid
                                                 and fac.facility_id = txn.facility_id
                                                 and fac.as_of_date = txn.as_of_date
                                                 and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                 and fac.as_of_date = last_day(fac.as_of_date)
                             where Exists
                                                 Select     1
                                                 from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                           cp_fsa_boj_corp_cr_txn_hist txn
                                                 where     fac.gfcid = txn.gfcid
                                                           and fac.facility_id = txn.facility_id
                                                           and fac.as_of_date = txn.as_of_date
                                                           and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                           and fac.as_of_date = last_day(fac.as_of_date)
                                                           and txn.transaction_id = r.ce_trans_id
                                            )Now in my update I'm using same 'SELECT' twice once in 'SET' and again in 'EXISTS' clause. I'd like to make use of 'WITH' Clause and avoid unnecessary 'SELECT' . Please help me.

  • When you think you need write with clause of answers.

    This thread is not a question.
    I will use this thread to refer to in other threads, when anyone ask me "Do I have to write with clause?"
    The answer is NO you don't have to write with clause AT ALL.
    with clause is create temp table on the fly.
    with tempTable as(
    select 1 as column1,2 as column2 from dual union all
    select 1 as column1,2 as column2 from dual union all
    select 1 as column1,2 as column2 from dual)
    select * from tempTable;If you have created the Table,you do NOT have to write with clause like above.
    therefore you can write like below.
    select * from tempTable;

    user13091888 wrote:
    I dont's see reason why you created this thread but...
    Global temporary table and with clause is not equivalent. If you want select from temp table you have insert here some data first and then oracle have to create temp segment for your session. If you use with clause there is not neccessary to create temp segment for you unless you run out of your available memory e.g. making sorts, big hash joins etc.?:|
    He never mentioned Global Temporary Tables.
    He was saying that the subquery factoring clause is used in answers on the forum where people are temporarily creating the data for the purposes of the answer, rather than create a real table. I would guess English isn't his first language, so the way he worded it could be misconstrued, but it's fairly obviousl what he was saying, even though I agree the thread is pointless.

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

  • Need advice on on a Mac Pro 1,1 Media Center

    I currently have a 2009 Mac Mini running as my home media center, but I recently came by a FREE Mac Pro 1,1 and have decided to repurpose it as my media center so I can migrate my Mac Mini to my bedroom TV where it will live an easy life doing nothing but run Plex Home Theater, Netflix, and EyeTV. This machine falling into my lap was also quite timely because my 4-bay Drobo is running low on available expansion and another Drobo isn't in the budget at the moment.
    This vintage mac pro is running Lion 10.7.5, has 1 old and crusty 500GB hardrive, dual x5160 processors, 4GB RAM (one stick i'm pretty sure is toast judging by the red light and the kernel panics), and the standard NVIDIA GeForce 7300 GT 256MB graphics card. It will be used primarily for the following: network storage for iphoto and itunes libraries, streaming video, Plex Media Server & Plex Home Theater, and Handbrake encoding. I also have a goal of safety of data for my movies, photos and music as this machine will supplement my current Drobo storage.
    My plans are for a 128GB SSD boot drive installed in one of the PCIe slots and then to load up all 4 of the 3.5" drive bays with WD Green hard drives. I have also ordered 4GB of replacement RAM, so upon removal of the faulty unit I will have 7GB.
    Here is where I need advice because I am not very familiar with RAID and the differences between hardware or software raid. Am I better off getting four drives of the same size and setting them up as RAID 5 (I think) using Apple's RAID utility or should I throw in three 1TB drives and then install a fourth 3TB or 4TB drive as a Time Machine backup for the other three?
    Should I upgrade the OSX to the technically unsupported latest version? Or is it not worth the trouble for this application?
    Also, is there any benefit to upgrading the graphics card to the ATI Radeon 5770? Would this yield an improved image quality? I am outputting to a Denon AV Reciever and subsequently to a 100" projection screen, if that makes a difference. I also noticed the 5770 has an HDMI port, wich would be nice, but not necessary since I can use a DVI converter and woud still need to use the optical audio out anyway.
    Much obliged for any input

    My plans are for a 128GB SSD boot drive installed in one of the PCIe slots and then to load up all 4 of the 3.5" drive bays with WD Green hard drives. I have also ordered 4GB of replacement RAM, so upon removal of the faulty unit I will have 7GB.
    PCIe cards that use or support SSD are not bootable until you get to 2008 (and that is limited too).
    Green are not suited for any form of array unless say NAS and WD RED.  Better option would be 3 x 2TB WD Blacks in a mirror, and too many people only use two drives, well 3 is much easier safer and works better. Might want to invest in www.SoftRAID.com product even.
    Best price and quality, got my 1,1 with 8 x 2GB (ideal is 4 or 8 DIMMs)
    2x2GB FBDIMM DDR2 667MHz @ $25
    http://www.amazon.com/BUFFERED-PC2-5300-FB-DIMM-APPLE-Memory/dp/B002ORUUAC/
    With price of 250GB SSD $155 I'd go with that or stick with $89 for 128GB .

Maybe you are looking for

  • Finder Window closes when File is Deleted in 10.6 Server

    I'm running OSX 10.6 (Snow Leopard) on an XServe serving 50 Mac Pros. I work with two finder windows open in column view with no side bar. This allows me to navigate and move files from any of 50 computers I have mounted to my server to another compu

  • I am getting the attached error while bringing up the Prcs Scheduler

    I am getting the attached error while bringing up the Prcs Scheduler: Cannot open message catalog TMADMIN_CAT Starting Process Scheduler Server PSNT for Database FSUAT ... NLS:4: Cannot open message catalog CMDTUX_CAT, set 1, num 752; check TUXDIR=C:

  • Sql loader error with date format

    Hi everyone, I have table and have a data in one coulmn RECORDED_DATE like '20090224' and my client is asking me to load this coulmn data in 'yyyymmdd' format.I am strucked up with my ideas.I used to_date('20090124','yyyymmdd') in control file.but it

  • Iphone 4 not recognised

    at first laptop did not recognise iphone at all, but updated driver on phone and laptop sees it now, but itunes does not. it has lost it's 'name' identity

  • Firefox window size differ from GoLive 'preview in browser.'

    When I set up my site, all catagory pages was set to the correct size in the head actions resize window. When I download my site in Firefox the windows are smaller and are cut off at the bottom and right side. What gives?