Stuck with - update-help needed
Hello everyone and thanks for reading!I have the following problem with the update statement. Tables and data in them are as follows:
Table 1: XML_TRANSFER
create table XML_TRANSFER as
select 111111 TAX_NR, 1 TYPE, 3000 PRIJ, 3000 POBOT from dual union all
select 222222 TAX_NR, 1 TYPE, 720.7 PRIJ, 350.70 POBOT from dual union all
select 333333 TAX_NR, 1 TYPE, 2600 PRIJ, 2100 POBOT from dual;
Table 2: FIR_SETcreate table FIR_SET as
select 2011 LET, 7 KROG, 111111 TAX_NR, 10 STEV_FAK, 2000 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 11 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 12 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 13 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 1 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 2 STEV_FAK, 20.7 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 3 STEV_FAK, 100 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 4 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 333333 TAX_NR, 81 STEV_FAK, 2600 VALUE_ODPR, 0 VALUE_POBOT from dual;
OK, the tables and data are now set to the logic of "update".Look at the data in the XML_TRANSFER table.
1st row (with TAX_NR = 111111):
UPDATE statement in this case should work as: the VALUE_ODPR must be the same as VALUE_POBOT in the FIR_SET table.
This part, I managed to do with this SQL:
PROCEDURE xml_update is
BEGIN
update fir_set an
set an.value_pobot = an.value_odpr
where let = (select distinct max(let) from fir_set)
and krog = (select max(krog) from fir_set)
and
(select sum(a.VALUE_ODPR)-b.POBOT
from fir_SET a, xml_transfer b
WHERE a.tax_nr = b.tax_nr
and an.tax_nr = a.tax_nr
group by a.tax_nr,b.POBOT) = 0;
commit;
end;
Resoult is like:LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ----------------------
2011 7 111111 10 2000 2000
2011 7 111111 11 400 400
2011 7 111111 12 100 100
2011 7 111111 13 200 200
OK the following example is a little more complicated and I can't understand it. I don't know how to explain it properly... I'llPost the resoult and try to explain it:
LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ----------------------
2011 7 222222 1 200 200
2011 7 222222 2 20.7 20.7
2011 7 222222 3 100 100
2011 7 222222 4 400 30
So what we need to do, it's that we check is XML_TRANSFER. POBOT - VALUE_ODPR > 0, if it is, then we are updating VALUE_POBOT with VALUE_ODPR.In the next line check us again if the above statement is correct, and if we do the same thing. The process will continue as long as the statement
will be correct.
If the statement is no longer correct to do this operation: XML_TRANSFER. POBOT - SUM (VALUE_ODPR) (ON THE INSIDE OF THE SAME TAX_NR! Then group by tax_nr!)
and last update row with resoult. In any case, we can get negative numbers.
I really do help I explained my problem so that you can understand what I want to achieve. If you have any questions do not hesitate to ask.
Thank you very much for your help!
Best regards, Cain!
Hello
OK, I think I knew this time:
update fir_SET an
set value_pobot =(
select case when calc_VALUE_POBOT> 0 then calc_VALUE_POBOT else 0 end
from (
select
a.rowid row_id,
case
when b.pobot
- sum(a.value_odpr)
over (partition by a.tax_nr order by a.stev_fak) >=0
then value_odpr
else value_odpr
+ b.pobot
- sum(a.value_odpr)
over (partition by a.tax_nr order by a.stev_fak)
end as calc_VALUE_POBOT
from
fir_SET a,
xml_transfer b
WHERE a.tax_nr = b.tax_nr ) tmp
where an.rowid = tmp.row_id
)
where let = (select distinct max(let) from fir_set)
and krog = (select max(krog) from fir_set) ;
Is this ok for you?
Kind regards
Sylvie
Tags: Database
Similar Questions
-
Windows Vista stuck with "update configuration".
Whenever I stop Windows Vista, System stucks with "Configuring updates" appearing on the screen.
The original post has been read.
The original post has no importance now.
What you do not understand, is that you now do a logoff and reboot for a fresh start of windows.
The problem should be gone because the download folder has been emptied.
and if the problem is still there, start the system in safe mode and then rinse the folder download again.
-
Hi Experts
I was asked to calculate the institution given the employee by employee total financial burden
current age and current salary, until he reaches retirement pension under development. For example: based on the date of birth of the employee.
If the age of the employee as for November 30, 2011 was 30 years and 4 months, and his total compensation on the
same date is Rs. 40 000, then the financial burden until he reaches the age of 58 is (58 years - 30 years and)
4 months = 27 years and 8 months or 332 months * 40 000 /-= Rs. 1,32,80,000 /-). Months only are to be considered.
This must be applied to each employee and calculated age (years and months) & financial burden is necessary
update in the SAL_DAT Table.
Here's my Table of SAL_DAT Table Structure
Help with SQL UPDATE?CREATE TABLE SAL_DAT ( ECODE NUMBER(5), BASIC NUMBER(12,2), DA NUMBER(12,2), HRA NUMBER(12,2), CCA NUMBER(12,2), MED NUMBER(12,2), IR NUMBER(12,2), DP NUMBER(12,2), TOT_SAL NUMBER(12,2), DOB DATE, AGE_YRS NUMBER(2), AGE_MTH NUMBER(2), BURDEN NUMBER(15,2) ) Sample Data : INSERT INTO SAL_DAT ( ECODE, BASIC, DA, HRA, CCA, MED, IR, DP, TOT_SAL, DOB, AGE_YRS, AGE_MTH, BURDEN ) VALUES ( 1905, 3075, 2006, 1564, 0, 0, 0, 1537, 8182, TO_DATE( '12/12/1970','MM/DD/YYYY'), 0, 0, 0); INSERT INTO SAL_DAT ( ECODE, BASIC, DA, HRA, CCA, MED, IR, DP, TOT_SAL, DOB, AGE_YRS, AGE_MTH, BURDEN ) VALUES ( 1644, 6169, 5248, 1200, 0, 0, 0, 3085, 15702, TO_DATE( '11/30/1965','MM/DD/YYYY'), 0, 0, 0); INSERT INTO SAL_DAT ( ECODE, BASIC, DA, HRA, CCA, MED, IR, DP, TOT_SAL, DOB, AGE_YRS, AGE_MTH, BURDEN ) VALUES ( 1217, 5600, 4500, 1100, 0, 0, 0, 2800, 14000, TO_DATE( '06/30/1962','MM/DD/YYYY'), 0, 0, 0); INSERT INTO SAL_DAT ( ECODE, BASIC, DA, HRA, CCA, MED, IR, DP, TOT_SAL, DOB, AGE_YRS, AGE_MTH, BURDEN ) VALUES ( 1908, 7500, 6200, 1800, 0, 0, 0, 3750, 19250, TO_DATE( '01/16/1975','MM/DD/YYYY'), 0, 0, 0); INSERT INTO SAL_DAT ( ECODE, BASIC, DA, HRA, CCA, MED, IR, DP, TOT_SAL, DOB, AGE_YRS, AGE_MTH, BURDEN ) VALUES ( 1715, 1500, 1000, 800, 0, 0, 0, 750, 4050, TO_DATE( '05/21/1971','MM/DD/YYYY'), 0, 0, 0); commit;
Hello
The Oracle 9, MERGE instructions must have WHEN MATCHED and WHEN NOT MATCHED clauses. Just add a WHEN NOT MATCHED clause. It will never be executed, so no matter what he does. For example:
MERGE INTO sal_dat dst USING ( SELECT ecode, tot_sal, dob , MONTHS_BETWEEN ( TRUNC (SYSDATE, 'MONTH') , TRUNC (dob, 'MONTH') ) AS age_in_months FROM sal_dat ) src ON (src.ecode = dst.ecode) WHEN MATCHED THEN UPDATE SET dst.age_yrs = FLOOR (src.age_in_months / 12) , dst.age_mth = MOD (src.age_in_months, 12) , dst.burden = src.tot_sal * ( (12 * 58) - src.age_in_months ) WHEN NOT MATCHED THEN INSERT (dst.ecode) -- NEW VALUES (src.ecode) -- NEW ;
If eciode is not unique, use a column (or a list of columns) unique instead of ecode.
-
Right. I read the other posts and do not know if it's the same or not, but...
Update Windows page fails to load - no error message
antivirus and another updater with update in the URL cannot purely and simply, or don't load - no error message
any attempt to download anything from microsoft download site fails to load - no error messageI got stardock, not my colors, uninstalled
same result.
any ideas?
CLM-NSWG4,
It seems to me that you can have to deal with a virus\malware infection. You can watch these threads discuss virus problems and see if you are able to detect problems, that I suggest you use an online scanner (if you are able to) and scan your system.Windows Live OneCare Safety Scanner Windows 7\Vista
Windows Live OneCare Safety Scanner Windows XP
Can I clean an already infected computer?
If you need more help then read: what to post in the Windows Update forum
Mike - Engineer Support Microsoft Answers
Visit our Microsoft answers feedback Forum and let us know what you think. -
to make the pc to automatically update, I need to install sp3, but this isn't acceptting help yoh pls
What do you mean by not accepting?
Follow my tips on how to get SP3 here...
Tricky
-
With the help of Vista on the laptop. Receive 3 updates on initialize to the top & stop. Do not install. Party at 3 x through process 80070002. How to fix? 3 updates failed to install: KB2779562, KB2705219 and KB2722913. Constantly configures updates during startup and shutdown. Takes a long time for the two workers. Can anyone give advice?
To decode 0 x 80070002. X 0 means that it is a hexadecimal number, 8 , error, the first 7 means it a windows error and the rest of Eastern 2, the number, the Windows error.To search for the error message we need to decimal format. Start the Calculator (Start - All Programs - Accessories - calculator) and choose the menu display - scientific, then the menu display - Hex. Enter 2 Menu display - decimal. It will say 2.Start an command prompt (Start - All Programs - Accessories - command prompt) and typenet helpmsg 2and it will sayThe system cannot find the specified file.Use Notepad to search for FATAL and 80070002 in C:\Windows\Windowsupdate.log. -
I need assistance with updates for the drivers on my computer.
I'm new with computers and need help to ensure that my drivers are up to date, I have a Dell Inspiron 1501 running Vista 32-bit and also where to go to get the updates, I need. Thank you in advance for any help, anyone can have to offer.
Is the first right to updates pilot "if it ain't broke, don't fix it'. Normally if everything works, you want to leave things as they are. The exception is that heavy players usually want to update their video and sound drivers for every last bit of absolute performance of the equipment to get the best frame rate. If you are not one of these people, you need not update your drivers, if there is no problem you're trying to solve.
That said, if you really want to update your drivers you won't get the from the website of Dell support for your specific model computer. Enter your Service tag to ensure that you get the right ones.
http://support.Dell.com/support/downloads/index.aspx?c=us&l=en&s=Gen
MS - MVP - Elephant Boy computers - don't panic!
-
Help needed (again) with KB3080351
I'm trying to permanently block the upgrade of Windows 10 on my Windows 7 Professional x 64. I'm following the instructions in the KB3080351 article:
https://support.Microsoft.com/en-us/KB/3080351
Yesterday, I received help with the instructions in the article to "Disable the upgrade to the latest version of Windows through Windows Update", by using the Configuration of the computer.
Now, I'm trying to follow the instructions in the article above to 'Hide the get Windows app (notification area icon) 10', but I encountered a problem with the editing mode of the Windows registry, which States:
For non-Enterprise Windows versions, the notification icon can be deleted via the Windows registry. To do this, set the following registry value:
Subkey: HKLM\Software\Policies\Microsoft\Windows\Gwx
Value DWORD: DisableGwx = 1The problem is when I browse to HKLM\Software\Policies\Microsoft\Windows\ - there are no. Gwx.
How can I find the Gwx in the Windows registry?
Thanks for your help!
Cyndi
I thought he'd be more that the other question in your other post here, so I was wondering if it would really work:
Here is an article more encompassing which contains more information that might help:
http://www.askvg.com/how-to-remove-get-Windows-10-app-and-its-icon-from-taskbar/
Don't forget... There is no cancellation or quit without saving it in the registry editor to return to the top and/or make a restore point before you begin so if something goes wrong, you have a way to cancel the change:
-
Hey Adobe Community People.
My co-editor is CC 2015 (working in another State), but the University computer I use is stuck with CC 2014. I checked with our IT Department and they say that the school license is not set to renew until August, so we're stuck with this version until then. Am I supposed to twiddle my thumbs for the next two months? My editor and I share projects every day so this is a huge setback.
Is there is workaround for this backward incompatibility dilemma? I don't know about XML, but that it only works with sequences, or can it many projects? Must reinstall everything 2014 and just redo the whole of his work?
I buy my own darn computer and pay for 2015 for CC?
These ^ ^ ^ are all the solutions... but I wonder if there is a simpler, which don't make me to re-do work or pay for the Crack of Adobe (I mean cloud creative).
Also, Adobe, you are makes it very difficult for me to contact support by phone. I am disappointed in your absence on the customer service... it is also just a rant on my frustration with the incompatibility of these annual updates of the CC.
Help!
Sincerely,
Frustrated. (My real name is Brian... and I'm not usually this unpleasant)
This isn't his right - the whole concept of the subscription model is up-to-date new revisions are released. You should talk to Adobe - I've provided contact information in my answer.
-
[Help needed] Several errors in X 40 with ADF security with or without custom login page
OTN greetings community, I'm sorry to bother you again, but I need help again once, links to the relevant files (pastebin and imgur) are on the bottom of the post in the meantime ill try to explain my situation.
I use version 11.1.1.7.0 for JDeveloper with (I assume) updates all of the current side.
In my efforts to learn more about ADF, I had finished the Apps to build with ADF I guide I produce a 'simple' application to manage contacts, companies and their places of activity.
With all my functions done and tested semi (small scale) I went ahead and and tried implement security.
So, with the help of Andrejus Baranovskis Entry of Blog (have been using his blog as a source of information, has contributed to many situations, especially related bean) and fireboxtraining (Part1 and Part2) youtube videos, I have 2 pages, a Login Page (a dispatcher Panel 1 facet has only text showing the user names and passwords connection and the 2nd input text facet 2 related to the bean requesting the user name and Word 3rd password a button that calls the doLogin method) and an error page displays just the text.
So after you have enabled security, create 2 users, create 2 roles of the company, creating application roles 2 and associating all 2 grants of right one to each role app giving privilege to see on the pages I want, I developed (my goal is that in the homepage, using a mixer according to user's role would display a region that all data can be changed or another that all data is read-only but I don't that have not yet implemented).
So I went on the test page and unfortunately I hit the 1st wall would not display the login page (seemed to be always be update a blank page in firefox) so I checked if the pages are in the anonymous role and they were. So, as I saw in the video I deleted the page definition files in the Databindings.cpx file and I am past the 1st obstacle has shown the login page. So I typed the username and passwords and I hit my second wall (error 404 - Not found), I saw the code, debugged it and found that he wouldn't be able to hang or something like that (forgive me for my brutal inexperience) then I disabled the security and reactivated with pages of default form, and when it prompted me to type the user name and password I had hit my 3rd and last wall (error 401 - no allowed) which we I didn't wait, I went in the jazn-"Data.xml" and looked if the grants/permissions/roles were ok, in my inexperience, I don't find any problem, so beat I come here to seek support.
Code:
Error logs:
OnDeploymentScreenshots:
Sorry for the long post and to put the code in another site (not wanted to put this post more than it already is).
Thank you very much for your time and your support.
Hello
Article http://www.oracle.com/technetwork/issue-archive/2012/12-jan/o12adf-1364748.html
comes with a sample download, run and explore.
http://www.Oracle.com/technetwork/issue-archive/2012/12-Jan/o12adf-524995.zip
It includes all your use cases. So I suggest that start here
Note that following the code has experienced problems with recent versions of the IDE instead of a side server before we recommend (and will amend accordingly our documentation) to use a redirect on the facesContext--> externalContext instead (I'm typing through while it's not his apparent
recommended and more)
' Private Sub sendForward (HttpServletRequest, HttpServletResponse response, forwardUrl String query) {}
FacesContext ctx = FacesContext.getCurrentInstance ();
RequestDispatcher dispatcher = request.getRequestDispatcher (forwardUrl);
try {}
Dispatcher.Forward (request, response);
} catch (ServletException to) {}
reportUnexpectedLoginError ("ServletException", is);
} catch (IOException ie) {}
reportUnexpectedLoginError ("IOException", IE);
}
ctx.responseComplete ();
}
Frank
-
Hello
I am really puzzled here and need help you guys!
A friend of mine, who is not computer savy is used to windows 7 and would like to 'return' in Windows 7 to a windows 10.
She recently bought a new computer:
Black HP 15.6 "15-f209wm with Intel Celeron N2840 4 GB memory 500 GB (windows 10)And had me working on it to install it as a Windows 7.
The problem that I didn't forsee is that after I installed wiondows 7 Nothing worked because all the installed drivers were too 'new' for the Windows 7 operating system at least that is what I think the problem is.The main thing that doesn't work is the USB ports and Wifi,
and I cannot find drivers to make this 'connection', this 'bridge' of sorts between Windows 7 operating system and the hardware inside the computer. And I can't find solutions on the net!An idea that I'm trying is to copy and paste drivers from another computer Windows 7 HP, on it. But I don't know if that's going to walk.
I am really confused with this and need your expertise!
We thank you in advance.* Note *.
This computer has not been upgraded from a previous version of Windows.
I tried the Driver Booster to see if it would be the auto scan, detect and install fix it but it didn't.
I got the Lan/Ethernet is finally working.Hello:
This driver installs usb, not the chipset driver controllers... (the last driver that I posted on my first answer).
Download, unzip and run the setup.exe file.
https://Downloadcenter.Intel.com/download/25687/us B-3-0-Intel-USB-3-0-Driver-for-Intel-NUC6i-x-SY
According to the specifications of product for your laptop, the USB driver above must have worked.
If the usb driver 3 above fails to install the usb controller...
Please view the the hardware ID for the USB controller requiring driver.
To find the hardware ID, go the Device Manager and click on the usb controller requiring driver.
Then click on the Details tab in the upper part of the window of the USB controller.
Now you will see a drop-down list of property, and it will be set to the Description of the unit.
On this list and select the 2nd (Hardware ID).
After the first string of characters you see in the window.
-
Just updated to ios 9.2 (from 8 something) and my ipod touch is stuck at 'update of the iCloud parameters. I can not restore from iTunes because I have to disable "Find my iPod touch" first of all, and I can't do as the iPod is blocked with the message to update. Forcing a stop down does not work that for some reason, I am unable to turn off my iPod touch manually. I tried to turn off my wifi to see if that stops the iPod touch, but he always keeps on the message to iCloud. Do I just wait until the battery sinks so that it forces a reboot?
Place your iOS device into Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: I forgot the password or disabled device
If the recovery mode does not work, try the DFU mode.
How to put iPod touch / iPhone in DFU "Karthik doodles."
To learn how to restore:
To restore backup see:
Restore your device from an iCloud or iTunes backup - Apple Support
If you restore from a backup of iCloud apps will be automatically downloaded. If you restore from backup iTunes, applications and music must be in iTunes since synchronized as music media library and apps are not included in the backup of the iOS device what iTunes does.
You can re-download most of iTunes purchases by:
Download after purchase from the App Store and iTunes Store iBookstore
If no problem what happens or doesn't happen, and when in the instructions? When you get the iPod into recovery successfully mode and connect to iTunes on the computer should say that it found an iPod in recovery mode.
-
I did a reinstall of XP Media Center Version 2005 with Update Rollup 2 and that you are unable to see my verizon cable internet connection? can anyone help?
Thank you
JosephOpen a command prompt window and type these two commands in the following
order:
(1) ipconfig/release
(2) ipconfig / renewJ W Stuart: http://www.pagestart.com
-
Windows Update stuck with 'Check updates'
Separated from this thread.
I have also the same problem rmahmud28 is seen except mine is Windows 7. He is stuck with 'Check updates' and I've already updated the Windows Update Agent. I tried some other stuff, like your FixIt tools, but nothing.
No idea why or how... the problem was solved by itself. Looks like I have left no system check all these 300 updates available for download.
Thanks anyway
-
Lightroom showing constantly "unresponsive" and very slow since the last update. With the help of Windows 10. Extremely slow import!
Hi Dear
Please see this thread windows Lightroom CC 10 'unresponsive' number.
Let us know if this helps
~ Assani
Maybe you are looking for
-
A1103 new Ram and HARD drive will not start
Hello. I have a Mac mini A1103. When I got there the folder flashing with question mark. I got a macbook earlier where this problem was solved by installing a new hard drive. so I ordered a new 160 GB IDE 2.5 "5400 RPM and 1 GB Corsair Valueselect DD
-
Update iPhone 6 s more than 64 GB to 128 GB?
I want to spend a moment alone used iPhone 6 s more than 64 GB to 128 GB? I only used once and has decided, I need the 128 GB. There always care of apple for 2017 and I have all the accessories, unused. It's that I'm just wondering if I can go to an
-
A programmatically on the REPORT design surface
Hello world I would like to display a surface based on 3 three different channels, but the following code does not display anything but axises: Call GraphDeleteAll() Call GraphObjNew ("3D-Axis", "3DAxis") Call GraphObjOpen ("3DAxis") Call GraphObjNew
-
Just installed Windows 2008 R2 Datacenter and occasionally receive an error from Windows Explorer with the following data. Validation for the encountereda Windows Explorer error Process name:Explorere.EXE Module name: KERNELBASE.dll Assert compensati
-
Can't turn on my XP computer, includes a multi driver error
He has a multi driver error I can enter the command prompt, but it doesn't let me do a chkdsk r he says he's busy and just a chkdsk there doing nothing, but does not go into windows? any suggestions