Complex requirement!!!! Any Help on this !!!
Hi All ,
BANNER
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for 32-bit Windows: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - Production
I have a Table having the values as
Emp Sal Inc
100 1000 100
100 1000 900
100 1000 100
200 500 500
300 200 100If Inc is Less Than or equal to Sal - Insert in a Temp - Record 1 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900 =1000) Since the values is equal to Sal - Insert in a Temp Table - Record 2 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900+100 =1100) Since the values Inc Sum( 1100) > 1000 - Insert in a Temp1 Table the difference -100 - Record 3
I took a Ex from Internet and started ... whether should i need to use Cursor, Loop ?? Not sure
Since I have not used Loop stmt..
DECLARE
i NUMBER := 1;
BEGIN
LOOP
INSERT INTO T1 VALUES(i,i);
i := i+1;
EXIT WHEN i>100;
END LOOP;
END;Can anyone guide or give some inputs on this ...for me to get started to develop my own development...
Thanks
Ananda
Edited by: Ananda on Apr 8, 2010 9:11 PM
Edited by: Ananda on Apr 8, 2010 9:30 PM
Edited by: Ananda on Apr 9, 2010 2:32 AM
Edited by: Ananda on Apr 9, 2010 3:23 AM
Edited by: Ananda on Apr 9, 2010 12:00 PM
Hi ,
Source: I have just have different Column name ...its is the Exact requirement from the Business not an Example
BANNER
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for 32-bit Windows: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - ProductionSource: I have just have different Column name ...its is the Exact requirement from the Business not an Example
Emp Sal Inc
100 1000 100
100 1000 900
100 1000 100
200 500 500
300 200 100
Expected Output
Emp Sal Inc
100 1000 100 -- For this record the Inc < Sal ... Insert in a Table1 Similiar Struture
100 1000 900 -- For this record the Sum(IncRecord1+IncRecord2)(100+900) < Sal....Insert in a Table1 Similiar Struture
100 1000 -100 -- For this record the Sum(IncRecord1+IncRecord2+IncRecord3))(100+900+100) < Sal....Insert in a Table2 Similiar Struture
200 500 500 -- For this record the Inc = Sal we insert
300 200 100 -- For this record the Inc < Sal we insertExplanation
==============
If Inc is Less Than or equal to Sal - Insert in a Temp - Record 1 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900 =1000) Since the values is equal to Sal - Insert in a Temp Table - Record 2 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900+100 =1100) Since the values Inc Sum( 1100) > 1000 - Insert in a Temp1 Table the difference -100 - Record 3
Thanks
Emp Sal Inc
100 1000 100
100 1000 900
100 1000 100
200 500 500
300 200 100
Expected Output
Emp Sal Inc
100 1000 100 -- For this record the Inc < Sal ... Insert in a Table1 Similiar Struture
100 1000 900 -- For this record the Sum(IncRecord1+IncRecord2)(100+900) < Sal....Insert in a Table1 Similiar Struture
100 1000 -100 -- For this record the Sum(IncRecord1+IncRecord2+IncRecord3))(100+900+100) < Sal....Insert in a Table2 Similiar Struture
200 500 500 -- For this record the Inc = Sal we insert
300 200 100 -- For this record the Inc < Sal we insert
Explanation
==============
If Inc is Less Than or equal to Sal - Insert in a Temp - Record 1 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900 =1000) Since the values is equal to Sal - Insert in a Temp Table - Record 2 ( As it is)
If Inc (Sum Record1 + Record2) ( 100+900+100 =1100) Since the values Inc Sum( 1100) > 1000 - Insert in a Temp1 Table the difference -100 - Record 3
Thanks
Similar Messages
-
My iPod touch was stolen and recovered. I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly appreciate
If the thief enabled activation lock on the device, then there is nothing that can be done. Only the password for the Apple ID that it is locked with can disable activation lock.
-
I have a USB cable for my iPod touch 4th gen. I have tried almost everything to make my windows computer find my iPod touch but its not finding it. Any help on this issue?
If not successful:
Try DFU mode and then restore
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
Try another USB port and cable
Try another computer to help determine if you have an iPod or computer problem -
My camera Canon G3 (i know it's old) no longer connects to iPhoto (8.1.2) on my iMac, I have checked with my friends iMac same model iPhoto version and it works fine using my cable, I would appreciate any help getting this sorted
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days
scottxx,
That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
LindseyT_VZW -
Hello, so today I realized that my iPhone with iOS 6 is frozen on the music. I can get back to the home screen but I can't get the music player to work because its frozen on the w's and will not respond to touch. I would be grateful for any help on this.
Hi deamayfield,
Thanks for visiting Apple Support Communities.
If your Music app is unresponsive, try restarting/resetting your iPhone:
iOS: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
Best,
Jeremy -
My iPad mini was working very fine from last 9 months....but suddenly today I found it discharging from 100% to 34% though I didn't use it at all...and also found my mini is slightly heated up at the bottom..any help regarding this would be greatful
Same thing happened to me with my peruvian credit card in the peruvian app store, I want to buy an app, but it says that my credit card is "not supported in the Peruvian app store"
-
When I tap the Apple store, YouTube and the iTunes apps, they don' launch. Any help with this?
1. Double-click the Home button to close all Inactive Apps in Task Bar
2. Hold the Apps in Task Bar down for a second or two until you see the minus sign
3. Tap the minus sign to close App
4. Tap center of screen to return to Home Screen
5. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo. Ignore the red slider -
After migrating all of my adobe software (Cs4, cs5, etc.) to my new imac, the software won't open due to many errors. Any help on this?
Welcome to the Apple Support Communities
Adobe software is conflictive when you use Migration Assistant because their applications don't work properly after migration. If you keep the DVDs or the installers of your software, use them to reinstall all your Adobe applications and they should start working correctly -
Having problems with my mouse. Cannot scroll up or down or sideways. Did all the cleaning but still not working. Any help on this??
Hello:
Try resetting the PRAM and SMC.
Barry -
I just installed Lightroom 5 but can't import photos, there is no import option anywhere. Get pop up saying error attempting to change modules.
I had this with the trial , then I purchased license and still happens. Any help with this ??<moved from Downloading, Installing, Setting Up to Photoshop Lightroom>
-
after upgrading to iOS8 my Exchange account has changed to an invalid address. I can change it but after a day or two it changes back to the invalid address. any help on this would be great. Other user on our exchange server that have iOS 7 or lower do not have this problem. All iOS 8 users in our company have this problem
have you deleted the account and re-added it? Have you done a reset or restore as outlined in the iPhone user guide? What troubleshooting have you done?
-
Hi,
I have moved items to my trash however they are not registering in my trash and I therefore cannot delete them.
My Mac is almost full and so any help on this is gratefully received.
Many thanksMillicentmac,
would you flesh out “almost full” above? That is, what size internal disk do you have, and how much free space remaining do you have? -
(-42110) is the error I get when trying to play films on iTunes - any help on this ?, (-42110) is the error I get when trying to play films on iTunes - any help on this ?
Hello AndyDryva
If you have the latest version of iTunes and the error code is still happening, then the next thing is to remove the SC Info folder on your computer. Check out the article below on how to do that.
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
http://support.apple.com/kb/TS1389
Regards,
-Norm G. -
Raju, any help on this????
In order to display a database item (table 1) item as check box.
the values of chexk boxes are the results of another table with 20 records (table2), this I will have 20 check box in my form.
I proceed like the following :
I created a region with type is SQL Query ,
the query is :
select x.name, x.code
from (select wwv_flow_item.display_and_save(1, table2.name) as name, htmldb_item.checkbox (2, table2.code, null, decode (table1.code_..., null, 0, table2.code)) as code
from table2 table2 left outer join table1 table1
on table2.code = table1.code_..and table1.code_ = :page_CODE) x
ANYWAY, the I have my result, BUT ,
because I have 20 cheeck boxex, I want to display them
in a way that they appear in three columns.
How can I change my query or how can I do it???????
NOTE : using Lists is not a solution for me!!!!
Thanks for any Help!392451,
i believe tyler answered your other two posts of this question at...
Raju, any help on this????
...regards,
raj -
I have a 19 digit Adobe Photoshop Elements 12 Serial number. It should be 24. Any help with this?
Where are you looking for the serial number?
If you have the disks, the number commencing 1057 is usually inside the packaging. It’s necessary to pull out the white inner box.
If you purchased this some while ago and the product, the serial number should be in your Adobe account. Click on the red Adobe logo (top left on this web page) sign-in with your Adobe ID (email & password) and choose Manage Account. You should be able to browse your purchase history and registered products.
Maybe you are looking for
-
Hi, I've got a Lenovo 3000 N200 0769-AH9 Laptop with a T9300 Penryn-CPU and broke my Mainboard(CPU-Cooler doesn't work any more). I saw a Mainboard for 150 €, which is very cheap, as there are no replacement mainboards to buy under 400€. I would buy
-
Photoshop CS4 on Yosemite Not Printing
Thanks to Millenium, I got CS4 to work on Mac OS X Yosemite, but it seems like my Epson r2880 won't print from it. I can get printing from CS6 and other programs, but not from CS4 :-? Any ideas?
-
Can I set Mail to automatically open and get n messages every time I start my computer? If so, how?
-
Same project in CS5 to PAL DVD and NTSC DVD.
Hi everyone, I am trying to find best solution how to do it. My project is slideshow with scaled JPEG images and some video clips from DSLR camera Canon T3i. I know that video is 16:9 (1920x1080, 29.97fr) ratio and my output should be 4:3 ratio. With
-
SRM EBP certification --- Please guide
Hi Friends, I want to take the SRM EBP certification, Please guide me on the same. Please send me the document " SAP BestPractices for SRM " and other relevant documents needed for SAP SRM EBP certification with sample questions on the same. My mail