Why is my iMac 450/128 much, much faster than my Powerbook 333/512?

Hey boys and girls,
I'm sort of new to the Mac world, but I'm working hard to become clever.
So, here's the story. I have a Powerbook Bronze 333MHz with 512MB of RAM and the Toshiba 6GB drive it was born with and 10.3.9. I have a Bumbleberry (I think that's the "official" colour) iMac at work with a G3 at 450MHz and only 128MB of RAM also running 10.3.9.
The iMac runs much, much faster than the Powerbook, despite barely meeting the minimum RAM requirements of 10.3. What are some possible reasons for this? I understand that this ain't no speed machine, but the Powerbook is so slow that there is a second or two second typing delay in an Adium chat window for heaven's sake.
OK, so the iMac is technically faster, but I feel as though there is something wrong with the performance of the Powerbook, especially with all the RAM I've thrown at it (the Activity Monitor says that the PB has roughly 140MB of free RAM right now). I have a newer 40GB 5400 RPM drive that I'm tempted to install, to see if the 6GB drive is just old and tired (it whines a bit, so I'm sure it is to some degree) -- am I wasting my time?
Thanks for any help in advance.
Ugli
PB Bronze   Mac OS X (10.3.9)  

ugli:
Welcome to Apple Discussions.
You are well on the way to becoming clever. Really. Just by logging in and posting here you have started a process of learning that can go on until you are really clever.
There are a number of reasons your iMac seems faster that the Lombard. One is that it has a faster processor. Secondly, even with more RAM your Lombard has a small, slow HDD. I don't know how much free space there is on your HDD, but 6 GB fills up quite quickly these days. I am sure the larger (and faster) HDD will make a difference. I had maxxed out the RAM on my Pismo, but it was when I installed a larger, faster HDD that I noticed the difference. And, of course, when I upgraded the processor I noticed the biggest difference. Still not match for the newer faster machines, but then, I'm not as fast as I used to be either.
Good luck in your quest.
cornelius
PismoG4 550, 100GB 5400 Toshiba internal, 1 GB RAM; Pismo 500 OS X (10.4.5) Mac OS X (10.4.5) Beige G3 OS 8.6

Similar Messages

  • Why is kernel-2.6.9 (OEL-4) faster than kernel-2.6.18 (OEL-5) ?

    Hi,
    as long as RHEL-5 and then OEL-5 have been released, I have been wondering why my own programs, compiled and run on RHEL-5/OEL-5, are slower than the same programs compiled and run on RHEL-4/OEL-4 on the same machine. This is really barmy since gcc-4.1, shipped with RHEL-5/OEL-5, is very aggressive compiler and produces faster binary code than gcc-3.4.6, shipped with RHEL-4/OEL-4. I verified this hundred times testing both compilers on RHEL-4/OEL-4 and RHEL-5/OEL-5. The 4.1 compiler always produces faster executable on the same OS.
    The problem is obviously in kernel-2.6.18. There is something in the kernel (maybe scheduler?) that slows down the execution of programs. But what? I experimented with changing various kernel boot parameters (eg "acpi=off" etc), even tried to recompile the kernel many times with various combinations of config parameters, and nothing helps. Thus, I'm still wondering whether the problem is solvable by disabling one or more config parameters and recompiling the kernel, or is deeply embedded in the main kernel code.
    Is there anybody in this forum who experienced the same, say running OEL-4 before migrating to OEL-5?
    Here are two examples showing different execution times on OEL-4.5 (kernel-2.6.9-55.0.5.0.1.EL.i686, gcc-3.4.6-8.0.1) and OEL-5 (kernel-2.6.18-8.1.10.0.1.el5, gcc-4.1.1-52.el5.2). The first example is trivial but very sensitive to overal system load and kernel version. The second example is "Sieve of Eratosthenes" - the program for finding prime numbers (CPU bound).
    EXAMPLE 1.
    /*  Simle program for text screen console  */
    /*  very sensitive to overall system load  */
    /*  and kernel version                     */
    #include <stdio.h>
    int main(void)
        register int i;
        for(i = 0; i < 1000000; i++)
         printf(" %d ", i);
        return 0;
    /* end of program */
    $ gcc -O2 -o example1 -s example1.c
    $ time ./example1The average execution times on OEL-4.5 and OEL-5 are as follow:
    Mode      OEL-4.5         OEL-5
    real      0m3.141s        0m4.931s
    user      0m0.394s        0m0.366s
    sys       0m2.747s        0m4.563s
    ----------------------------------As we can see, the program on the same machine, compiled and run on OEL-4.5 (gcc-3.4.6 and kernel-2.6.9) is 57% faster than the same program compiled and run on OEL-5 (gcc-4.1.1 and kernel-2.6.18), although gcc-4.1.1 produces much faster binary code. Since the times the process spent in user mode are almost equal on both OS, the whole difference is due to the time the process spent in kernel mode. Note that kernel mode (sys) is taking 66% more time on OEL-5. It tells me that "something" in the kernel-2.6.18 slows down the execution of the program.
    In the second example OEL-4.5 is also faster than OEL-5, but the differences in execution times are not so drastic as in the first example.
    EXAMPLE 2.
    /*           Sieve of Eratosthenes           */
    #define GNUSOURCE
    #include <stdio.h>
    #include <stdlib.h>
    #define MAX_PRIME_AREA 100000
    #define REPEAT_LOOP 10000
    int main(void)
        int prime, composite, count;
        char *sieve_array;
        if ((sieve_array = (char *) malloc( (size_t) (MAX_PRIME_AREA + 1))) == NULL)
         fprintf(stderr,"Memory block too big!\nMemory allocation failed!\a\n");
         exit(EXIT_FAILURE);
        for(count = 0; count < REPEAT_LOOP; count++)
         for(prime = 0; prime < (MAX_PRIME_AREA + 1); prime++)
                 *(sieve_array + prime) = (char) '\0';
         for(prime = 3; prime < (MAX_PRIME_AREA + 1); prime += 2)
             if (! *(sieve_array + prime) )
              *(sieve_array + prime) = (char) 'P';  /* offset prime is a prime */
                 for(composite = (2 * prime); composite < (MAX_PRIME_AREA + 1); composite += prime)
                  *(sieve_array + composite) = (char) 'X';  /* offset composite is a composite */
            /* DO NOT COMPILE FOR TEST !!!
            fprintf(stdout, "\n%d\n", 2);
            for(prime = 3; prime < (MAX_PRIME_AREA + 1); prime += 2)
                if ( *(sieve_array + prime) == 'P' )
                    fprintf(stdout, "%d\n", prime);
        free(sieve_array);     
        return 0;
    /* End of Sieve of Eratosthenes */The average execution times on the same machine on OEL-4.5 and OEL-5 are:
    MAX_PRIME_AREA     Mode         OEL-4.5         OEL-5     
                       real         0m9.196s        0m10.531s
       100000          user         0m9.189s        0m10.478s
                       sys          0m0.002s        0m0.010s
                       real         0m20.264s       0m21.532s
       200000          user         0m20.233s       0m21.490s
                       sys          0m0.020s        0m0.025s
                       real         0m30.722s       0m33.502s
       300000          user         0m30.684s       0m33.456s 
                       sys          0m0.024s        0m0.032s
                       real         1m10.163s       1m15.215s
       400000          user         1m10.087s       1m14.704s
                       sys          0m0.075s        0m0.079s
    ---------------------------------------------------------Does this ring a bell with anyone? Any clue why?
    N.J.

    An hour? Hard to believe or is your hardware that
    old?An hour? That's a super good time for 3 kernel
    packages (i686, xen and PAE) with all modules, plus 3
    kernel-devel packages, plus debuginfo package of
    150-580 MB where smart people at Red Hat decided to
    put uncompressed vmlinux image which is necessary for
    kernel profiling and debugging. Ah, I had a different kernel make process in mind.
    Oracle doesn't ship
    debuginfo package. Of course, this is when I build a
    "complete suite" of kernel rpm packages using
    unmodified spec file. And, to be honest, it takes
    much more than an hour, maybe even two hours. Another
    thing is compiling single i686 kernel without
    building a package. But it also takes at least half
    an hour. Anyway the time significantly depends on how
    many modules are selected to be built in.That what I was looking for.
    What's your time to build a single kernel (which
    version?) with default set of modules ? On which
    hardware ? I've only access to a root server right now, which is
    cat /proc/cpuinfo | grep "model name"
    model name      : AMD Athlon(tm) 64 Processor 3700+with about 2GB of RAM
    free -m
                 total       used       free     shared    buffers     cached
    Mem:          2024       1957         67          0        368       1291
    -/+ buffers/cache:        297       1727
    Swap:         3827         24       3803under
    uname -a
    Linux base 2.6.22-gentoo-r5 #5 PREEMPT Mon Sep 10 22:32:37 CEST 2007 i686 AMD Athlon(tm) 64 Processor 3700+ AuthenticAMD GNU/LinuxThis is what i did
    cd /usr/src/linux
    make clean
    time nice -n  19 genkernel --lvm2 --makeopts="-j2" --oldconfig all
    * Running with options: --lvm2 --makeopts=-j2 --oldconfig all
    * Linux Kernel 2.6.22-gentoo-r5 for x86...*
    mount: /boot mounted successfully!
    * config: >> Running oldconfig...
    * config: --no-clean is enabled; leaving the .config alone.
    *         >> Compiling 2.6.22-gentoo-r5 bzImage...
    *         >> Compiling 2.6.22-gentoo-r5 modules......
    real    17m30.582s
    user    16m8.480s
    sys     1m9.000sWhat could helped here was that I've switched off some modules and (maybe) the use of ccache.
    C.

  • Is an Intel iMac faster than PowerMac G4 1.25 Ghz single proccesor?

    Hi, I'm owner of a PowerMac G4 1.25 Ghz single proccesor, working whit Adobe Creative Suite 1. I'm wonderin if the iMac Intel Core Duo is faster than my PowerMac G4? Thanks for your support.

    I have a 1.25 G4 Mac Mini and the new intel Mac. The answer to your question is that the iMac will be loads faster for anything that is a native Universal Binary like iLife programs. It will also be faster for games that are not the latest thing, but that are accelerated by its fairly beefy 3d card - so faster for Halo, Call of Duty - Unreal Tournamaent1 etc. (other Unreal tournaments not good under Rosetta - but 2004 now has a UB so that should whizz when you download the patch, if you are into such things).
    However it will be slower for power applications running under Rosetta - ie: Photoshop or Dreamweaver. Until the Universal Binary versions come - then it will be much faster for those too.

  • Why is my iMac (2.8.GHz Intel Core i7 w/ 4GBs RAM) using so much RAM?

    Right now I have only Firefox open with 4 tabs. Firefox only has 1 extension (1Password). No other application open or running (that I know of). My dock has 17 icons (including basics like trash, finder, launch, etc). As mentioned I have a:
    2.8 GHz
    Intel Core i7
    4 GBs RAM
    21.5 Inch
    Running on 10.7.3 (Lion)
    My RAM situation is this:
    1.83 GB Free
    78 MB Inactive
    1.40 GB Active
    697 MB Wired
    2.17 GB Used
    4.0 GB Total
    Image of my Activity Monitor (with user removed) here:
    columns as follows: PID, Process Name, % CPU, Threads, Real Mem, Kind
    I'm trying to figure out why my iMac is using so much RAM when I only have Firefox open? are any of these activities unnecessary and if so how might I turn them off and so they don't start automatically when I initially turn on the computer? This imac is two weeks old and so I haven't done a whole lot of customization yet. Please help if you can. Really appreciate it. Trying to optimize this baby. Thank you!!

    Here's mine: I have 16 Safari tabs open, some with Flash junk, and 13 apps "open" according to the Dock indicator:
    By the way the number of icons in your Dock has essentially no effect on memory. Only running apps - the ones with the little dot indicator - might be occupying memory. Even that is somewhat of an oversimplification, since "active" apps may or may not have any active processes associated with them. It's all a function of how Lion manages its memory resources, and that is a whole new world to most of us.
    With Lion, Apple is seeking to eliminate the system effects of whether an app is even open or not. Just another trivial detail the average user ought not to be concerned with, in their opinion.
    If you want a cursory introduction to that fascinating subject, Google the Ars Technica Lion review that was written a few months ago. It may ease your concerns about memory management. If you are an experienced computer user, it will rock your world.

  • Why is my iMac much slower after installing Mavericks. Windows open slowly and Apps load slowly.

    Everything seems to be taking much longer. I have a late-2012 iMac with 32 GB of RAM that was blazing fast until I "upgraded" to Mavericks. Now everyithing is slow. Does it use more system resources? I would think that with that much RAM I would have plenty of headroom for the OS. Is anyone else experiencing this?

    Here's my suggestion:
    Fixing a Mavericks Installation Problem
    How to manage a failed OS X Mavericks installation | MacFixIt - CNET Reviews.
    1. Intel-based Macs: Resetting the System Management Controller (SMC).
    2. Repair the Hard Drive and Permissions - Lion/Mountain Lion/Mavericks
    Re-download and reinstall Mavericks.
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. 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 click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion/Mavericks: Select Reinstall Lion/Mountain Lion/Mavericks and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Why is apple Australia so much MORE expensive than America!?

    so tell me, Why is apple Australia so much MORE expensive than America!?    i have been meaning to pick up a new imac.....and i saw that the exact same type of imac that i want i could pick up in America for a good $600 LESS.... you know, even though our dollar is HIGHER THAN AMERICA'S! *** APPLE!

    Reasons:
    Australian import duties
    Australian taxes on foreign imports
    Australian VAT
    Got complaints? Talk to your politicians. Apple has nothing to do with it.

  • Why do I have to guess how much data I might use in a month when I select a plan?

    When I sign up for water service, I don't guess that I might use 1,000 gallons a month, and then pay three times the going rate for water if I take a few extra showers. I get charged for how much water I use that month.
    When I sign up for electricity service, I don't guess that I might use some set number of kilowatt hours, and then pay three times the going rate if we have a heat wave and I run my air conditioner for a few extra hours.
    Why do I have to guess how much data I might use, and then spend three times the going rate if I stay up watching youtube videos for a few extra nights?
    It is stressful to have to constantly monitor usage, and figure out ratios of how much I've used compared to how much time is left in the billing cycle to see if I need to curb my usage. It is not a good customer experience. I would prefer that data be charged a flat rate based on actual usage, perhaps with an option to throttle speeds at certain levels to prevent cases where a minor lapse in judgment could ruin my monthly budget, like forgetting to check data usage religiously on a device meant to simplify my life.
    Thank you for your consideration.

    Simple answer is Verizon is offering a block of data for usage.
    Where I live the water bill states my wife and I are being charged for 30,000 gallons per quarter/half and the price is say $60 however we never use any where near that amount. I send the meter reading in and it shows the amount we use. But the hamlet we are in has a set amount of gallons. Not fair but we live with it.
    For your data outside of the unlimited which is not available any more to new customers you may be a light user and never go over the 2GB for $30 dollars a month. If you do you will pay through the nose for data. If you pay for more data say 4GB and I don't have the price for it so lets say its $70 then you don't have to watch as much for overage fees. But you are paying for the data in advance so as not go over and get hit with whopping fees.
    It is just the way it is.

  • New Mac Pro 8-core / D700 not much faster than an iMac... in PPro CC.

    So.... my very preliminary testing with our new Mac Pro using the plugin I use most (filmconvert -FC) anyway, shows that Premiere CC needs more optimization for the dual GPUs. In fact, I'd say the CPU utilization is not up to snuff either.
    I know FC only uses one GPU presently from the developer. That will change. In the meantime, using a couple of typical projects with that plugin as an example, I'm only seeing 25-45% speed up in renders over our maxed out iMac (late 2012, 27") exporting the same project. That's significant of course but not the 100%+ one would think we would be seeing at the least given the MacPro config of 8 cores and dual D700s. Premiere Pro CC seems in fact to never maximize CPU (never mind GPUs). I have yet, in my very limited testing, see it "pin the meters" like I did on the iMac.
    Of course that's just testing now two short (under 5 min) projects, and it depends on what one is doing. Some stuff is much, much faster like Red Giant's Denoiser II or Warp Stabilizer VFX. The improvement there can be 3-4x faster anecdotally.  I used to avoid them for speed reasons unless absolutely needed a lot of the time but now they are fast enough to rely on quickly. Other stuff unrelated top PPro CC like DxO PRIME noise removal on RAW stills is much faster too, as is Photoshop CC.  Some effects like blur, sharpening, resize there are nearly instant now even on giga pixel files in Photoshop CC.
    And of course FCPX is much faster on it but I hate the whole editing paradigm. The timeline is just horrid on it; simple things like replacing a word in someone's dialogue is a multi click, multistep process that is nearly instant in Premiere and most every other NLE. Just to try to see your whole timeline is a chore, to see what your edits and sound are in detail are problematic, trying to keep things in sync is a chore, and you can't even zoom your timeline window to full screen! If anybody has edited for any amount of time, I do not understand how they use FCP X. If they start with that program, for example if they are young, then that is a different beast.
    I'm sure Adobe will improve over time. They have to to stay competitive. In the meantime I'll take my 45%... but I wish I saw much more improvement given the cost and hardware differential. Unfortiunately, for now, the mainstream reviews I have seen regarding PPro performance on this machine were right.

    That statement about 4k/5k in Premiere CC with the nMP is false, insofar as performance goes.
    I just tested 5K Red raw files just dragged into Premiere Pro CC (latest version). I expected this to be slow, given my HD experience. However, on my 8 core/D700, I can play 1/2 just fine, full speed. And I even can also do that with a very streneous plugin/filter attached - FilmConvert (in OpenCL mode), also at 1/2 which is quite impressive. I can even add a bunch of other Premiere filters and SG looks and it still stays at full speed at 1/2.
    Ironically, this is quite faster than FCPX which can't seem to play back 5K at all with that filter attached (it doesn't stutter, but it's not smooth... low resolution at "best performace" and reduced frame rate). Even if I remove all filters FCPX plays back Red 4k (again not transcoded) about the same as CC at 1/2, but with a seemingly lower resolution to keep it smooth.  It's a head scratcher. It's like Adobe's Red handling is much better coded than Apple's in this case.
    Or... it has to be attrituable to that particular plugin (other FCPX motion-based plugins don't suffer the same fate and are fast). But either way, filter or no, Premiere Pro CC is definitely and sharper looking at 1/2 when cutting Red 4k/5k with no transcode, playback in real time, than FCPX which needs to bump it down to what looks like a 1/4 or less rez to keep it smooth. So I have no idea what is going on.
    This experience is the opposite with HD, where FCPX is significantly faster (using the same filters/plugin, using C300 Canon XF for HD and 4 and 5K RedRaw alternatively).  Premiere seems slower in HD than FCPX by a good amount in HD and signficantly faster with Redraw 4k. Go figure.

  • Why are 'saved as' .psd files so much bigger than original raw nef files?

    I was under the impression that original raw files were the biggest possible. I appear to be very wrong. Why are 'saved as' .psd files so much bigger than original raw nef files?
    I'm beginning to think that saving them as psd is a bad idea.
    Yes, though I've heard all the arguments of keepng the original raw files (For ex. Did you throw away the negatives when you were using film) I se eno purpose in keeping them. Once I've made the initial adjustments--cropping, color correction etc. I don't feel a need to ever go back and never do. Most of my work is done in Photoshop and I like it that way--but suddenly finding myself with such huge files doesn't appeal to me at all--and other formats like tif...well never mind for now.

    Good point made c.pfaffenbichler however, my thinking is this--there is time spent on the raw file and then there is much more time spent on (usually a psd) the file once in Photoshop. For me to then go back to the orignal raw file, after having worked on it on PS would mean getting rid of all the work (larger amount of work, time wise and artistic wise) done on PS which seems pointless. Although the psd file does show your layers and stuff it only shows the end results of that layer. It does not show from where to where you pointed your brush, from what point to what point you changed the color or part of an image etc. etc.Anyhow I understand why most people keep their raw files, but this is the main reason why I do not. It would mean hours of work on an image you already worked on (and usually were satisfied with) to perhaps make some minor alteration. Also please note that though I was noce a pro photog, no I do it mostly for fun. Getting the exact red in my Coca Cola can has never been of importance. On the other hand, if there were a way of working on a raw file within Photoshop and keep it (save it as) a raw file equivalent, then I would absolutely do so.

  • Why this Query is taking much longer time than expected?

    Hi,
    I need experts support on the below mentioned issue:
    Why this Query is taking much longer time than expected? Sometimes I am getting connection timeout error. Is there any better way to achieve result in shortest time.  Below, please find the DDL & DML:
    DDL
    BHDCollections
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[BHDCollections](
     [BHDCollectionid] [bigint] IDENTITY(1,1) NOT NULL,
     [GroupMemberid] [int] NOT NULL,
     [BHDDate] [datetime] NOT NULL,
     [BHDShift] [varchar](10) NULL,
     [SlipValue] [decimal](18, 3) NOT NULL,
     [ProcessedValue] [decimal](18, 3) NOT NULL,
     [BHDRemarks] [varchar](500) NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_BHDCollections] PRIMARY KEY CLUSTERED
     [BHDCollectionid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    BHDCollectionsDet
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[BHDCollectionsDet](
     [CollectionDetailid] [bigint] IDENTITY(1,1) NOT NULL,
     [BHDCollectionid] [bigint] NOT NULL,
     [Currencyid] [int] NOT NULL,
     [Denomination] [decimal](18, 3) NOT NULL,
     [Quantity] [int] NOT NULL,
     CONSTRAINT [PK_BHDCollectionsDet] PRIMARY KEY CLUSTERED
     [CollectionDetailid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Banks
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[Banks](
     [Bankid] [int] IDENTITY(1,1) NOT NULL,
     [Bankname] [varchar](50) NOT NULL,
     [Bankabbr] [varchar](50) NULL,
     [BankContact] [varchar](50) NULL,
     [BankTel] [varchar](25) NULL,
     [BankFax] [varchar](25) NULL,
     [BankEmail] [varchar](50) NULL,
     [BankActive] [bit] NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_Banks] PRIMARY KEY CLUSTERED
     [Bankid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    Groupmembers
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[GroupMembers](
     [GroupMemberid] [int] IDENTITY(1,1) NOT NULL,
     [Groupid] [int] NOT NULL,
     [BAID] [int] NOT NULL,
     [Createdby] [varchar](50) NULL,
     [Createdon] [datetime] NULL,
     CONSTRAINT [PK_GroupMembers] PRIMARY KEY CLUSTERED
     [GroupMemberid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    ALTER TABLE [dbo].[GroupMembers]  WITH CHECK ADD  CONSTRAINT [FK_GroupMembers_BankAccounts] FOREIGN KEY([BAID])
    REFERENCES [dbo].[BankAccounts] ([BAID])
    GO
    ALTER TABLE [dbo].[GroupMembers] CHECK CONSTRAINT [FK_GroupMembers_BankAccounts]
    GO
    ALTER TABLE [dbo].[GroupMembers]  WITH CHECK ADD  CONSTRAINT [FK_GroupMembers_Groups] FOREIGN KEY([Groupid])
    REFERENCES [dbo].[Groups] ([Groupid])
    GO
    ALTER TABLE [dbo].[GroupMembers] CHECK CONSTRAINT [FK_GroupMembers_Groups]
    BankAccounts
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[BankAccounts](
     [BAID] [int] IDENTITY(1,1) NOT NULL,
     [CustomerID] [int] NOT NULL,
     [Locationid] [varchar](25) NOT NULL,
     [Bankid] [int] NOT NULL,
     [BankAccountNo] [varchar](50) NOT NULL,
     CONSTRAINT [PK_BankAccounts] PRIMARY KEY CLUSTERED
     [BAID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    ALTER TABLE [dbo].[BankAccounts]  WITH CHECK ADD  CONSTRAINT [FK_BankAccounts_Banks] FOREIGN KEY([Bankid])
    REFERENCES [dbo].[Banks] ([Bankid])
    GO
    ALTER TABLE [dbo].[BankAccounts] CHECK CONSTRAINT [FK_BankAccounts_Banks]
    GO
    ALTER TABLE [dbo].[BankAccounts]  WITH CHECK ADD  CONSTRAINT [FK_BankAccounts_Locations1] FOREIGN KEY([Locationid])
    REFERENCES [dbo].[Locations] ([Locationid])
    GO
    ALTER TABLE [dbo].[BankAccounts] CHECK CONSTRAINT [FK_BankAccounts_Locations1]
    Currency
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[Currency](
     [Currencyid] [int] IDENTITY(1,1) NOT NULL,
     [CurrencyISOCode] [varchar](20) NOT NULL,
     [CurrencyCountry] [varchar](50) NULL,
     [Currency] [varchar](50) NULL,
     CONSTRAINT [PK_Currency] PRIMARY KEY CLUSTERED
     [Currencyid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    CurrencyDetails
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[CurrencyDetails](
     [CurDenid] [int] IDENTITY(1,1) NOT NULL,
     [Currencyid] [int] NOT NULL,
     [Denomination] [decimal](15, 3) NOT NULL,
     [DenominationType] [varchar](25) NOT NULL,
     CONSTRAINT [PK_CurrencyDetails] PRIMARY KEY CLUSTERED
     [CurDenid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    QUERY
    WITH TEMP_TABLE AS
    SELECT     0 AS COINS, BHDCollectionsDet.Quantity AS BN, BHDCollections.BHDDate AS CollectionDate, BHDCollectionsDet.Currencyid,
                          (BHDCollections.BHDCollectionid) AS DSLIPS, Banks.Bankname
    FROM         BHDCollections INNER JOIN
                          BHDCollectionsDet ON BHDCollections.BHDCollectionid = BHDCollectionsDet.BHDCollectionid INNER JOIN
                          GroupMembers ON BHDCollections.GroupMemberid = GroupMembers.GroupMemberid INNER JOIN
                          BankAccounts ON GroupMembers.BAID = BankAccounts.BAID INNER JOIN
                          Currency ON BHDCollectionsDet.Currencyid = Currency.Currencyid INNER JOIN
                          CurrencyDetails ON Currency.Currencyid = CurrencyDetails.Currencyid INNER JOIN
                          Banks ON BankAccounts.Bankid = Banks.Bankid
    GROUP BY BHDCollectionsDet.Quantity, BHDCollections.BHDDate, BankAccounts.Bankid, BHDCollectionsDet.Currencyid, CurrencyDetails.DenominationType,
                          CurrencyDetails.Denomination, BHDCollectionsDet.Denomination, Banks.Bankname,BHDCollections.BHDCollectionid
    HAVING      (BHDCollections.BHDDate BETWEEN @FromDate AND @ToDate) AND (BankAccounts.Bankid = @Bankid) AND (CurrencyDetails.DenominationType = 'Currency') AND
                          (CurrencyDetails.Denomination = BHDCollectionsDet.Denomination)
    UNION ALL
    SELECT     BHDCollectionsDet.Quantity AS COINS, 0 AS BN, BHDCollections.BHDDate AS CollectionDate, BHDCollectionsDet.Currencyid,
                          (BHDCollections.BHDCollectionid) AS DSLIPS, Banks.Bankname
    FROM         BHDCollections INNER JOIN
                          BHDCollectionsDet ON BHDCollections.BHDCollectionid = BHDCollectionsDet.BHDCollectionid INNER JOIN
                          GroupMembers ON BHDCollections.GroupMemberid = GroupMembers.GroupMemberid INNER JOIN
                          BankAccounts ON GroupMembers.BAID = BankAccounts.BAID INNER JOIN
                          Currency ON BHDCollectionsDet.Currencyid = Currency.Currencyid INNER JOIN
                          CurrencyDetails ON Currency.Currencyid = CurrencyDetails.Currencyid INNER JOIN
                          Banks ON BankAccounts.Bankid = Banks.Bankid
    GROUP BY BHDCollectionsDet.Quantity, BHDCollections.BHDDate, BankAccounts.Bankid, BHDCollectionsDet.Currencyid, CurrencyDetails.DenominationType,
                          CurrencyDetails.Denomination, BHDCollectionsDet.Denomination, Banks.Bankname,BHDCollections.BHDCollectionid
    HAVING      (BHDCollections.BHDDate BETWEEN @FromDate AND @ToDate) AND (BankAccounts.Bankid = @Bankid) AND (CurrencyDetails.DenominationType = 'COIN') AND
                          (CurrencyDetails.Denomination = BHDCollectionsDet.Denomination)),
    TEMP_TABLE2 AS
    SELECT CollectionDate,Bankname,DSLIPS AS DSLIPS,SUM(BN) AS BN,SUM(COINS)AS COINS  FROM TEMP_TABLE Group By CollectionDate,DSLIPS,Bankname
    SELECT CollectionDate,Bankname,count(DSLIPS) AS DSLIPS,sum(BN) AS BN,sum(COINS) AS coins FROM TEMP_TABLE2 Group By CollectionDate,Bankname
    HAVING COUNT(DSLIPS)<>0;

    Without seeing an execution plan of the query it is hard to suggest something useful. Try insert the result of UNION ALL to the temporary table and then perform an aggregation on that table, not a CTE.
    Just
    SELECT CollectionDate,Bankname,DSLIPS AS DSLIPS,SUM(BN) AS BN,SUM(COINS)AS COINS  FROM
    #tmp Group By CollectionDate,DSLIPS,Bankname
    HAVING COUNT(DSLIPS)<>0;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Why is the iPhone 5 using so much data I have read a lot of complaints and I have went over on my plan and never have?

    Why is the iPhone 5 using so much data I have read a lot of complaints and I have went over on my plan and never have?
    I have even turned off LTE. Cut off my cellular data off of apps. Still uses data I switched back to my iPhone 4 cause I had used my
    Data in 2 weeks!

    I have the same problem on my 4S 64G: I updated to 7.1.1 and burned through my cellular data allowance without running anything that ought to be using it. I incurred an overage charge on Thursday, my new billing cycle started on Friday, and I immediately had used 3/4 of my allowance for the new cycle. I typically do not use my allowance in an entire month so burning through it in a day or two twice in one week is very much not right.
    Possibly unrelated or not: last night I was out, did NOT use any apps that should use cellular data, and came home and my phone refused to connect to my home wifi despite turning this and that on and off. I burned cellular allowance while wifi was available.
    It seems like someting on my phone, whether an app or the iOS itself, is using cellular data even while my phone is not in use. All I could do is turn off Cellular Data in Settings but that very much diminishes the usefulness of a phone that has served me well -- without data overages! -- for several years.
    Please fix this, Apple!

  • Can I transfer my CC 6 apps to a new Volume on the same iMac? I would much rather disable and downlo

    Can I transfer my CC 6 apps to a new Volume on the same iMac? I would much rather disable and download to new Volume. I couldn't use Adobe CC6 or CS 6 at all because my iMac was so messed up?

    Romeobot if you faced difficulties with your previous computer then I would recommend you reinstall the software on the new computer.  In fact you may want to install the Adobe applications prior to migrating or transferring any files to your new computer.  For information on how to install your Adobe Creative applications please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Why are TV shows (like Supernatural) so much more expensive to download (SD or HD) than sites like Amazon?

    Why are TV shows (like Supernatural) so much more expensive to download (SD or HD) than sites like Amazon?

    They aren't really that much cheaper on Amazon. For Supernatural season 7, each single episode in HD is $2.99, same as iTunes. If you buy the whole season on Amazon, it's $2.84 per episode. Maybe $2 cheaper to buy on Amazon.
    Remember though, on Amazon, you can't sync the videos onto an iPad/iPod/iPhone or Apple TV. In iTunes you can.
    I prefer to buy on iTunes simply for the convenience, iTunes makes all the differance.

  • I have Adobe Creative Cloud, I thought FormsCentral was supposed to be apart of that.  Why do I need to pay so much more?

    I have Adobe Creative Cloud, I thought FormsCentral was supposed to be apart of that.  Why do I need to pay so much more to add FormsCentral.  Is there something in the Creative Cloud that will work the same way?

    Hi maybeamy,
    Please see Is FormsCentral part of the Creative Cloud?
    You can create unlimited offline forms with the desktop application that's included with Acrobat XI as part of Creative Cloud. If you want to track responses, or create more than one web form, you'd need a FormsCentral subscription.
    Please let us know if you have additional questions.
    Best,
    Sara

  • Why does AAM Updates Notifier run so much?

    Why does AAM Updates Notifier run so much? It seems to really be working my hard drive.

    AAM updater launches automatically as you start the computer, so you can try preventing it from auto launch as per the operating system.
    Though it is not recommended much. you can check it is Re: How to deinstall AAM Update Notifier
    Moving it to download & install for resolution.
    Regards
    Rajshree

Maybe you are looking for