Partition-by in Pro*C

I have this query that ran well in SQL Plus.
Select
ship_nmbr,
seq_nmbr,
ship_date
From
Select
ship_nmbr,
seq_nmbr,
ship_date,
Max(ship_date) Over
(Partition By ship_nmbr)
max_date
From
shipments
Where
ship_date = max_date;
I'm using Oracle 8.1.7.2.0
Enterprise Edition.
It ran fine if I run if in SQL PLUS, but not in Pro*C.
I got an error and it doesn't like it (I tried changing the upper/lower case as well):
Syntax error at line 33105, column 43, file load_scroll.pc:
Error at line 33105, column 43 in file load_scroll.pc
max(REQUEST_DATE) over (partition by SHIPID)
..........................................1
PCC-S-02201, Encountered the symbol "(" when expecting one of the following:
, into, from,
Error at line 0, column 0 in file load_scroll.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: *** [load_scroll.c] Error 1
Any idea? Thanks!!!

To fix your problem create a view
create view shipments_dates as Select
ship_nmbr,seq_nmbr,ship_date,Max(ship_date) Over(Partition By ship_nmbr) max_date From shipments
Change your query to
Select ship_nmbr,seq_nmbr,ship_date From
shipments_dates Where
ship_date = max_date
Oracle 8.1.7 only supported partition by in SQL not pl/sql and I assume Proc C, supported in pl/sql in 9i

Similar Messages

  • I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    I partitioned my MacBook Pro and installed Windows 8 in it.....now I can't find my partition when I pressed option key when booting up.....so how can I do to find the partition to boot...I can see it in the disk manager in Mac....any ideas? thanks..!..

    Hi LamboMong,
    just try this:
    http://refit.sourceforge.net
    install, reboot twice and choose the Windows-Partition on next startup.
    (The apple-bootloader doesn't display all bootable harddisks.
    With rEFIt you can boot from all partitions/harddisks on your computer.)
    I hope that will solve your problem.
    Daniel Fernau

  • How do I convert my Windows 7 Folder to an ISO image to burn to a USB, in order to use Bootcamp Assistant to partition my MacBook Pro for Mac and Windows?

    How do I convert my Windows 7 Folder to an ISO image to burn to my  USB Flash drive (16GB)  in order to use Bootcamp Assistant to partition my MacBook Pro for Mac and Windows?

    Sorry - confusing - My question has NOT been solved yet - can anyone help?

  • How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?

    How do I partition my MacBook Pro so I can keep Snow Leopard and also install Mountain Lion?
    I want to install the latest OS, but I already know that I will lose a lot of my software unless I can partition the hard drive and have two "bootable" drives.
    How do I retain everything I have, partition the drive, then reloa the software I own according to which OS it will work under?

    msmedia wrote:
    I do not currently own OS X ML.
    I am currently running OS X (10.6.8 Snow Leopard) on my MacBook Pro. It has a 2.8GHz Intel Core 2 Duo Processor. I want to upgrade to Mountain Lion, but many of my software titles will not operate with ML and I cannot afford to replace some of them (Adobe Creative Suite, for e.g.)
    After I back-up my HD and then partition the HD, how do I use the back-up to reinstall what I want to the SL partition, and then place the rest on the ML partition.
    I have not done what you want to do, so can only offer some general thoughts in support. Take value from the following where you can. No guarantees.
    If it was me, I would use a disk clone utility (e.g. Carbon Copy Cloner) to image the existing Snow Leopard disk to an external drive. Then verify that the external drive would boot and run Snow Leopard normally.
    I would then purchase and download the Mountain Lion upgrade installer, but not run it. Use Lion Diskmaker to make a bootable USB stick, and perform a clean install of Mountain Lion, replacing the Snow Leopard on your MBP. This way, you make absolutely certain that no third-party drivers or other SL cruft remains to make Mountain Lion unstable. Update to latest ML point release. Fix permissions. Let TimeMachine make a full backup of your ML installation to a different external drive. Then turn of Time Machine.
    In Disk Utility, use the + sign at the bottom of the ML partition to add another GUID, HFS+ Journaled partition for Snow Leopard. Resize to taste. Name it differently from your ML partition. Exhale.
    Now ideally, you would like to reverse the external clone and put it back into the new SL partition. Then fix permissions. And demonstrate that you can boot into individually stable OS X installations. This would save you alot of work. Resist copying your home directory into ML just yet.
    If you cannot successfully achieve the preceding paragraph, you will be faced with a full SL and application reinstall.
    The ~/Library contents for SL and ML are sufficiently different that you do not want to mix them. You may want to salvage Safari bookmarks.plist. And, ML created folders in the home directory may have different permissions or ACL settings than in SL. So, my rule of thumb would be to copy folders that you created in SL, and only the contents of matching named OS created folders such as Music, Pictures, Downloads, etc.
    For each operating system, you probably want the Time Machine settings to exclude the opposite OS X partition. If you use the same host name in Sharing prefs, then you will mix SL and ML backups on the same Time Machine back up drive. If you use different host names, they will be distinct folders in the Time Machine backups.backupdb and allow discrete restores per host. You may also want to gag Spotlight from indexing the opposite OS X partition.

  • Is it possible to partition my MacBook pro Hard drive?

    I want to partition my MacBook Pro hard drive. is that possible? And if yes, How do i go about it? Thanks

    Use the Disk Utility in the /Applications/Utilities/ folder to create a new partition of the desired size. Note that if you use Boot Camp, repartitioning the drive may disable it.
    (72049)

  • Partitioning a macbook pro

    I partitioned my macbook pro a while ago, but the bottom half of the partition is being used as the main one. Now I want to change it over to the top half as I am running out of space. I tried dragging the corners towards the top but it won't work. I also tried changing the start up disk but cannot as there is only one system that shows up in system preference. please help me out anyone

    That is not a permitted operation. You would have to erase the top partition, then clone the bottom partition to the top; then, you need to remove the bottom partition and extend the remaining partition to enable the entire drive as a single partition/volume.
    If you have data in the upper partition that you wish to retain, then it may be easier to create a single volume on an external drive, boot from the external drive, repartition the internal drive then clone the external drive to the internal drive.

  • Bootcamp/Partitioned my Macbook Pro with Windows 7, No Internet

    So I ran bootcamp assistant, installed Windows 7 (Pro) and partitioned my Macbook Pro (running Mavericks), and in the first runthrough I had a few bad hard links, which was an easy fix. So I tried again, got everything installed, and when I tried to run windows on my partition, there's no way for me to connect to my wireless internet, nor does it give me any options to select from in trying to troubleshoot. I can connect just fine when running Mavericks, but cant even diagnose the problem in windows. Thanks

    I'm not sure what "a few bad hard links" means. It sounds like you didn't install the drivers for the Mac hardware. Start here:
    http://support.apple.com/kb/ht3986

  • Can't install win 8 x64 on SSD partition on MacBook Pro

    I have a MacBook Pro with a 512gb SSD drive and I'm trying to use Bootcamp to install windows 8 off a flash drive to half of the SSD partition. When I get to the windows installation screen after reboot, it tells me I can't install to that partition that Bootcamp created and that my hardware might not support booting aff that partition. I tried deleting it and reformatting it but that didn't work.
    Does anyone know a workaround for this?

    How did you create the Bootcamp partition and how did you delete it in your attempts to install Windows?

  • Merge o/s partition with data partition on macbook pro, osx 10.6.8

    hi there
    i have a macbook pro running snow leopard, 10.6.8. the internal hard drive is divided into three partitions, #1 is osx, #2 is also osx, and was meant to be another osx to boot into, #3 is a data drive.
    i never use the 2nd partition to boot into, and would like to trash it and merge it with #1. that is, make the main osx partition larger.
    can i do this without having to reinstall the o/s?
    cheers

    Depends on how the partitons are arranged. If they're exactly as quoted, then yes.
    Open Disk Utility and select the partition tab.
    In the diagram, the top partition needs to be the one you're booted from, and partition 2 the middle one.
    Select Partiton 2 so that it's highlighted, and click the '-' button below the diagram.
    Drag the bottom right corner of partition 1 down to meet partition 3.

  • Hard disks, partitions and Mac Pro

    Hi all,
    I'm new to the Mac Pro and am migrating from a Windows environment, I have used a iBook for the past 6 months and this is the reason for totally migrating to a Mac Desktop.
    I have spent half a day on browsing the forum here, very confusing I must say but then again I add that I am an absolute a-technical person.
    I have a few questions on storage which I hope might get answered here;
    My Hardware:
    I am about to order a 2,66ghz Mac Pro, 4GB Ram, XP1900 and a 160Gb hard disk will will be replaced as soon as the Mac Pro enters my dwelling.
    My Work Environment:
    Apart from the basic office things, Internet, Mail and such I will use the mac Pro 90% for Imaging purposes. Most used applications:
    - CS2
    - Aperture
    - Adobe Lightroom
    as well as a number of add-ons like HDR programs, Noise programs, RAW converters etc.
    I am a Photographer working with Mid-format and Standard format images, which in some case, like when using HDR can reach sizes of well over 150-200Mb per image!
    Useually the image size of a 16bit mid-format tiff are around 70MB.
    Now for the question, how to configure the best possible HD setup.
    I will use WinXP, which I would like to run on a seperate partition/disk
    I need a schratch disk for CS2
    I need roughly 500GB of intermediate storage for imgaes before the periodically get back-up to external hard disk.
    So I was thinking the following, and this only based upon how I used my Win Environment:
    150GB Raptor as start-up disk and location for programs and OSX as well as basic documents and files
    76GB Raptor as Scratchdisk
    500GB as WinXp disk (30%) and rest as storage for Image cataloging system (mainly normal sized Jpegs)
    750GB as Image tank
    I have the Raptors, but don't have to use them if a better solution comes out. Since I will be using my Win pc until everythink works satisfactory on the Mac...
    some remarks:
    I have red about raid, both 0 and 1 seem interesting but I will loose out on disk space possibilities, and will be forced to work with external drives again, which I don't like... but if push comes to shove I will do that.
    sorry for the information overload, and maybe all points have been answered in other threads before, but whilst browsing through hundreds of threads I couldn't see the forest becasue of the trees anymore.
    One last comment, I make my living with photography so a good setup is of vital importance ....
    Kindest regards, and many thanks in advance

    Hi all,
    Hi,
    Now for the question, how to configure the best
    possible HD setup.
    IMO; use a 3 drive RAID 0 for your boot, application, and
    data partition - my style would be all in one big partition
    and just segragate stuff with folders. I would then add 2
    USB or FireWire drives. One for backing up your system
    and one for the windows XP if you just have to have windows
    running on your MacPro. They don't run at the same time you
    know - like on Amiga where MacOS, Windows, and AmigaOS all
    multitasked together in shared memory space simultainiously.
    As such my opinion is that it's better to keep your WinTel
    box on a KBM switch and LAN the two together.
    I will use WinXP, which I would like to run on a
    seperate partition/disk
    I need a schratch disk for CS2
    With a 3 drive RAID your disk I/O is between 3 and 20 times
    the speed of a single drive setup so separate cache drive
    isn't really advantagious. Click on the link below and
    scroll down to the Drive Test area:
    http://db.xbench.com/merge.xhtml?doc1=199338&doc2=195252
    Both are my profiles. One with a single drive, and one
    with a 3-drive raid. No other differences.
    I need roughly 500GB of intermediate storage for
    imgaes before the periodically get back-up to
    external hard disk.
    So I was thinking the following, and this only based
    upon how I used my Win Environment:
    150GB Raptor as start-up disk and location for
    programs and OSX as well as basic documents and
    files
    76GB Raptor as Scratchdisk
    500GB as WinXp disk (30%) and rest as storage for
    Image cataloging system (mainly normal sized Jpegs)
    750GB as Image tank
    I have the Raptors, but don't have to use them if a
    better solution comes out. Since I will be using my
    Win pc until everythink works satisfactory on the
    Mac...
    IMO the Raptors are overpriced. If it were me I would sell
    them. I think the two together will pay for all three 320
    or 300 gig RAID drives. I did some research regarding which
    drives are good in a Mac RAID environment and I ended up
    going for the the MaxLine Maxtor drives (even though I hate
    Maxtor usually). So far I'm very happy with them and the
    fact that they are like one of the most inexpensive drives
    you can get didn't hurt either.
    I think that if a person REALLY needs the speed offered by
    Raptor drives and is willing to pay the difference for it
    then they should just get a dedicated RAID card which offers
    even more of a speed increase!!!
    some remarks:
    I have red about raid, both 0 and 1 seem interesting
    but I will loose out on disk space possibilities, and
    will be forced to work with external drives again,
    which I don't like... but if push comes to shove I
    will do that.
    You don't lose any space if you use just RAID 0. If there
    are three 300gig HDs that format individually to 260gig
    each then in a RAID 0 configuration you would have 780gigs.

  • Can I resize my existing Bootcamp partition (leaving XP Pro behind) while doing a clean Win 7 install?

    I currently have a Bootcamp partition (30 Gb or so) running XP pro.  I want to switch to Win 7, which I understand requires a clean install since there is no upgrade path from XP directly to Win7.  While doing so I want to increase the size of my BC partition.  (I'm offloading iTunes and iPhoto to external drives and freeing up 60+ Gb so I can make a bigger partition)
    Do I just run Bootcamp Assistant and do the deed as if I were starting from scratch, but specify a larger partition?
    The full scenario is that I have an HP laptop running Win7, and XP pro in Bootcamp.  I want to swap them.  Any advice on the process?  Activate/Deactivate/Reactivate dance.  I realize this is a Windows question, but someone may have done this before.
    Thanks for any help. 

    contrary to kappy, you can buy and use CampTune to resize.
    you can't use a HP install on Mac.
    you need a retail Win7 to activate on a different motherboard.
    Start from scratch. Anything else is likely to have problems.

  • How to install bootcamp partition on macbook pro 12 with mountain lion

    macbook pro 13" mid 2010 model with mountain lion.  bootcamp assistant with not let me partition.

    Then your drive is to full or has errors of some type. Those are the only reasons for boot camp to stop you from partitioning and installing Windows.

  • Need help removing partition on macbook pro

    Hello
    I have a macbook pro 17" OSx 10.6.6
    I have a partition that i am trying to remove. When I open up boot camp assistant and click continue then click i already have downloaded the windows support software to a cd dvd or external disk it tells me that the startup disk cannot be partitioned or restored toa single partition.
    I am stumped.
    Any help would be greatly appreciated.
    Thanks
    -Luke

    Have you tried to repartition the drive with Disk Utility to add a third partition or to remove the Boot Camp partition?
    I would repair the hard drive to see if that helps:
    Repair the Hard Drive
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • Does partitioning new MacBook Pro to enable adobe suite cs2 make sense?

    I am a casual user of Adobe suite Cs2 and it meets all my needs perfectly. I've invested so much time learning it that I am reluctant to switch to any other programs. However, my beautiful new Macbook Pro using Mavericks is incompatible with Cs2. Is there a way to partition my hard drive so that I can use Cs2 with and earlier OS and still use Mavericks for everything else? Is it my new computer or Mavericks that's the culprit?

    Intuitively, it would seem that your comment makes perfect sense
    Allan Eckert wrote:
    That sounds like it going to be slower then death warmed over at best.
    But the OP would be running CS2 in Snow Leopard Server installed in Parallels on his Mavericks MacBook Pro Retina which has either an i5 or i7 CPU.
    The fact of the matter is that CS2 will run faster for the OP than it originally ran for him on a PowerMac with a PowerPC CPU chip manufactured back before 2006.
    I hope that mclandau has use for all of the extra time that he will gain using CS2 on his new MacBook Pro Retina!
    CS2 Photoshop running in Snow Leopard Server installed in Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]
    More information here:
    http://forums.macrumors.com/showthread.php?t=1365439
    Installing Snow Leopard Server into Parallels for DUMMIES!:
    http://forums.macrumors.com/showpost.php?p=17285039&postcount=564
    Parallels 14 day trial download (do not activate until you have received Snow Leopard Server by calling the Apple Store - 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)):
    http://trial.parallels.com/index.php?lang=en&terr=us
    Adobe's Creative Suite 2 in its entirety plus serial number for download and use by previously licensed users:
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads

  • Can i "copy" a 200 GB boot camp partition from Mac Pro to MBP?

    i spent a lot of time working with virtual machines and i have decided i simply have to increase the size of my mac pro HD and put a boot camp partition in it.
    can i COPY a 200 GB windows 7 boot camp partition from my 1 TB Mac Pro drive to a 200 GB partition on my MBP that will have a 500 GB drive?
    this would let me focus on doing a full install and full setup on the Mac Pro and just copy this over to the MBP (when i get the new drive) saving me a ton o time.
    TIA
    Also, is this something for WinClone?

    hi kappy. THANK YOU.
    is it possible that you or anyone has actually done this machine to machine and partition to partition?
    i want to avoid a situation where i try to do this only to find it works better or is much simplyer to the the fresh install on the MacBook Pro just fresh.
    - jon

Maybe you are looking for

  • Message Split - JDBC receiver.

    Hi , I have a payload like - <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_JDBC xmlns:ns0="http://AIM/Pmation"> <STATEMENTNAME> <PARTINFO ACTION="EXECUTE"> <TABLE>INSERT_HUB_PARTINFO</TABLE> <I_CLINTERVALVALUE1 isInput="1" type="NUMERIC">9.6</I_CLIN

  • Printing line only after all the records of line item are finished

    HI I have the following table : FieldA   FieldC       FieldD 10           1               CM 10           3               CCM 20           6               M Right now i am able to print in samrtform like this FieldA   FieldC       FieldD 10          

  • Urgent - multiprovider/modeling questions

    i have a scenario where i have an ODS containing all vendors for a given article-site relationship, and there's a flag in there indicating which one of the vendors is fixed. i also have an infocube that contains material movement data, which has the

  • Best iPod cassette adapter?

    Anyone know what the best iPod cassette adpater is? I have read some horror stories on Amazon of really bad ones.

  • Oracle OCP Hands on course discount for OPN member ?

    Hi guys, I work for a company in Australia that is a Oracle Advantage Partner (highest level). I have completed the OCA but I understand the OCP requires a instructor led training courses. Seems like the price of these courses is $3000-$5000 AUD. Is