Problems with update stcok level procedure
Hi there, I am new to Oracle and I am having problems with this procedure.
I got two tables, orders and stock, and I want to update quantity on stock, when I receive the order. For some reason NULL keeps popping out. Somebody pls help me with this!
Tables are
create table orders
(order_no number(4)constraint orders_nn_11 NOT NULL,
item_no number(4) constraint orders_nn_3 NOT NULL,
order_qta number constraint orders_nn_4 NOT NULL,
order_date date constraint orders_nn_2 NOT NULL,
received date);
and
create table stock
item_no (4),
qta number,
constraint stock_pk foreign key(item_no) references products (item_no);
the procedure is here, but as I said I'm new to this, so I really don't know.
create or replace
procedure received1 (aorder_no in number, aitem_no in number, areceived in date)
is
quantity number;
quantity2 number;
cursor a1 is select qta from stock where item_no = aitem_no;
cursor a2 is select order_qta from orders where order_no = aorder_no and item_no = aitem_no;
begin
open a1;
fetch a1 into quantity2;
open a2;
fetch a2 into quantity;
update stock
set qta= quantity2 + quantity
where item_no = aitem_no;
update orders
set received = sysdate
where order_no = aorder_no;
close a1;
close a2;
end;
Thanks in advance
hi,
Is there a possibility that
fetch a1 into quantity2;
--or
fetch a2 into quantity;Will fetch Null if yes
then do this
update stock
set qta= nvl(quantity2,0) + nvl(quantity,0)
where item_no = aitem_no;
....Regards,
Bhushan
Similar Messages
-
Hi Guys, I have a problem with Rosemount Radar Level Trasnmitter Model 5400 series with Foundation Fieldbus, the indication of radar in NI-FBUS software configurator was good no Error, but when I try to connect the segment to the Centum VP DCS, the radar lost in the list, but another device in the segment still in the list, only the radar lost from the list.please your advice what make the radar lost in the list?, Thank you
Attachments:
Radar Level Tranmitter 5400FF.pdf 516 KBHi Nanda,
Would you check if the addresses of the device conflicts with one of the new devices in the cascaded segments?
If this is not the issue, can you try to see what happens if you only use this one device with the same procedure you have done? Just wanna try to narrow down where the problem is. A capture by FBUS Monitor is even better.
Thanks. -
Y510p and problem with Update Nvidia Driver
Hi everyonei have problem with updating my y510p lenovo laptop nvidia driver ,my current nvidia driver version is 327.62 which i download from lenovo website,Now for better performance in new games like gta v and witcher3 ,i decide to updating nvidia driver,first remove my nvidia graphic driver from add or remove then download nvidia ver 350 from nvidia official web site , which nvidia website confirm it support my graphic card which is Gt755m , then i install new ver and during install i check clean install , after successful install , restart laptop , then there was problem . when i try to open nvidia control panel it wont running and an error showed up and said "You are not currently using a display attached to an NVIDIA GPU" .i try to open a game , game running in really low fps and i find out game run on hd graphic of my laptop and my nvidia graphic wont run .The only way to repair was i install my last nvidia driver 327.62 and run a system restore .guys what is your suggestion and how i can update my y510p nvidia driver ?Thanks
Hi Y510Man,
The video graphics installation order is important. You need to install the Intel Graphics first, and then do the Nvidia. IIRC you should un-install the Nvidia driver, then re-install (or upgrade) the Intel HD Graphics driver. Reboot, and install the new Nvidia driver.
I don't know why, but every time I upgraded my Y470 Nvidia driver, I had to use this procedure. First install, or re-install, the Intel driver, then install the Nvidia. You can't just upgrade the Nvidia driver without a re-install of the Intel. I think it has to do with the Optimus setting, and the automatic switching.
Let us know how it goes.
Cheers
DragonRider -
Problem with updating the PC Updater software
Good evening (from Germany). I have a problem with updating my Nokia Software Updater. I can download the setup and I can execute this. But when the installation starts (0%) a error message appears. It's a problem with Windows Installer but I don't know how to solve the problem. Here is a picture with the exactly error message:
http://img-up.net/?up=Nokia_probES8HJXXg.jpg
I hope somebody knows the anser with this software...
Greetings
OS: Windows XP SP2
Phone: Nokia 3110 classic Firmware: V 5.50
Message Edited by dernamenlose on 24-Apr-2008 08:56 PMGood morning (from Denmark).
I hve the same problem.
OS: WinXP SP2
Phone: N73.
Greetings. -
Problem with setting Source Level in Sun Studio 2
I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
Please helpI'm just citing an example using Date().
In fact, whether I use DateFormat or Calendar, it shows the same result.
When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
It works correctly under jdk1.3.1 -
Problems with updating files in the cloud
problems with updating files in the cloud
What kind of problems?
Have you recently upgraded to iCloud Drive on your iOS devices with iOS 8?
Be aware, be careful, be prepared for iCloud Drive | TUAW: Apple news, reviews and how-tos since 2004 -
nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.
It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.
-
Adobe Photoshop Elements Problem with update 9.0.3
Problem with updates Elements 9.0.3
Message title was edited by: Brett NThen follow the rest of the directions here:
Error "Patch cannot be applied" | Photoshop Elements 9.0.3 update | Windows
http://helpx.adobe.com/photoshop-elements/kb/error-patch-cannot-applied-photoshop.html -
Problem with update Photoshop, Illustrator and Indesign CS6
Hi all. I have problem with update Photoshop, Illustrator and Indesign CS6 on OSx 10.8.4. Application are OK but update (bug fixies) not working. Update failed. (U44M1P7)
Hi El Gondo,
The following might explain and help solve the problem...
U44M1P7 - Updates :
http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upda tes-ccm.html
U44M1P7, U44M2P7 - Creative Cloud Help / Can't apply Extension Manager update 6.0.2 | Mac OS :
http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manage r-update.html
Thanks!
Ankit -
Problem with update MUSE CC 2014.2 (october 6). after upgrading to the new version of Muse crashes very often (out without notice).
HELP! i can't get ANYTHING done in the new muse - keeps closing. once it crashes - i can't get the file back open!
i've lost all my work!
from my desktop - when it stared happening was with the updated version:
Logging in build 2014.2.1.10 started at: Mon Nov 03 13:36:38 2014
========================================
[00:00:42.416] Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:success size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014 highestUID: 3548
[00:01:03.898] Preparing to Save As over "\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse" exists: true
[00:01:17.516] SaveAs complete for file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' file size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highest UID:3551
Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
Build 232: Mon Nov 3 19:41:03 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
Build 232: Mon Nov 3 19:41:07 2014 UTC: Error: CSI: OOBE: Serial Number: Error Code: O-10 Error Message: Unable to retrieve the serial number (Note: this may not be an error)
Build 232: Mon Nov 3 19:41:21 2014 UTC: Error: CSI: IMS: Connect: Error Code: I-200 Error Message: No Account
Build 232: Mon Nov 3 19:41:21 2014 UTC: Unknown IMS error 'SHARED_NOACCT_ERROR' has occurred when retrieving IMS token.
Build 232: Mon Nov 3 19:41:57 2014 UTC: Opening file '\\D-LAPTOP\_websites\dsbees muse\dsbees.muse' with status:This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version. size:9797632 mod Date:Tue Sep 23 15:51:42 GMT-0500 2014
Build 232: Mon Nov 3 19:41:57 2014 UTC: This Adobe Muse site file requires a newer version of Adobe Muse. Please update to the latest version.
Logging in build 2014.2.1.10 started at: Mon Nov 03 13:43:17 2014
========================================
[00:00:21.481] Opening file '\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse' with status:success size:9830400 mod Date:Mon Nov 3 13:37:51 GMT-0600 2014 highestUID: 3551
[00:00:30.373] AssertInDebug: Unable to run recovery. User file remains locked after 5 second pause.-assertInDebugOnly+DataBase/recover+MuseSite$/recover+MethodInfo-2886+DataBase$/run Recovery+apply+UIComponent/callLaterDispatcher2+UIComponent/callLaterDispatcher+end stack
[00:00:30.404] Failed to recover file:\\D-LAPTOP\_websites\dsbeesTWO\dsbeesTWO.muse
[00:00:30.420] Calling openConnection for file that doesn't exist? C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ Parent folder exists.
[00:00:34.429] open of SQL connection failed for C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ
[00:00:34.429] Failed to open mini-save connection B "C:\Users\Owner\AppData\Roaming\com.adobe.AdobeMuseCC.2014.2\Local Store\Recovery\JXRoDn335LE0UosOdoStnQ" Doesn't exist. Folder exists. error:SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'
[00:00:34.429] EXCEPTION:[SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'-SQLConnection/internalOpen+SQLConnection/open+DataBaseConnectionWrapper/o penConnection+MethodInfo-28954+EventDispatcher/dispatchEventFunction+EventDispatcher/dispa tchEvent+MethodInfo-28938+end stack
[00:00:34.445] AlertAndExit because of: [SQLC/internalOpen] SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001' -
Problem with updating adobe ilustrator CS6
Hi
I have problem with updating adobe ilustrator CS6. Error code: U43M1D204Please see the below similar discussions:
http://forums.adobe.com/message/4913117#4913117#4913117
http://forums.adobe.com/message/4169374
Thanks!
Ankit -
I am having problem with updates CS5
Hi,
I am having problems with updating my CS5. I keep getting an error message "There was an error downloading this update. Please quit and try again later"
Can you please help?
Thank you
Eli BSee if doing it manually works
All updates start here and select product, read to see if you need to install updates in number order, or if the updates are cumulative for the individual product http://www.adobe.com/downloads/updates/ -
having problem with updating to 10.6.6 , my software now is 10.5.8, when the my mac is tellin me that i have already update to the lastest software when i haven`t :/ help !
You need to find a store selling it and purchase it. If you buy it from an online store, it comes in the form of a DVD shipped to you.
Unless Apple or someone with a site license applicable to you says otherwise, you can't download it.
(60044) -
hello. i have a problem with updating illustrator CC 2014. i succeed updating indesign CC 2014 & photoshop CC 2014, but every time i try to update illustrator CC 2014, its failed.
how can i solve this problem?Link for Download & Install & Setup & Activation problems may help
-Online Chat http://www.adobe.com/support/download-install/supportinfo/ -
Problem with update SCCM client to Sp1 CU3 on Windows 2008 server
Hi all,
I have problem with update SCCM client on Windows 2008 Server to 2012 Sp1 CU3. I have sent to deployment package with update (SP1 Cumulative Update 3 - server update) on four servers and after few minutes I have got in Monitoring\Deployment details four
this same errors in "Asset Details":
USER Message ID
Status type Description
NT\AUTHORITY\SYSTEM 1006
Error 3003
I love that types of error... which is har to find answer on google :-( I have tried but I haven't find any constructive :-( Did you met with something similar? Which log I should check (sorry - I'm still noob in SCCM2012) to update actual SCCM Client SP1
(5.00.7804.1000) to SP1 CU3 (5.00.7804.1400)?
Thank you.I see in fodler with CU3 updates, are four packages:
- SP1 Cumulative update 3 - x64 client update
- SP1 Cumulative update 3 - x86 client update
- SP1 Cumulative update 3 - server update
- SP1 Cumulative update 3 - console update
It will be stupid but... maybe I should deploy x64 client update package?
Maybe you are looking for
-
Execute javascript with input parameters of a taskflow
Using JDev 11g PS4 I have a taskflow that uses some javascript. When the taskflow has been loaded, I need to execute a javascript function that uses 2 input parameters of my taskflow. I don't really know how I can execute the javascript with my input
-
What do i need to be able to view all 4 security cameras in the same window on my iphone 3gs? I can view 1 at a time and just tap the screen to move the lens of the security camera on my iphone from my work place. But i once had all 4 cameras but it
-
Web Service Error : Unable to connect to the remote server
Hi, I encountered below errors while I run the web service in ERP 2006 system : Unable to connect to the remote server, No connection could be made because the traget machine actively refused at xxx.xxx.xxx.xxx:443 Pls kindly advise. Thanks. Edward T
-
LabVIEW crash when saving from LV2012 to LV2011 with express VI and reopen in LV2012
Hi all, Preconditions: Save the "Meas Angular Position-Buffered-Cont-Sync AI Sample Clk.vi" for a previous version of LabVIEW, in this case from LV2012 to LV2011 Reopen the LV2011 VI in LV2012 according to the steps below. Steps to get it to crash: U
-
Simple ALV interactive list...
<b><b>hi i am a fresh Learner in ABAP and i am doing a small program in simple ALV interactive report in SD module that gives me:: 1. SALES and then the invoice details of one particular value i click ,when delivery document number is given. 2. Deiv