How does the follwoing query work?

Want to know how does the follwoign query work??
For every row in flsp
the subquery is going to get executed or is it just one time execution of the subquery??
SET (DURATION, sdr, inr) =
(SELECT SUM (tot_charges), SUM (tot_charges_sdr),
SUM (tot_duration)
WHERE t.sender_pmn = flsp.sender_pmn
AND t.recipient_pmn = flsp.recipient_pmn
AND t.imsi_min = flsp.imsi
AND TRUNC (t.call_date) = TRUNC (flsp.call_date)
AND t.call_type = flsp.call_type
AND t.service_code = flsp.service_code
GROUP BY sender_pmn,
TRUNC (t.call_date),
Edited by: user8731258 on Sep 27, 2010 2:54 AM

user8731258 wrote:
the global session table is going to hold data for one sessions where as the table flsp is going to hold data for the entire day.During a session there could be say 10 thousand records.Sounds like a bad idea.
user8731258 wrote:
ANd there are goign to aroung 100 such sessions.Continues to sound bad.
user8731258 wrote:
I have to update the flsp continually.Just got worse.
user8731258 wrote:
How do i make this fetch fast??This still makes no sense to me.
Why are you moving all this data around and utilizing temporary tables instead of directly querying the underlying data on an 'as needed' basis?
I think you have undertaken entirely the wrong technical approach to whatever business problem you are attempting to solve (though it's hard to say for sure as we still know little of what you've got going on).
So back to step number one like i asked before.
Can you explain (from the very beginning) WHY you are attempting this type of set up?

Similar Messages

  • How does the event structure work & ...

    How does the event structure work & and how to modify the case example if you want to change the name of the case? I haven't a look at the manual but nothing about event structure is mentioned.

    I know how it works.. =P

  • How does the notify() call work in Java?

    Can someone help me:
    How does the notify() call work in Java?

    Java's Thread Tutorial
    JavaWorld: Introduction to Java threads
    IBM: Introduction to Java threads
    Google: java+threads+tutorial

  • How does the copy button work in safari for ipad (copy button under facebbok share button)?

    How does the copy button work in safari for ipad (copy button under facebbok share button)?

    On a website ...  
    Tap the Action icon bottom of that window. (white square with a right facing arrow) then tap Facebook.
    You should see the following depending on the what content the website can share.
    Copy / Mail / Message / Twitter / Print  / Bookmark

  • How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    Try the following to fix the iTunes Can't Connect issue that you are having:
    Open Settings.
    Open General.
    Open Date & Time.
    Switch the Set Automatically setting to Off.
    Open Set Date & Time.
    Set the date to a year ahead.
    Go back to the Home screen and open Passbook.
    Tap the App Store button. The App Store should load.
    Go back to Date & Time and turn on Set Automatically.
    Thanks to:

  • How does the newest Iphone work with Ford Sync?

    How does the new Iphone work with Ford Sync? I was thinking of purchasing the 4s but may go elsewhere if there is a better phone for the equipment in my vehicle.

    That would be a NO.. I should have done my homework before I switched to IPhone because the Bluetooth just does not want to sync with my Ford Truck. Its such an inconvience. But I see from other posts that Ford isn't the only car experiencing problems. So Hopefully Apple fixes this problem QUICKLY!

  • HT4914 How does the payment method work for iTunes Match?

    How does the payment method work with iTunes Match. For example, if you have a gift card, does it take it out of that. Or is there tax? What if you cancel your subscription in the middle of the year, does it take the money for that year or not? If someone could answer those questions it would be greatly apreciated. And if anyone has their own questions, feel free to ask. Thank you.

    Hi HLFrank,
    Welcome to Adobe Forum,
    You can opt for monthly payment in a yearly contract or pay at one go for an year.
    Please check the option at

  • How does the .accept() method work?

    I have checked the source code of the ServerSocket implementation that comes with the jdk.
    I tought I was going to find some type of loop. However I found nothing like that! so how does the accept method work.
    I mean when we call the .accept() method, the thread in which the socketServer is initialized gets stoped untill a new client connection is recieved! how is this actually managed?

    At a guess, the accept call that Java makes, relies on the OS system call through JNI. accept would then block until a new connection is present if you are using blocking.

  • How does the trade in work?

    How does the trade in work. If you don't get your gift card until 4-6 weeks after you mail it. How do you apply it to the cost of the new phone?  If I go to a store that has it in stock will they give you the credit in the store?

        Hi Karen922!
    I can happily alleviate the confusion! If you visit a store and the iPhone 6 or 6 Plus is available you'll receive the trade in value during the transaction. If the device is purchased online,via the phone or if the store is out of stock, you'll receive the gift card in mail.
    Follow us on Twitter @VZWSupport

  • How does the repair process work

    how does the repair process work, currently broke my iPhone, water damage, and still have a warranty until july 30.

  • How does the time machine work

    how does the time machine work....I need to find an older version of a document...

    Hi mogburn,
    Time Machine is part of the System software, not a feature of the word processing and page layout application, Pages, the topic in this community.
    That said, Time Machine is pretty easy to get into.
    In the Finder, open the folder containing the current version of the file.
    Select the file, then click on the Time Machine icon in the menu bar and choose Enter Time machine.
    The folder window will move to the center of the screen, and two arrows will appear near the lower right corner of the window.
    Click the one pointing back to go back in time, and the one pointing toward the front (of the computer) to return to the present. The display will stop at each saved version of the file along the way.
    Need more details? Try asking in the Mac OS X v10.6 Snow Leopard community.

  • How does the multicolumn listbox work?

    how does the multicolumn listbox work?

    Code attached
    [email protected]
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    Attachments: ‏31 KB

  • How does the return method work?

    how does the return method work?

    What do you mean by "return method"? Methods return a value (or void, but that's still a "value" of sorts).
    Returning a Value from a Method

  • How does the Delta functionality works while updating Infocube from PA

    Hi Gurus
    How does the Delta functionality works when you send forecast to the Info cube from the Planning Area.
    As I have weekly based planning, every week we have to update the forecast into the Cube. If I update  every week into the Cube , then the values are going to append  in the Info cube.
    Shall I create ODS in between the Planning area  and the Info cube .
    Any other method ?
    Please Suggest.

    Hi Preetham,
    Data Extraction from planning area to infocube usually its supports for full update only, when u r going to load the data from planning area to cube ,it deletes the previous data and u vil get the fresh data, this is the best method performance wise,
    if u want to use the delta functionality u can go for planning area to Dso, Dso to cube, it vil supports the delta functionality, but it vil degrades the system performance,

  • HT4157 How does the sim card work

    how does the sim card work? I have first gen. ipad 3g att

    U have to get a sim card from a phone company that suits your phone generally they will offer. U a plan which can expire over a term ie.monthly yearly u get to choose, the sim card is inserted on the side of the iPad u can use your iPad anywhere there is cellphone coverage.

Maybe you are looking for


    I have decided since my realplay program is not working i would try to use the windows media player instead but when i open it up it says there are no file on my ipod shuffle whn i know there is for a fact . How can i get it to work or is there a pro

  • Upgrade 10.4.9 to 10.4.10 for iPod Touch connection

    Extremely disappointing trying to get this ipod touch to work. my ibook runs on 10.3.9 and apparently i need to upgrade to 10.4.10. it was difficult enough to find the update. but after downloading what's called the universal version - and trying to

  • DVD drive won't work but it will burn disk?

    imac 2.4Ghz - 10.5.8 For sometime now my DVD drive spits out Cd's/DVDs as soon as I put it in. Strange thing is, it will let me put blank media in and will allow me to burn disks. It's getting really annoying now as can't do so many things I need to

  • Windows 8 ISO OEM Edition

    hi where can i download the Windows 8 x64 ISO OEM Edition by Lenovo.

  • "No speakers connected to AirTunes device"

    is the message I keep getting when trying to connect to my Express w/ iTunes 7. Never had a problem connecting until iTunes 7, now it won't work. I know there are bugs, but is there any solution to this?