If statement help needed
I am an Oracle DBA being thrown in the java world, and I'm having some trouble with an if statement. I need produce a tag that looks like this:1 customer name
3 address line 1
4 address line 2
5, Zip City State
6 countries
It is possible that the lines 4 and 6 have all the data. So in this case, I don't want to print these lines.
My if statement is less. It works as long as there are data in 4. If 4 is null then I get no results at all. Any suggestions how to fix this code?
Thank you!
{
If (4! = null) {}
If (6! = null) {}
var text = '1,3,4,5,6' ;}
else if (6 is null) {}
var text = '1,3,4,5' ;}
ElseIf (6! = null) {}
var text = "1,3,5,6." }
else {}
var text = "1,3,5" ;}
}
Hi sharonkovac,
Since your outermost status is "if (4!" (= null)"all the logic is procesed only when 4 is different from null.
Code indentation can help to better understand the logic.
{if(6==null)}
if(4!=null) {text = '1,3,4,5' ;}
else {text = "1,3,5" ;}
}
if(4!=null) Else {text = '1,3,4,5,6' ;}
else {text = "1,3,5" ;}
Best reggards,
Tags: Java
Similar Questions
-
Please can someone help, need password CNU9497P2C
I have the same problem and its driving me crazy... I need the BIOS password because I can't access to this
[number of Series edited by Moderator]
Please can someone help, need password
HP MINI CQ10
Sweb try.
e9lovox27e
3rd letter tiny L.
4th and 6th letter lowercase o.
Use this code to go into the BIOS.
Disable all passwords that are enabled.
If demand for CURRENT password using this code.
Request NEW password just press ENTER.
If asked to hit just to CHECK password to enter.
Save and exit.
REO
I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.
-
DBA dear friends,
In my 11.1.0.7 database, I have an ID of SQL which contributes about 100 reads physical Mil a day in the database, he ran 85 times in the 24 hour period.
Here is the SQL - it accesses the SYSTEM tables and EM monitors query type, and is not a request part of the application-
Dictionary collection stats help reduced the physical reads? Or any other point of view that what must be considered?
Is it still worth to try tuning the query? Please share your entries...
SELECT 'AQ_Messages_in_Expired' t. *
Of
(select q. owner | | '.' | | q . name , v. expired
de v$aq v, dba_queues q
où v. QID = q. QID and q. owner not in ('SYS','SYSTEM','WMSYS') and q. QID not in (206397, 206398, 206325)) tI don't see a MERGE JOIN CARTESIAN, which is good. I do not see a stage for fixed table and it MIGHT help generate fixed objects statistics:
exec dbms_stats.gather_fixed_objects_stats (null)
You can see if they have been already generated by querying the SYS. TAB_STATS$:
Select count (*) in the sys.tab_stats$;
If it is empty then stats fixed objects have not been met. Stats of $ service must be collected by the work of database statistics 'standard '. You can collect these stats and run the query again to see if the run time is improving. You can also check when the last statistics, what are the sample sizes and how closely NUM_ROWS agrees with a count (*) current tables questioned.
David Fitzjarrell
-
Error driver Power State failure in my 64it win8 - help needed
Hello
Please help me get rid of this error on blue screen now.Here is the mini dump placed on SkyDrive.http://sdrv.Ms/11mujThPlease let me know fix this error.Kind regardsRajendra PrasadRP
A DMP was related to your video driver nvlddmkm.sys takes too long to respond. In order to make sure you need run driver verifier
Driver Verifier
Using Driver Verifier is a dubious proposition. Most of the time it will crash and it will tell you what is the driver.But sometimes it will crash and will not tell you the driver.
Sometimes it will crash until you can connect to Windows. If you can't mode without failure, then you will have to resort to editing the registry offline to disable driver verifier.
I suggest that you first back up your data and make sure you have access to another computer so you can contact us in case of problems.
Then do a system restore point (so you can restore the system using the functionality of Vista/Win7 Startup Repair).
Here is the procedure:
Click Start and type "auditor" (without the quotes) and press enter
Select 'Create a custom settings (for code developers)' and click 'Next' (or Type "check/standard/all" (without the quotes) If you want to check each of them (this will slow down your computer))Choose "Select custom settings from a full list" and click "Next".
Select the entire document except for "Low resource Simulation" to win 8 do not check concurrency stress test and the verification of the conformity of DDI, click "next".
Select "Select driver names from a list", then click "next".
Select all drivers that are NOT provided by Microsoft, and then click "Next".
On the next page, select "Finish".
Restart the system and wait as he crashed to blue screen.
Continue to use your system normally and if you know what are the causes of the crash, do it several times. The objective here is to get the system crash because Driver Verifier is stressing out the drivers. If it is not planted for you, then let it run for at least 36 hours of continuous operation.
If you are unable to Windows because it crashes too early, try safe mode.
If you can't mode without fail, try to use the system from the installation DVD restore to bring the system back to the previous point of restoration that you created.Further reading
http://support.Microsoft.com/kb/244617Words of driver verifier
Information check driver driver Windows Vista - Microsoft Search Verifier
Questions of Verifier within Vista / Windows 7 http://support.microsoft.com..default.aspx?+verifier1&res=20
Pilot feature pool http://support.microsoft.com/kb/188831 -
Protection of session state - Arguments must have Checksum - help needed
Hello world
I use apex 4.0 and that you have defined:
Protection of session state = True
Page = Arguments access protection must have the checksum
Point of application protection = Cecksum required - Session level
Page data entry point Protection = required Cecksum - Session level
Page Display-Only item = Cecksum required - Session-level Protection
On the pages that contain an interactive report, calls to other pages updated and or to delete a record from the pharmacokinetics of recording work OK.
I put these as follows:
In the Interactive report link-> Link attribute column = onclick = "new top. Ext.apex.PopupWindow ({url: this.href, title: 'Change collation details', width: 530, height: 500, listeners: {'success': gReport.search}}). show(); return false; »
Target = this Application Page
Page = 302Item = P302_IDCLASS
Value = #IDCLASS #.
Page Checksum = - default user.
The problem is the button 'Create a new record' that is on the page of interactive report. I set the button as:
The attributes button = onclick = "new top. Ext.apex.PopupWindow({url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:302:::',_title:_'Create_New_Classification',_width:_530,_height:_500,_listeners:_{'success':_gReport.search}}).show (); return false; »
Action when click = redirect to the Page of this Application
Page = 302
Clear Cache = 302
When I click the button I get the following message:
Session state protection violation: this can be caused by a manual change to a URL containing a checksum or using a link with a missing or incorrect checksum. If you don't know what caused this error, contact the administrator of the application for assistance.
If I change the attributes of the button to be:
OnClick = "new top. Ext.apex.PopupWindow({url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:::',_title:_'Create_New_Classification',_width:_530,_height:_500,_listeners:_{'success':_gReport.search}}).show (); return false; »
It works OK, bu page elements are not clear.
Could somebody please explaing to me what I am doing wrong so I understand my mistake?
Thank you
DanielHello
If I understand correctly what you need...
Create a point of the MY_BTN_URL application.
You can set this element of Protection of the Session State to 'Restricted - cannot be resolved in the browser.
Create the calculation of demand for this article
Calculation Point: Before header
Calculation type: PL/SQL Expression
Calculation:APEX_UTIL.PREPARE_URL ( p_url => 'f?p=&APP_ID.:302:&APP_SESSION.::NO:302::::', p_checksum_type => 3 );
Change your attributes of button
onclick="new top.Ext.apex.PopupWindow({ url:'&MY_BTN_URL.', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
Kind regards
JariPublished by: jarola October 25, 2011 15:50
Published by: jarola October 25, 2011 16:16
-
[help needed] Several insert - SQL statement
Hello
This is my table:
{code}
create table test
(
Identification number,
DS varchar (6).
start_date date
);
{code}
There is data in the table.
{code}
Insert test values (1, 'DS1982', TO_DATE ('01.03.2014 ',' DD.)) MM YYYY'));
Insert test values (2, 'DS1982', TO_DATE ('01.04.2014 ',' DD.)) MM YYYY'));
Insert test values (3, 'DS1982', TO_DATE ('01.05.2014 ',' DD.)) MM YYYY'));
Insert test values (4, 'DS1982', TO_DATE ('01.06.2014 ',' DD.)) MM YYYY'));
Insert test values (1, 'DS1999', TO_DATE ('11.04.2014 ',' DD.)) MM YYYY'));
Insert test values (2, 'DS1999', TO_DATE ('11.05.2014 ',' DD.)) MM YYYY'));
Insert test values (3, 'DS1999', TO_DATE ('11.06.2014 ',' DD.)) MM YYYY'));
Insert test values (4, 'DS1999', TO_DATE ('11.07.2014 ',' DD.)) MM YYYY'));
Insert test values (1, 'DS0009', TO_DATE ('21.01.2014 ',' DD.)) MM YYYY'));
Insert test values (2, 'DS0009', TO_DATE ('21.02.2014 ',' DD.)) MM YYYY'));
Insert test values (3, 'DS0009', TO_DATE ('21.03.2014 ',' DD.)) MM YYYY'));
{code}
I have to query all records from the table that has:
Max (start_date) whitin ID and DS culoms.
So, I have to insert in the record in the table for each DS to condition:
Each record will be inserted with incremented id whithin DS
each record inserted must be "newer" than previous 1 month.
Integration goes up to to_char (sysdate, mm) = to_char (start_date, 'mm').
Resoult for DS1982 has so (records to insert):
Insert test values (5, 'DS1982', TO_DATE ('01.07.2014 ',' DD.)) MM YYYY'));
Insert test values (6, 'DS1982', TO_DATE ('01.08.2014 ',' DD.)) MM YYYY'));
Insert test values (7, 'DS1982', TO_DATE ('01.09.2014 ',' DD.)) MM YYYY'));
Insert test values (8, 'DS1982', TO_DATE ('01.10.2014 ',' DD.)) MM YYYY'));
Insert test values (9, 'DS1982', TO_DATE ('01.11.2014 ',' DD.)) MM YYYY'));
Insert test values (10, 'DS1982', TO_DATE ('01.12.2014 ',' DD.)) MM YYYY'));
Insert test values (11, 'DS1982', TO_DATE ('01.01.2015 ',' DD.)) MM YYYY'));
Insert test values (12, 'DS1982', TO_DATE ('01.02.2015 ',' DD.)) MM YYYY'));
Insert test values (13, 'DS1982', TO_DATE ('01.03.2015 ',' DD.)) MM YYYY'));
Insert test values (14, 'DS1982', TO_DATE ('01.04.2015 ',' DD.)) MM YYYY'));
all together for DS1982
Insert test values (1, 'DS1982', TO_DATE ('01.03.2014 ',' DD.)) MM YYYY'));
Insert test values (2, 'DS1982', TO_DATE ('01.04.2014 ',' DD.)) MM YYYY'));
Insert test values (3, 'DS1982', TO_DATE ('01.05.2014 ',' DD.)) MM YYYY'));
Insert test values (4, 'DS1982', TO_DATE ('01.06.2014 ',' DD.)) MM YYYY'));
Insert test values (5, 'DS1982', TO_DATE ('01.07.2014 ',' DD.)) MM YYYY'));
Insert test values (6, 'DS1982', TO_DATE ('01.08.2014 ',' DD.)) MM YYYY'));
Insert test values (7, 'DS1982', TO_DATE ('01.09.2014 ',' DD.)) MM YYYY'));
Insert test values (8, 'DS1982', TO_DATE ('01.10.2014 ',' DD.)) MM YYYY'));
Insert test values (9, 'DS1982', TO_DATE ('01.11.2014 ',' DD.)) MM YYYY'));
Insert test values (10, 'DS1982', TO_DATE ('01.12.2014 ',' DD.)) MM YYYY'));
Insert test values (11, 'DS1982', TO_DATE ('01.01.2015 ',' DD.)) MM YYYY'));
Insert test values (12, 'DS1982', TO_DATE ('01.02.2015 ',' DD.)) MM YYYY'));
Insert test values (13, 'DS1982', TO_DATE ('01.03.2015 ',' DD.)) MM YYYY'));
Insert test values (14, 'DS1982', TO_DATE ('01.04.2015 ',' DD.)) MM YYYY'));
I hope someone can help me with this problem!
Thank you!
This...
SELECT the id + id LEVEL,
DS,
Start_date ADD_MONTHS (start_date, Level)
Of
(SELECT ds,
Max (ID) id,
Date_début Max (start_date)
OF the test
GROUP BY ds)
CONNECT BY LEVEL<=>=>
AND PREREQUISITES ds = ds
AND PRIOR DBMS_RANDOM. VALUE IS NOT NULL.
Thank you
Ann
-
Simple sql statement I need help
Hello all, I need the syntax for the following sql query: "Using that a single update to write the query to update a salary of 10% for wages below 100 k and 15% for salaries above 100 k". TIAUPDATE table1 SET salary = salary BOX WHEN < 100000="" then="" salary="" *="" 1.1="" when="" salary=""> = 100000 THEN salary * 1.15 END;
-
Help needed recovery for Equium A300D - 13 X
Hi all
Having experienced too many problems for the list with my satellite a 300 d 13 X, hardware and software, I decided to go ahead with a restore to the factory settings.
My first step was to create 2 discs recovery DVDs, using the Toshiba Recovery Disk Creator.
As far as I know, two recovery disks were created with success, insofar as the recovery disc creator has stated as such.Not knowing what step to take next, I started the laptop with the fist of the disc in the disc drive, two thinking recovery that it would reset the laptop to its factory settings, but it does not.
Now, when I start the laptop, I get the following message;
BOOTMGR is missing
Press Ctrl + Alt + Delete to restartwho restarts the laptop showing the above message again.
By pressing F8 at start up does nothing.
By pressing F12, multi boot selection, reveals a start with 3 options Menu;
HDD1: TOSHIBA MK2046GSX-(S1)
CD/DVD: MAST * ADVD-RAM UJ - 850 S-(PM)
LAN: Marvell Yukon 88E8040TIf I select the CD/DVD option, a black screen with the text;
Windows is loading files
is shown. I am guessing it is the correct path to recovery.
However, after the screens following recovery about the language selection utility etc., a text filled with the dialog boxX:\windows\systems32\cmd.exe
Cross, but eventually reached a static state line:
Copy of F:\06948XSP.swm to V:\HDDRecovery\SWImg 1/6
without to successfully complete the recovery process.
Any help to fix this would be greatly appreciated.
Kind regards
KeV.> My first step was to create 2 discs recovery DVDs, using the Toshiba Recovery Disk Creator.
> As as far as I know, the two recovery disks have been successfully created, insofar as the recovery disc creator has stated as such.What to tell buddy you've done everything right.
The recovery disk was created successfully (you saw a message saying this?).
Boot from recovery disk should start the collection procedure and you must follow the installation on the screen.
Usually, this should work.The error; BOOTMGR is missing says that boot manager on the HARD disk has been removed and it of not possible to boot from the HARD drive.
You must boot from the CD you have done; by pressing F12 choose CD/DVD driveTry to format the HARD drive using another CD of Windows.
In this case, you need to set SATA compatibility mode in the BIOS, then you could boot from the WinXP CD.After that try the recovery disk again
-
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:
-
Newbie Help Needed: Cisco 1941 router site to site VPN traffic routing issue
Hello
Please I need help with a VPN site-to site, I installed a router Cisco 1941 and a VPN concentrator based on Linux (Sophos UTM).
The VPN is established between them, but I can't say the cisco router to send and receive traffic through the tunnel.
Please, what missing am me?
A few exits:
ISAKMP crypto to show her:
isakmp crypto #show her
IPv4 Crypto ISAKMP Security Association
DST CBC conn-State id
62.173.32.122 62.173.32.50 QM_IDLE 1045 ACTIVE
IPv6 Crypto ISAKMP Security Association
Crypto ipsec to show her:
Interface: GigabitEthernet0/0
Tag crypto map: QRIOSMAP, local addr 62.173.32.122
protégé of the vrf: (none)
local ident (addr, mask, prot, port): (192.168.20.0/255.255.255.0/0/0)
Remote ident (addr, mask, prot, port): (192.168.2.0/255.255.255.0/0/0)
current_peer 62.173.32.50 port 500
LICENCE, flags is {origin_is_acl},
#pkts program: encrypt 0, #pkts: 0, #pkts digest: 0
#pkts decaps: 52, #pkts decrypt: 52, #pkts check: 52
compressed #pkts: 0, unzipped #pkts: 0
#pkts uncompressed: 0, #pkts compr. has failed: 0
#pkts not unpacked: 0, #pkts decompress failed: 0
Errors #send 0, #recv 0 errors
local crypto endpt. : 62.173.32.122, remote Start crypto. : 62.173.32.50
Path mtu 1500, mtu 1500 ip, ip mtu IDB GigabitEthernet0/0
current outbound SPI: 0x4D7E4817 (1300121623)
PFS (Y/N): Y, Diffie-Hellman group: group2
SAS of the esp on arrival:
SPI: 0xEACF9A (15388570)
transform: esp-3des esp-md5-hmac.
running parameters = {Tunnel}
Conn ID: 2277, flow_id: VPN:277 on board, sibling_flags 80000046, crypto card: QRIOSMAP
calendar of his: service life remaining (k/s) key: (4491222/1015)
Size IV: 8 bytes
support for replay detection: Y
Status: ACTIVE
Please see my config:
crypto ISAKMP policy 1
BA 3des
md5 hash
preshared authentication
Group 2
encryption... isakmp key address 62.X.X... 50
ISAKMP crypto keepalive 10 periodicals
!
!
Crypto ipsec transform-set esp-3des esp-md5-hmac TS-QRIOS
!
QRIOSMAP 10 ipsec-isakmp crypto map
peer 62.X.X set... 50
transformation-TS-QRIOS game
PFS group2 Set
match address 100
!
!
!
!
!
interface GigabitEthernet0/0
Description WAN CONNECTION
62.X.X IP... 124 255.255.255.248 secondary
62.X.X IP... 123 255.255.255.248 secondary
62.X.X IP... 122 255.255.255.248
NAT outside IP
IP virtual-reassembly in
automatic duplex
automatic speed
card crypto QRIOSMAP
!
interface GigabitEthernet0/0.2
!
interface GigabitEthernet0/1
LAN CONNECTION description $ES_LAN$
address 192.168.20.1 255.255.255.0
IP nat inside
IP virtual-reassembly in
automatic duplex
automatic speed
!
IP nat pool mypool 62.X.X... ... Of 122 62.X.X 122 30 prefix length
IP nat inside source list 1 pool mypool overload
overload of IP nat inside source list 100 interface GigabitEthernet0/0
!
access-list 1 permit 192.168.20.0 0.0.0.255
access-list 2 allow 10.2.0.0 0.0.0.255
Note access-list 100 category QRIOSVPNTRAFFIC = 4
Note access-list 100 IPSec rule
access-list 100 permit ip 192.168.20.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 101 permit esp 62.X.X host... 50 62.X.X host... 122
access list 101 permit udp host 62.X.X... 50 62.X.X... host isakmp EQ. 122
access-list 101 permit ahp host 62.X.X... 50 62.X.X host... 122
access-list 101 deny ip any any newspaper
access-list 110 deny ip 192.168.20.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 110 permit ip 192.168.20.0 0.0.0.255 any
!
!
!
!
sheep allowed 10 route map
corresponds to the IP 110
The parts of the configuration you posted seem better than earlier versions of the config. The initial problem was that traffic was not in the VPN tunnel. That works now?
Here are the things I see in your config
I don't understand the relationship of these 2 static routes by default. It identifies completely the next hop and a mask the bytes of Middleweight of the next hop. Sort of, it seems that they might be the same. But if they were the same, I don't understand why they both make their appearance in the config. Can provide you details?
IP route 0.0.0.0 0.0.0.0 62.X.X... 121
IP route 0.0.0.0 0.0.0.0 62.172.32.121
This static route implies that there is another network (10.2.0/24) connected through the LAN. But there is no other reference to it and especially not for this translation. So I wonder how it works?
IP route 10.2.0.0 255.255.255.0 192.168.20.2
In this pair of static routes, the second route is a specific subnet more and would be included in the first and routes for the next of the same break. So I wonder why they are there are. There is not necessarily a problem, but is perhaps something that could be cleaned up.
IP route 172.17.0.0 255.255.0.0 Tunnel20
IP route 172.17.2.0 255.255.255.0 Tunnel20
And these 2 static routes are similar. The second is a more precise indication and would be included in the first. And it is referred to the same next hop. So why have the other?
IP route 172.18.0.0 255.255.0.0 Tunnel20
IP route 172.18.0.0 Tunnel20 255.255.255.252
HTH
Rick
-
Hi all
Required clarification of Oracle sql
Example table:
EmpNo empname mgr_id hire_date deptno salary Job
7788 SCOTT ANALYST 7566 3000 APRIL 19, 87 20
7902 7566 3000 3 DECEMBER ANALYST FORD 81 20
7934 MILLER COMMITTED JANUARY 7782 1300 23 82 10
7900 7698 DECEMBER 3, CLERK JAMES 81 950 30
7369 SMITH COMMITTED 7902 17 DECEMBER 20 800 80
7876 ADAMS 7788 1100 23 MAY CLERK 87 20
Need of ' single / one ' sql for this statement of the obligation:
There will be 2 dropdown boxes (1 - work list, 2nd - empno) in the form in which the next set of results is expected
(1) when the user selects the value of the 1st drop down box (employment) as "ANALYST", leaving the second dropdown not selected, the expected result is 2 (No. lines for this work)
(2) when the user selects the value of the 1st drop-down list (job) as "ANALYST" and the value in the 2nd drop-down box like 7902, the expected result is 1 (no lines for this job and empno)
SQLs I tried on my side (given below) gave the expected result and do please help me fix this
Select count (1) in the scott.emp where job = 'ANALYST' and (empno =: empno or empno is null);
Please help for this requirement. Any help is deeply appreciated.
Thank you
Zakari1007144 wrote:
SQLs I tried on my side (given below) gave the expected result and do please help me fix this
Select count (1) in the scott.emp where job = 'ANALYST' and (empno =: empno or empno is null);
You check "IS NULL" on EMPNO clolumn. You should check on the value passed: EMPNO. It should be
select count(1) from scott.emp where job='ANALYST' and ( empno = :empno or :empno is null ) ;
Published by: JAC on May 21, 2013 19:32
Hope that the: value of EMPLOYMENT is required... -
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
Table 2: FIR_SETcreate 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;
OK, the tables and data are now set to the logic of "update".create 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;
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:
Resoult is like: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;
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'llLET 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
Post the resoult and try to explain it:
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.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
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 -
If/then JavaScript help needed
Hello
I'm trying to write a script for a PDF in Adobe Acrobat form, but I don't have much experience with JavaScript and I need help!
Basically, I have five fields as follows:
A1 = a checkbox
B1 = a field with a numeric value in it
C1 = one field with a numeric value in it
D1 = a field with a numeric value in it
E1 = a field where calculation of the sum.
I want to write a script that will enter into the sum of the values of B1 + C1 + D1 E1 if a1 is checked yes.
If it is not checked yes, then he enters the sum of the values of B1 + C1 + D1 value by 2 (and rounded down) divided in E1.
Can anyone help?
Thank you!
This should do it like the custom for E1 calculation script:
// Custom calculate script (function () { // Get the field values, number fields as numbers var a1 = getField("A1").value; var b1 = +getField("B1").value; var c1 = +getField("C1").value; var d1 = +getField("D1").value; // Set this field (E1) value based on the state of the check box if (a1 === "Off") { event.value = b1 + c1 + d1; } else { event.value = b1 + c1 + Math.floor(d1 / 2); } })();
-
Otherwise, if the statement help
Well I'm well enough to the 'if' statement and the "else" statement as well. But what do I do if I need 2 conditions to be met before that nothing is done in my form. I'll do my best to explain what it is I'm doing.
I want radio2 to change its value to 2 when radio1 has a value of 2. But radio1 runs a different calculation of numericfield1 then radio2 made in numericfield2.
Basically what I do is to design a guide to estimate for a flooring company. (Working on the carpet now section) Problem is that the carpet is available in 2 different widths. large carpet 12 and 15 wide carpet. Most of my customers don't know what width of carpet they will choose when I am at home to measure for carpet. So I was preaching different estimates for each. But rather than filling an entire form for 15 carpet wide, I want simple selections as if or not move us furniture or pulling automatically out carpets to be filled in the section 15 of width of the estimate that I answer the questions in section 12 wide. But here's the catch. Some of my clients are 100% sure that they choose 12 wide carpet (or scale 15 incidentally). If I don't want the calculations made, unless a check box has been checked if it does not confuse my customers. Thanks for any help
Sorry, now I see:
this.rawValue = cost15wide.rawValue * qty15wide.rawValue;
You must .rawValue when accessing the value of the objects.
Hope that works,
Niall
-
For some reason I can't find a specific for this laptop network driver. Miss me the network controller and I tried so many drivers but can't find. Please if anyone can help that would be great! It is a win 7 64-bit, network controller driver, the hp 15-af159nr. It is the tactile energy star hp laptop.
Hello:
According to the list of parts for your laptop below, it comes with an adapter Broadcom BCM43142 802.11 b/g/n 1 x 1 Wi - Fi and BlueTooth 4.0 m2 combination WLAN.
http://PartSurfer.HP.com/search.aspx?SearchText=P1A98UA
These would be wireless and bluetooth, drivers that you need for this model of the wlan card.
The package contains the Broadcom wireless LAN drivers and utility which are required to enable the LAN adapter wireless Broadcom integrated into laptops supported that run an operating system supported.
File name: sp70888.exe
This package contains the Broadcom Bluetooth driver and software for models supported that are running a supported operating system. Broadcom Bluetooth 4.0 driver is required to enable the Broadcom Bluetooth 4.0 devices and is compatible with Broadcom Bluetooth 3.0 and earlier versions.
File name: sp71440.exe
Maybe you are looking for
-
Pages and Numbers came on my iPad Air when I bought it, but I never use them. Is there a reason I shouldn't remove them? If I do not delete them, can I still add them again just like any other app I bought?
-
Firefox to make changes appears whenever I try to open firefox
After the last upgrade to firefox microsoft explore does not open unless I click on "continuation of program to make changes." The program is Mozilla. Then open firefox, but the changes message again later everytime I want to open firefox.
-
FPGA - Successful Compilation but error 89: full file system
Hello friends, at the end of my last compilation of the server compile reported an 89 error: complete file system. Anyone know what is the file system? Maybe the Flash to the bitfiles? But this will be erased automatically with each new download bitf
-
How do the packages of windows patches?
Is this scenario possible? 1-set computers on networks to download updates for a specific server. (it is possible) 2 do a windows update package update manully. 3. put this update on the server so computers download and install this update?
-
Hi all I had 3 failed Windows 10 upgrades. I have an Acer Aspire Z1800 running Windows 7 the first trial that he had failed at the helm of the 75% of second and third once failed with a technician from the receipt of the response by using the remote