How to compare 1 value of slider with multiple values
Please look at the code below.Here I want to if extracted value of qurey1 is in any value retrieved by query 2 production.
Example of
c_r1 is fetching value 1 and 2
c_r2 is also fetching 1 and 2
Problem: If the two are fecthing even value it must not block error.
While in my code coz locked loop c_r1 STI comparison 1 c_r2 1 and c_r2 2. That's why giving the error
Someone you will suggest the alternative way to solve the problem statement.
Open C_R1 for ' select distinct name of nameclass where nametype = 7 and namesubtype <>0 and id_number IN('||) ID1 | «, » || ID2. «, » || ID3 | «, » || ID4 |') by name ';
LOOP
EXTRACT the C_R1 IN R1_name;
EXIT WHEN C_R1% NOTFOUND OR C_R1% NOTFOUND, NULL;
Open C_R2 for ' select distinct name of nameclass where nametype = 7 and namesubtype <>0 and = id_number' | ID | "order by n.name;
LOOP
EXTRACT the C_R2 IN R2_name;
EXIT WHEN C_R2% NOTFOUND OR C_R2% NOTFOUND, NULL;
If (R1_name <>R2_name) then
dbms_output.put_line (' error on == > Id :'||) (ID);
End If;
END LOOP;
Close C_R2;
END LOOP;
Close C_R1;
Published by: user8807316 on 22 Sep, 2010 03:39
What about...
SQL> ed
Wrote file afiedt.buf
1 with names_tab as (select 1 as id, 'Fred' as nm from dual union all
2 select 1, 'Bob' from dual union all
3 select 2, 'Bob' from dual union all
4 select 2, 'Jim' from dual union all
5 select 2, 'Fred' from dual)
6 --
7 --
8 --
9 select case when count(*) = 0 then 'All Match' else 'Mismatch' end as match
10 from (
11 select nm from names_tab where id = 1
12 minus
13 select nm from names_tab where id = 2
14* )
SQL> /
MATCH
---------
All Match
SQL> ed
Wrote file afiedt.buf
1 with names_tab as (select 1 as id, 'Fred' as nm from dual union all
2 select 1, 'Sally' from dual union all
3 select 2, 'Bob' from dual union all
4 select 2, 'Jim' from dual union all
5 select 2, 'Fred' from dual)
6 --
7 --
8 --
9 select case when count(*) = 0 then 'All Match' else 'Mismatch' end as match
10 from (
11 select nm from names_tab where id = 1
12 minus
13 select nm from names_tab where id = 2
14* )
SQL> /
MATCH
---------
Mismatch
SQL>
Tags: Database
Similar Questions
-
How to compare, present value: block.text_item with the value of data
Hello
Could you please tell me
How to compare the current value: block.text_item with the corresponding database column value.
I use form 10g
It has block and there is a text element in this block.
When I run the form and query the block (in a table), the: block.text_item show me any value it in the database.
Now I add value in the: block.text_item to the existing value.
now
the: block.text_item contains the old + new added value
While
the database table contains the value 'old '.
Now, with a click of button, I want to know what value I added
Please can you me, is it possible without writing a select query?Hello
Now, with a click of button, I want to know what value I added
So you're saying always user will bring added value to the existing value. Because it will fail in a case. Let's say that
Database value is = ABCD
The user opens the form and he took the D and write E and now value is ABCE and length is always the same 4. There is therefore no need to add.In any case, you can know that the value of database at run time, there is a property for the element called DATABASE_VALUE. She gives the value that is in the database while you run the form before save. and you can use it like that...
Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level DECLARE vItemValue DATATYPE; -- Set the data type according to your desired field. vValueAdded DATATYPE; -- Set the data type according to your desired field. BEGIN vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE); -- It will return you the database value in vItemValue variable. IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN -- It mean something change or added vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1); MESSAGE('Added value is : '||vValueAdded); -- It will show you the added value. END IF; -- now suppose you want to show the old and new value in message not the added one -- Then no need of IF condition. You can just use message like this -- And i would prefer to use like this way MESSAGE('Old Value : '||vItemValue||' New Value - '||:FORM_ITEM_NAME); MESSAGE('Old Value : '||vItemValue||' New Value - '||:FORM_ITEM_NAME); END;
Hope that's clear.
-Clément
-
How to compare a value from array in an if statement
When I compare cdlCorrect [index] 0, it displays true, but when I draw it, it 2.
The if statement seems to be comparing the index itself to 0. How can I compare the value. In fact, as I continue to call this function (by clicking on the button), it always compares to 0, but the trace will return as 2, then 1, then 2, then 0, then 0. I think I'm getting the index, but then they must compare to 0, then 1, then 2, etc. I do not understand why it always compares to zero.
function chkAnswer(mevt:MouseEvent):void {}
cdlDone [index] = 1;
var rectSize:uint = 300;
var correctRect:Shape = new Shape();
correctRect.graphics.beginFill (0x00FF00, 0.5);
if (cdlCorrect [index] == 0) {}
correctRect.graphics.drawRect (45, 40, rectSize, 30); Address: 45:x 120:y rectSize:width 50:height
trace ("this is 0");
}
If (cdlCorrect [index] == 1) {}
correctRect.graphics.drawRect (45, 80, rectSize, 30); Address: 45:x 120:y rectSize:width 50:height
trace ("it is 1");
}
If (cdlCorrect [index] == 2) {}
correctRect.graphics.drawRect (45, 80, rectSize, 30); Address: 45:x 120:y rectSize:width 50:height
trace ("this is 2");
}
trace (cdlCorrect [index]); 2
trace (cdlCorrect); 2,1,2,0,0
}
If you read the values from an xml file then you need to convert them into numbers, or you need to test them as strings.
try changing
If (cdlCorrect [index] == "0") {}
and similarly for the other institutions
-
How to compare the value of two combo
I have two Combo Box (cbFirst & cbSecond). I want to compare the value that has been selected by the user and according to the result, the output is displayed. In the two combo box, I have provided the value.
Here is my code:
var a: number;
var b:Number;function First(evt:Event):void {}
a = evt.target.value;
trace (a);
}
cbFirst.addEventListener (Event.CHANGE, first);function Second(evt:Event):void {}
b = evt.target.value;
trace (b);
}
cbSecond.addEventListener (Event.CHANGE, second);If (a > b) {}
trace ("more")
on the other
trace (b is higher);
Trace the statement inside the functions work very well and the value correct a & b is printed. But the comparison in the if statement does not seem to work. Could you please help me.
There is a typing error. Fix it or delete it:
var a: number;
var b:Number;function First(evt:Event):void {}
a = evt.target.value;trace (a);
compareF();
}
cbFirst.addEventListener (Event.CHANGE, first);function Second(evt:Event):void {}
b = evt.target.value;
trace (b);compareF()
}
cbSecond.addEventListener (Event.CHANGE, second);function compareF() {}
If (a > b) {}
trace ("more")
on the other
trace (b is higher);
}
-
How to query the data of Contact with multiple fields
How can I query the data of Contact with multiple fields?
For example, I'll get contacts which are changed after a point at the specified time and whose country is US. How could I make the chain of research of the SOAP API "Query"?
And I also want to know how to make a search term for RESTful API for contacts above.
Any suggestions?
Thank you.
Hi Biao,
The following document describes how query for multiple fields using the SOAP API: request a Contact from several fields.
And you can search multiple fields using the REST API with the & operator. For example, to search for a Contact by e-mail address and date of creation:
- " emailAddress ='[email protected]' & converted > = '1369828886'".
Hope this helps and please let us know if you need more information.
Thank you
Fred
-
How to compare the value of a link with a 'HOLD' string variable...?
Hi all
I have two tables - TABLE1 and TABLE2, and the tables are having the STATUS column. The requirement is as if the STATE of TABLE1 column is updated as 'HOLD', then the same value must be updated the column STATUS of TABLE2.
create or replace trigger "TEST_TRG".
FRONT
update of 'STATUS' on 'Table1 '.
for each line
Start
if(:New.) STATUS = 'HOLD') then
{
insert into TABLE2 (STATUS)
value (: new.) STATUS);
}
end if;
end;
COMPILE ERROR:
Compilation failure, line 3 (02: 40:14) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only the compilation of database triggers.
PLS-00103: encountered the symbol "{" when waiting for one of the following numbers: (begin case declare exit for goto rise back loop mod null pragma select update while < ID > < a between double quote delimited identifiers of > < a variable binding > < < continue the current closing delete fetch locking insert opening rollback to savepoint sql set run commit forall fusion pipe purge "{" symbol has been ignored.) Compilation failure, line 7 (02: 40:14) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only the compilation of database triggers.
PLS-00103: encountered the symbol "}" when expecting one of the following values: (begin case declare end elsif else goto exit rise back loop mod null pragma select update while < ID > < a between double quote delimited identifiers of > < a variable binding > < < continue the current closing delete fetch locking insert opening rollback to savepoint sql set run commit forall fusion pipe purge the symbol "} ' was ignored.)
I get the errors as above when the trigger is compiled. Can someone please help me fix it.
Thank you and best regards,
Suhas
CREATE OR REPLACE TRIGGER "TEST_TRG" BEFORE UPDATE OF "STATUS" ON "TABLE1" FOR EACH ROW BEGIN IF (:NEW.status = 'HOLD') THEN INSERT INTO table2 (status ) VALUES (:NEW.status ); END IF; END;
You should learn how to write PL/SQL code.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
http://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
How to compare the value of the line with header element element? in RTF
Hello
My question is not correct but see details below
I have an XML file like this
& lt; PO_HD & gt;
& lt; PO_NUMBER & gt; 3456 & lt; / PO_NUMBER & gt;
& lt; PO_LINES & gt;
& lt; LINES_ROW & gt;
& lt; PO_LINE_ID & gt; 1234 & lt; / PO_LINE_ID & gt;
& lt; / LINES_ROW & gt;
& lt; LINES_ROW & gt;
& lt; PO_LINE_ID & gt; 6789 & lt; / PO_LINE_ID & gt;
& lt; / LINES_ROW & gt;
& lt; LINES_ROW & gt;
& lt; PO_LINE_ID & gt; 5678 & lt; / PO_LINE_ID & gt;
& lt; / LINES_ROW & gt;
& lt; / PO_LINES & gt;
& lt; PO_LINE_ATTCH & gt;
& lt; TEXT & gt; This text is for ID 1234 & lt; / TEXT & gt;
& lt; ID & gt; 1234 & lt; / ID & gt;
& lt; TEXT & gt; This text is for ID 5678 & lt; / TEXT & gt;
& lt; ID & gt; 5678 & lt; / ID & gt;
& lt; / PO_LINE_ATTCH & gt;
& lt; / PO_HD & gt;
I created the RTF template like this
& lt;? for each: PO_HD? & gt;
& lt; name of xsl: variable = "var1" select = "(PO_HD/PO_LINE_ATTCH)" / & gt;
& lt;? for each: LINES_ROW? & gt;
& lt; name of xsl: variable = "first_rec" xdofo:ctx = 'incontext' select = 'position ()' / & gt;
This is row in. ID: & lt;? PO_LINE_ID? & gt;
& lt;? [$first_rec] TEXT / $var1? & gt;
& lt;? end foreach? & gt;
& lt;? end foreach? & gt;
The output shows like this
It comes in. line ID: 1234
This text is for ID 1234
{color: #ff0000} This is row in. ID: 6789 {color}
{color: #ff0000} This text is for ID 5678 {color}
This is row in. ID: 5678
It is false (see the text id line and the line isn't even)
What I want is
It comes in. line ID: 1234
This text is for ID 1234
This is row in. ID: 6789
This is row in. ID: 5678
This text is for ID 5678
Is this possible? Kindly help me
Thank you
Rahul
"< name of xsl: variable ="var1"= sΘlectionner ' PO_HD/PO_LINE_ATTCH / *" / > "
<? for-each: LINES_ROW? >
This is line in. ID: <? PO_LINE_ID? >
< name of xsl: variable = 'ID' xdofo:ctx = 'incontext' select = "PO_LINE_ID" / ><?-foreach: $var1? >
< name of xsl: variable = "pos" xdofo:ctx = 'incontext' select = "position () - 1" / >
<? If: () = $ID text? > <? \[$pos\ $var1]? > <? end if? >
<? end foreach? ><? end foreach? >
-
How do complete you 1 text box with multiple drop-down list values
I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.
(A similar code on the drop-down list 1 and 2 from the drop-down list)
Change event - JavaScript
If (xfa.event.newText == 'No') {}
Form1.Page1.subform2.Description.RawValue = "no location listed.
}
If (xfa.event.newText == "Partial renting") {}
Form1.Page1.subform2.Description.RawValue = "enumerated part place."
}
Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?
Thanks in advance for your help.
Resolved:
Place this script in the root of the subform in the FormReady - JavaScript event.
oList var = this.getDeltas ();
for (i = 0; i< olist.length;="" i="">
{
var oDelta = oList.item (i);
oDelta.restore ();
}
Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/
-
How to compare a long data type with a varchar2 data type?
I need to select these views in my database that contains some passages.
To do this, I wrote this querySelect * from user_views
where lower (text) like '% "| Cast ('text to compare' as long). '%'but this gives exception: ora-00932
Can you please help how to do that?
May be give this a try. select object_name , view_text from ( select object_name , dbms_metadata.get_ddl('VIEW', object_name, user) view_text from user_objects where object_type = 'VIEW' ) where lower(view_text) like '%text to compare%';
-
How do a film attached to slide with its parent company / not move independently.
Hi there, I was hoping that someone can help me.
I would like to fix a clip to a removable clip (with A3). I introduced a clip using startDrag() - all fine work. But I would like to be able to dynamically place a clip on the inside so that it drags too. I got it partly working - you can drag the original clip around and clip attached (using aadChild) moves too. But if I take the clip attached instead of the original item moves independently.
Is it possible to get a clip inside the adjustable clip and fixed in place and does not move when you try to drag it.
See you soon
View the code that you use to assign the activity slide as well as the addition of the child to the object that has the activity of drag are entrusted to him. Looks like you might be assigned the startDrag the event.target instead the event.currentTarget.
-
Create a to-do for a slide with multiple interactions
I am currently working on a project in vogue to 8 Captivate that has multiple interactions on a slide. It has a drag and drop and 4 text entry boxes. Each of them should have 3 attempts. After the learner has tried all interactions and is managed or failed three times to each of them, I want the presentation to move to the next slide, which will show a corrected.
I tried to hide the game bar to entry into the slide after having the slide continue on the success or failure for each of the interactions, but this obviously doesn't work because that as soon as the learner is over an interaction, it will take him to the next slide without completing the other.
I am fairly new to Captivate, so I'm a little lost right now and not quite sure if I want to do is still possible. Does anyone know how (or if) I can do?
It is technically possible, but requires advanced experience working with User Variables and conditional Actions. Not something recommended for a beginner.
I recommend that you separate your interactions and just have one per slide. That everything will simplify a lot.
-
How can I create a 'master' document with multiple variations?
I designed a card that will be displayed to the few dozen intersections with a symbol 'you are here '. Everyone will be identical except for this symbol. I don't know if there is a way to do everything while preserving a 'master' card which can be changed at a time. For example, maybe I need to change the location of the paths, and it would be a real time saver if I didn't have to edit files 20 + (each with an arrow in another spot but otherwise the same) separately. Also, I'll send the file by e-mail to a professional printer, so I am very uncertain about what would be a standard way to format something like that and don't really want to clog their e-mail.
I was not able to determine an easy way to do it. I wonder if it involves the use of several work plans, a feature that I'm not very familiar with, or if it is easiest to have a layer for each location of the symbol and just save twenty records (phew) and send to the printer in the form of separate documents - which seems super awkward.
I tried to copy the plan of work several times. It was my best attempt of editing at the same time: I created what I needed on a workplan, dragged to the symbols Panel, then cut, then went to edit > paste on all work plans. However, this does not simply play with a trace or an object that already exists and I can't understand how I would delete the same object of all work plans.
If anyone has some ideas, I'm pretty novice, so please keep in simple terms. Also, I'm in a bit of a lack of time, so quick responses are much appreciated! Thank you!
If you save a PDF file, you can include layers (just check the box in the second save dialog box) that can be turned on or off allowing a single file in order to have all the data. You are going to have these printed in a professional manner?
-
How to create a website in flash with multiple URLS?
I'm not great flash and do a site that has a few different tabs for different pages. How to make the different URLS for each page? I want to follow each page separately.
Thank you.
Use (as2) getURL() or navigateToURL() (as3).
-
How can I compare unique value with several value...
Hello
I want to compare a value with multiple values, how is it possible?
I tried to design the same logic here as an attachment, but I had the problem that when I entered the value of y that is compared with only a minimum value of x, I don't want I want to compare the value of y with the value of x and then if y is less than x while loop should be stop.
I want to do because in my program some time I have not result I want, for example, the values of x is 4,5,6,7,8 and value is assumed to be 6 then while loop should be stop but here he considers only less and its 4 here so so that the loop is not stop even there is less then 7 and 8. So I want to compare the value of y with all values of x and if y is less then one of the values while x loop should be stop and led should be on.
Please guide me how I can do...
I don't understand? If there is less than the minimum value of X then it is less than all values of X. That's what I do anyway:
-
How to compare the new values with the old values in triggers.
Dear all,
Please tell me how to compare the new values with the old values in triggers.Hi, the employee example is in the document. You'd better read yourself.
CREATE OR REPLACE TRIGGER Print_salary_changes BEFORE DELETE OR INSERT OR UPDATE ON Emp_tab FOR EACH ROW WHEN (new.Empno > 0) DECLARE sal_diff number; BEGIN sal_diff := :new.sal - :old.sal; dbms_output.put('Old salary: ' || :old.sal); dbms_output.put(' New salary: ' || :new.sal); dbms_output.put_line(' Difference ' || sal_diff); END; /
Maybe you are looking for
-
I get a new iMac. I have a Macbook Pro for mid-2012. Can I clone my iMac from a backup of the Macbook? I'd like to not have to reinstall all the software from scratch, and I need the iMac have everything that lies on the Macbook.
-
I have a m92p office, the system update suggests that I flashed the BIOS as a newer version is available. I have no problem with the current BIOS I'm running and I always said, if you are not problems with your system, an update of the BIOS should no
-
Silent allways orange but work and volume/tone are not displayed.
I have a 1100-DV8T running win7 pro. Product #vf836av. Once Microsoft fixed a few issues that I noticed that the Mute button is still orange but works correctly. Settings mute, volume and tone do not appear on the screen when you use the touch but
-
original title: NETBios TCPIP of missing in Device Manager I recently had to run two antivirus programs on an infected computer and am now unable to connect to the internet. When I went to the event viewer, I noticed the following error messages: Eve
-
SOLUTION EXPLORER. EXE throws himself and tell the server threw an exception.
Whenever I click the Properties menu of work stations, each time I click on customize it with the right click on the desktop and when I do things a lot, sometimes important or trying to access some Microsoft office installation options runs just with