Cant work out greater than date .. help plz

Hi,
Can any one tell me why this TRUNC (SYSDATE)+ (rmt.sys_time_mon - TO_DATE ('01-JAN-1900', 'DD-MON-YYYY')) is not working.
If i run it seperately it gives me the appropriate value. This is a date value for example the date i have is 30/12/1899 1:00:00 AM.
Please help..
SELECT DPN.PAS_NAME,
     PPC.PROCESS_DES_CODE,
     MIN(decode(FCD.SOURCE_FILE_NAME, NULL, 'N', 'Y')),
     MIN(PCD.END_PROCESS_CONTROL_TSTP)
FROM DWCNTL_PAS_FILES_CODE PFC LEFT OUTER JOIN
DWCNTL_IFACE_FILE_CONTROL FCD ON SUBSTR(FCD.SOURCE_FILE_NAME, 1,7) = PFC.FILE_NAME AND TRUNC(FCD.CREATE_TSTP) =trunc(sysdate),
DWCNTL_PAS_NAME DPN JOIN
DWCNTL_PAS_PROCESS_CODE PPC ON PPC.PAS_ID = DPN.PAS_ID LEFT OUTER JOIN
DWCNTL_PROCESS_CONTROL PCD ON PCD.PROCESS_CODE = PPC.PROCESS_CODE AND trunc(PCD.END_PROCESS_CONTROL_TSTP) > TRUNC (SYSDATE)+ (rmt.sys_time_mon - TO_DATE ('01-JAN-1900', 'DD-MON-YYYY')) JOIN
SLA SLA ON SLA.PAS_ID = DPN.PAS_ID,
PROCESS_START PST ,
REPORT_COMMENTS RPT,
EDWAPPS_TIME RMT
WHERE PFC.FILE_NAME LIKE 'U2%'
AND DPN.PAS_NAME LIKE 'U2'
AND PFC.PROCESS_CODE = PPC.PROCESS_CODE
AND PPC.PROCESS_DES_CODE LIKE 'CONTRACT'
GROUP BY PPC.PROCESS_DES_CODE, DPN.PAS_NAME,PCD.END_PROCESS_CONTROL_TSTP

SELECT dpn.pas_name,
  ppc.process_des_code,
  MIN(decode(fcd.source_file_name, NULL, 'N', 'Y')),
  MIN(pcd.end_process_control_tstp)
FROM dwcntl_pas_files_code pfc
     LEFT OUTER JOIN dwcntl_iface_file_control fcd
          ON SUBSTR(fcd.source_file_name, 1, 7) = pfc.file_name
          AND TRUNC(fcd.create_tstp) = TRUNC(sysdate),
dwcntl_pas_name dpn
JOIN dwcntl_pas_process_code ppc
ON ppc.pas_id = dpn.pas_id
LEFT OUTER JOIN dwcntl_process_control pcd
ON pcd.process_code = ppc.process_code
AND TRUNC(pcd.end_process_control_tstp) >
TRUNC(sysdate) + (rmt.sys_time_mon-to_date('01-JAN-1900','DD-MON-YYYY'))
     JOIN sla sla ON sla.pas_id = dpn.pas_id,
     process_start pst,
     report_comments rpt,
     edwapps_time rmt
WHERE pfc.file_name LIKE 'U2%'
AND dpn.pas_name LIKE 'U2'
AND pfc.process_code = ppc.process_code
AND ppc.process_des_code LIKE 'CONTRACT'
GROUP BY ppc.process_des_code,
  dpn.pas_name,
  pcd.end_process_control_tstpsomething wrong with your query, you are trying to left join dwcntl_pas_process_code ppc with dwcntl_process_control pcd that why oracle give error 904 because no rmt alias in that join.

Similar Messages

  • HT4623 i cant work out how to transfer my stuff from i-tunes back onto my phone? any help would be much appriciated

    i cant work out how to transfer my stuff from i-tunes back onto my phone? any help would be much appriciated

    do you mean how to restore a backup
    https://discussions.apple.com/thread/3053632
    or do you mean how to sync media and apps to itunes
    http://www.apple.com/support/iphone/syncing/

  • My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive

    My mac air says hard drive full and 90% is full of 'other' which I cant work out what 'other' is as i Have transferred most to my external hard drive.
    Do you know how I can tell how large each file is taking up and what my 'other' category could be?
    thanks

    Initial easy steps to gain disk space:
    - Delete all files in the Downloads folder.
      Empty the Trash.
    - Start iPhoto.
      Empty its trash.
      Restart.
    Backup:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.  You will need one external hard drive for your Time Machine (or other) backup and a second if you plan to offload some files.  (See suggestions for where to purchase hard drives at the end of this message.)
    For more about backups:
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods:
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    Deleting files:
    Then use the free application OmniDiskSweeper http://www.omnigroup.com/more to explore your volume in descending order by size so you can attack the problem from the top down, deleting the largest unwanted files first.  Delete with caution and do not delete any system files.  Remember to empty the trash after trashing the files.
    Additional reference on freeing disk space:
    http://pondini.org/OSX/DiskSpace.html
    Offloading files:
    Consider moving some of the no-often-used large files or directories to an external disk.  Use ODS again to find them.  This will be at least your second hard drive.  Your first one(s) is/are for your Time Machine (or other) backup(s).  Do not offload files onto a Time Machine disk.
    Format the second drive as Mac OS Extended (journaled).  Using OWS to find large files/folders and copy them from the system drive to the external hard drive and delete them from your internal drive.
    Then  > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.
    Now both your system disk and your external offload disk will be backed up onto your Time Machine disk.
    From: http://www.thexlab.com/faqs/freeingspace.html
    To move your iTunes Music folder to another disk or partition:
    To change the location of your iTunes Music folder, carefully follow the instructions in the AppleCare® Knowledge Base document "iTunes for Mac: Moving your iTunes Music folder."Additional information can be found in iTunes Help.
    http://webcache.googleusercontent.com/search?q=cache:http://www.thexlab.com/105/ 00000849.html
    Laptop users may want to consider having two iTunes libraries: a small library of current favorites on their computer, while their complete library resides on an external hard drive. Utilities like iTunes Library Manager enable you to easily have multiple iTunes libraries you can use with your account.  https://www.macupdate.com/app/mac/7689/itunes-library-manager
    To move your iPhoto Library folder to another disk or partition:
    To move the iPhoto Library folder to a new location, employ the instructions in the AppleCare Knowledge Base document from http://support.apple.com/kb/PH2506 corresponding to the version of iPhoto you are using. Additional information can be found in iPhoto Help.
    Laptop users may want to consider having two iPhoto libraries: a small library of current, favorite photographs on their computer, while their complete library, or archives of older photos are saved on an external hard drive. Utilities such as iPhoto Buddy and iPhoto Library Manager enable you to have multiple iPhoto libraries that you can use with your account.
    https://www.macupdate.com/app/mac/12175/iphoto-buddy
    https://www.macupdate.com/app/mac/7158/iphoto-library-manager
    Hardware — Bigger disk/SSD:
    OWC sells 120, 240 and 480 GB SSD upgrades for MacBook Airs.  A 240 GB upgrade costs $265.   http://eshop.macsales.com/shop/SSD/OWC/ .  If your Mac is under warranty or AppleCare replacing the SSD will void the warranty.

  • Cant work out how to change payment method to none

    cant work out how to change payment method on apple id to none as i dont have a credit card

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Please help! i need to make multiple custom shaped frames for different videos in one scene and cant work out how!

    hi there!
    im really stuck on this and cant work it out i hope you guys can help! i have been trying to make a single shot or scene whatever you want to call it with multiple videos playing all at the same time in it but i want them all to have their own custom shape. i know that i can just put them together into one frame and play them at once but they are all the original rectangle shape they where filmed in and i could put a mask over each one to make it a circle but i want to make each one a custom shape for example if you where to make a face out of 4 videos and one was the shape of the main part of the face one was the eyes one for the hair and one for the mouth now i would have to make the shape of each video the right shape for the corresponding body part then place them on top of each other and then i would have a face made from looping videos. i cannot work out how to make the frames of each video a custom shape after searching tutorials please can someone help me with this it would be greatly appreciated as it is a collage project. thanks very much for your time in the matter Josh.

    ok thanks yea thats helped alot im new to this so thats why it seems basic to you but not me. i have tryed to find out through tutorials but could work it out. im now able to do this but i want to draw my mask free hand and it seems you can only place points with the pen tool? is this the only way to make the shape of my mask? or example in photoshop which i know well i can use a paint brush and paint any shape i want to make a mask but i cant see how to do that in after effects? any help on this would be greatly appreceated. thanks josh

  • MRTG Out Greater than In

    Hello Net Pros,
    I have configured a MRTG system to give me the traffic analysis of my AS5350 Gateway's serial WAN Interface. Now in my graph the "Current In" value displayed is always smaller than the "Current Out". The same is for "Average" and "Max" values. Also I have configured the codec "g729r8" and all the originating calls coming in from our carriers to our terminating gateway [AS5350] are using this codec. If I multiply the "Number of DS0s in Use" with the average bandwidth consumed by one call using "g729r8" i.e. 12.8 kbps then this calculated value never matches the traffic analysis shown for the serial WAN interface. We had access-lists on the AS5350 Gateway. We tried removing the access-lists, but no improvement. Still the same result. What I am not able to understand is a] why my Out is always greater than my In and b] why the values shown in the traffic analysis for the serial WAN interface never match the value for the total bandwidth consumed by the active calls [using codec g729r8].
    Could someone try to help me diagnose this problem??
    Rushabh

    hi Rushabh
    i have same problem on my MRTG
    but 1st of all the codec g729 is around 20 to 22k
    so if u do the math the bandwidth calculation will be ok
    now for the up is greater than the down this is due to codec so dont worry ,try to change the codec and u will see the change
    this is nothing to be worried about
    realy u dont have any problem
    Fadi

  • Im only starting and cant work out how to give a black and white photo blue eyes

    im a beginer and cant figer out how to give a black and white portrat photo blue eyes

    - If the original is B&W first change the picture's mode to color. In my PSE version with is done by Image > Mode > RGB Color. 
    - Add a blank layer and set it's Blend Mode to Overlay or Color.
    - Activate the Brush tool, choose a dark blue color, and paint the eyes. If the result is too dark lower the layer's Opacity. Use the Eraser to remove excess color around the eyes.

  • I cant work out how when i open a new tab it opens with Google... simple but cant do it please help

    A simple one but cant do it
    all I want is each time I open up a new tab it opens in Google can do it
    please help

    Have you got some kind of search bar added as a plugin that you need to uninstall. I note an entry in your system details mentioning 'BLNBAR'.
    * see [[Searches are redirected to another site]] - also lists some sites of interest if you have malware problems
    * and [[Troubleshooting plugins#w_manually-uninstalling-a-plugin]] (includes instructions on how to manually uninstall)

  • HT201320 it said it couldn't verify the account so I went on check mail and it said this address  is already listed in the device I have been on it for about half an hour and still cant work out what to do, I even made a new account which didn't work HELP

    I am so confused because no matter what I do thi stupid **** thing just doesn't work

    I only said d a m n for goodness sake and any way this website is really glitchy

  • How to Read and Write .XML datas   (HELP Plz...)

    hai everybody
    how to read and write xml datas... plz give clean and simple example..
    bcoz me want to produce such type of module...
    if any one help me .. thats the only way me laid in software ladder
    plz....
    thank u in advance

    thank u for giving idiot..
    but before posting i search in google also..
    but i cant get what me expect..
    thus i posted...
    then who is ................?
    sorry javacoder01
    // plz help me
    Message was edited by:
    drvijayy2k2

  • Greater than date

    I am attempting to pull from table using Oracle 10g. But I want to restrict my query to records with UPDATE_DATE > 8/31/2007. UPDATE_Date is a date field.
    The table name is PS_PROJECT. I can usually make queries work but I've never constructed one using a date before. Is it possible?
    I found to-date('1998/05/31','yyyy/mm/dd') but can't make it work either.
    Help please.

    to_date is the right function to construct a date. Also,
    update_date>to_date('1998/05/31','yyyy/mm/dd') should work for your requirement, if not, post please the output wiht the error message.
    If time part of your date values is irrelevant for you, you can use as well DATE literals like
    update_date > date '1998-05-31'Best regards
    Maxim

  • Showing data 6 months greater than date parameter??

    I have a request to build a set of worksheets that accept an intial parameter - Start Date in the format MMM YYYY.
    When a user enters JAN 2009 - I want the worksheet to show data from Jan, Feb, Mar, Apr, May and June (2009).
    Can anyone point me in the right direction please.
    Regards
    Mark

    Have you tested that logic where you cross over between years? Say your start period is October 09. So that month value is 10. Add 6 to that value and you get 16. Which would not be right. You would want to wrap around to have the month be 4. But since 4 is less than 10, that would be a problem. That is why you would need to convert to a full date (like Rod is showing) and then add the 6 months to that date. If you test this kind of situation with your logic and it works fine, then you can ignore this posting. But your logic does look like it would have a problem with this situation, is what I am thinking.
    John Dickey

  • I have the HP G72-259WM Notebook PC , Product Number: wq668ua which has worked out great for me.

    I have the HP G72-259WM Notebook PC , Product Number:  wq668ua running WIndows 7 (64bit)  With 4GB of RAM and 1695MB video Ram. I just purchased a game (Star Wars: The Old Republic) and my laptop meets all the requirement stated on game accept one that I did not understand see until after the purchase. The Graphic card needs to run Shader 3.0 or greater. My Laptop is now out of warrenty and would like to upgrade my hardware. Can I either purchase a motherboard or graphics card in order to run this game instead of buying a whole new system? Note: the game states that there are a few different cards that work with this game and wonder if there is something equal to, or a little better that match there capibility that I can use? They are the ATI/AMD Radeon HD 4850, or NVIDA GeForceGTX 260 /512MB graphic cards.
    I would like to use the all the same hardware with a new motherboard... unless the graphic card is seperate and if so can you tell me what I need to get and where? Thanks

    Hi,
    Whay you have to post same question on many places ? Please use this:
      http://h30434.www3.hp.com/t5/Hardware-Upgrades-Rep​lacements/Upgrade-Graphics-Do-I-replace-motherboar​...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Cant work out how to view all photos in an album as thumbnails

    am i doing something wrong here ? using the old version of iphoto i used to be able to click on an album and view or 'select all ' photos but now using iphoto '08 when i select an album only one photo shows up at a time on my screen and 'select all' is grayed out making it impossible to export all to anywhere unless i do them one at a time

    Ann
    Welcome ot the Apple suer to user assistance forums
    look in the lower right hand corner of your iPhoto library and slide the slider to the left until the desired number of photos are displayed
    LN

  • Getting the day of the week from a given date help plz

    private String getWeekDay( ) - return the correct week day given the day, month and year for this date.
    I had given this an effort and got stumped, my inital thought was to use mods but any input would be helpful

    try
            int dow = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);

Maybe you are looking for