Fill a field value based on the calculation of the other fields
I have two fields of n serial and serial no two are of lov after the user selects the two values that the following amount of field has to be filled automaticallyIf serialno is 100 and the 200 serial No.
Then in quantity is 200-100 = 100
This should come in the quantity field
If the quantity is an attribute in your view object, you can use the following expression groovy to calculate the difference:
-
and remember not to update the quantity field series and on the basis of no field
Jean Lou
Tags: Java
Similar Questions
-
Fill a field value based on the other field
I have two transient attributes on the AC... The vo is not built on all transient attributes on any eo
For the first I have empid lov
If an individual empid is selected then related this empid... his empname should be displayed in the second transient attribute
How can we achieve this?Hello
While the allocation of the lov to the first attribute of transitional if you lov also contains the empname as columns display or present VO from the lov.
just + add an attribute (2nd attribute) more in mapping lov.
for the attribute and the card to the 2nd empname.
Together the auto submit to true for the transitional first attribute
and the partial value of the id of the trigger of the second transitional attribute ID attribute transient 1 thte.Thank you
Sumit Yadav -
Fill a field value based on the value of another field
Hello
Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
Any help would be appreciated
Thank you
<? choose:? >
<? When: IssueStatus = "Open"? >
<? 1? >
<? end when? >
<? otherwise:? >
<? When: IssueStatus = "closed"? >
<? 2? >
<? end when? >
<? otherwise:? >
<? When: IssueStatus = "Unresolveable? >
<? 3? >
<? end when? >
<? end otherwise? >
<? end to choose? >Use the following syntax.
Display 1 Display 2 Display 3
-
Calculate values based on the boxes are checked - for Dummies...
Hello and thank you all in advance for your help. I'm trying to calculate a value based on the boxes checked. Specifically, I would like to add a particular value $$ each CheckBox and if this box is checked, I want to add to the total rental value (see screenshot below):
As you can see in the screenshot that I have different areas that can be selected (first floor, court before, etc.), I want to assign a value to the checkbox of each region (and added value for others) and calculate a total in the "Balance of rental fees" less the deposit. I'm new with java and scripts but not know how to do it in an excel formula. I guess it's very different from what little I know of Java. Any help you can give me would be greatly appreciated.
Calculation options are in the text field. In this screen, you only need to set the value of exports to the amount this box represents.
-
VI to convert input signals NI 9402 in a RPM value, based on the frequency of the pulses
Hello
I'm looking for a VI convert an input signal NI 9402 in a RPM value, based on the frequency of the pulses. Is there such a thing that exists in the library of national instruments?
I run LAbview 2014 integrated control and monitoring on on a cRIO 9802 high performance integrated system with NEITHER 9402, 4 channels, 50 LV, LV TTL Module input/output digital, ultra high speed digital i/o for the cRIO module.
Any help would be greatly appreciated.
The easiest way is to use the FPGA to get the time between the edges of your pulse increase (shift registers to maintain the current situation and the time will be necessary). This will give you the period. If it's a single pulse per turn, then the number of laps is just 60/T, where T is the time in seconds.
-
Hi all
I need the values according to below 2logics in a single select query using instring and substring
1 values based on the following logic 'values after the first values of two '_' and before last '_' values '.
2 values based on the following logic 'values after the first values of two '_' and before last'-'values '.
EXM:
Entry: ABCD_EFGH_IJKLM - NOPQ_XYZ output: IJKLM - NOPQ
Entry:. ABCD_EFGH_IJKLM - NOPQ output:IJKLM
Thank you.
Check the following
WITH DATA1 AS
(SELECT "ABCD_EFGH_IJKLM - NOPQ_XYZ" double val)
UNION ALL
SELECT 'ABCD_EFGH_IJKLM - NOPQ' double val
)
SELECT SUBSTR (VAL, INSTR(VAL,'_',1,2) + 1, DECODE (BIGGER (INSTR (VAL, '_',-1, 1), INSTR(VAL,'-',-1,1)), INSTR (VAL,'-', - 1, 1), LENGTH (VAL) + 1, INSTR (VAL, '_',-1, 1))-(INSTR (VAL, '_', 1, 2) + 1))
OF DATA1;
Concerning
Salim
-
I have an Acrobat PDF form where there are 8 combo boxes (not editable) which are related in a logical way, but have unique names and a list of unique values, with the exception of a default value that represents 'null' or 'none '.
for example:
The first 1 combo box value is "none" followed by the value A1, B1, C1, etc., and Combo box 2 the first value is 'none' followed of the values A2, B2, C2, etc...
The combined list useful values for every combo boxes relate to the types of unique product for the user to select mode 'radio button '.
When the user selects one of the 8 Combo boxes and performs one selection other than 'none', then the form must verify the 7 other combo boxes and when any current value is not equal to 'none', he has to change 'None '.
The following script is currently enrolled in the properties of "Actions - Mouse Run - Up a Javascript" from one of the drop-down list boxes, others have similar scripts as well.
(var cbox is the current combo box and var obox is for other drop-down list boxes when called).
Cbox var = this.getField ("TagStyleStake");
If (cbox.value! = "none")
{
obox var = this.getField ("TagStyleBasket");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStylePushon");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStyleHandle");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStyleHang");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStyleBlank");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStyleMolded");
If (obox.value! = "none")
{obox.value = 'none' ;}
Obox = this.getField("TagStyleSignage");
If (obox.value! = "none")
{obox.value = 'none' ;}
}
The current problem is that, when a Combo is selected and one option other than the 'none' value is clicked, the other combo boxes do not include the 'None' value.
To reset the other combo boxes requires another click on the option which has just been moved to the position selected in the drop-down list, but it seems reasonable that the drop-down list boxes should reset with the initial click the option in the drop-down list.
I tried other properties (Format, validate, Calculate) but without success.
What I'm missing here?
The normal way to proceed is to define "value option selected to validate immediately" and to place the code in the event of the combo box button. And instead of the first two lines you have, you need to use something like:
If (! event.willCommit & event.changeEx! == 'none') {}
Your other code goes here
}
The changeEx property returns the value of exports, if any, for the selected item.
-
How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance, as indicated in the figure below. and enter this signal in a data acquisition.
At the time wherever you go for the beautiful diadram, you could have done the vi
Your DAQ would like a waveform (table of values and dt ak 1/sampling rate)
If you set the sampling rate you know the length of the array, create a matrix of zeros and set the values of the two amplitudes...
Because I don't want to connect other duties here are some photos
And it
does have a few drawbacksleaves to be desired in my solution, just think... rounding errors and what might happen if the tables are becoming more... -
The default value based on the field from another table to a custom object
I'm trying to set the default value to a field in the custom object to the value of a field of account. I tried the syntax 50 ways different and just don't get the case. The label for the account field displays the form of s/n, the integration of the tag is ltDBA_ACCT and it appears in the fx reports area as Account.Text_22.
The field of custom object that I am triying update is also called s/n, which was originally the required field 'NAME '. The name of the table, account, should it be included? Do I need a function to the field?
I've updated the external ID using the line with syntex < ID > ID (at least higher ID) so I know that it is possible to define a default value, but s / < n >, < ltDBA_ACCT >, 'account '. "" S/n "and so on are simply not working.
If anyone knows how to get into what I would be really grateful for the help.OK, so if you default a field to the value of another object, you must use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure you do.
Then this won't work by default if the folder is created from the object that you want to join the because a default works in record creation and the ID must be available so that it works correctly. It will not work if you choose the record of the related object after that registration of the custom object is created. You can set the default after, but that does not meet your requirements.
The syntax of the default are the following: JoinFieldValue (ref_record_type, foreign_key, field_name).
In your case, ref_record_type is '
', foreign_key is [ ] and field_name is ' '. The best way is to determine what is the name of the field to create a new workflow for the account and use the Workflow Rule Condition expression builder to choose your field ("DBA") in the list. The value returned by the expression builder must be placed in the field_name variable in the function JoinFieldValue (minus the parentheses and quotes). Give it a shot and let me know how you do.
Thom -
Hide a field value based on the value of the previous row
I need to read the string before the underscore (_) and show that the value in the 1st row for the field of Value1. For example, if the previous string (ABCDE) is equal to that of the second line I need to hide the value (100) on the field of the value1.
Sample data:
Report ID Val1 Val2 Val3 ABCDE_01 100 200 300 ABCDE_02 100 250 350 XYZ 500 60 28 Final results:
Report ID Value1 Value2 Value3 ABCDE_01 100 200 300 ABCDE_02 250 350 XYZ 500 60 28 I am using code below but error.
<? If: xdoxslt:get_variable($_XDOCTX,_'x')! = substr (REPORT_ID, 0, instr(REPORT_ID, '_', 0) - 1)? >
<? Value1? >
<? end if? >
<? xdoxslt:set_variable ($_XDOCTX, 'x', substr (REPORT_ID, 0, (instr(REPORT_ID, '_', 0)-1)))? >
You can use this condition instead:
It will manage both of your cases.
-
How to fill the new column with values based on the subquery
How can I fill a new column (teamid) with the following query below, at my table dept? I'm empty/null entries in teamid collar when I run the code ff:
ALTER table dept add (teamid varchar2 (15));
Update dept
define the teamid = select upper (substr (deptname, 1, 3)) | Upper (substr (Color, 1, 2)) | rownum
of the Department;
Want to output:
DEPTNAME COLOR TEAMID SALES ORANGE SALOR1 ACCOUNTING BLUE ACCBL2 BILLING YELLOW BILL3 SQL> create table dept as 2 select 'SALES' deptname, 'ORANGE' color from dual union all 3 select 'ACCOUNTING' deptname, 'BLUE' color from dual union all 4 select 'BILLING' deptname, 'YELLOW' color from dual 5 / Table created SQL> SQL> select * from dept; DEPTNAME COLOR ---------- ------ SALES ORANGE ACCOUNTING BLUE BILLING YELLOW SQL> SQL> alter table dept add(teamid varchar2(15)); Table altered SQL> update dept set teamid = upper(substr(deptname,1,3)) || upper(substr(color,1,2)) || rownum; 3 rows updated SQL> select * from dept; DEPTNAME COLOR TEAMID ---------- ------ --------------- SALES ORANGE SALOR1 ACCOUNTING BLUE ACCBL2 BILLING YELLOW BILYE3 SQL> rollback; Rollback complete SQL> drop table dept purge; Table dropped SQL>
----
Ramin Hashimzade
-
How to disable the LOV values based on the State of some?
Hello
I have a requirement like this.
(1) LOV Field (1), when I get a value here then based on the query I get two new values and assign to another two LOV Fields (2,3) and then disable them. However, when I enter the value in the field LOV (1) based on one of the conditions I won't have no default value then LOV fields must be enabled so that the user can select the values of LOV.
(2) now an another LOV domain (4) when I go here again, then again two fields a LOV (5), and the free text field must be filled in.
To do this, I wrote the logic in the following way:
(1) get the LOV box-1 value and deriving the new values and set the session Variable to 1 and then refresh the Page. Now in PR get the Variable from Session 1 and assigning new values to LOV fields 2 and 3 and then using the property Setdisabled I deactivation.
(2) getting the value of LOV field-4 and then drifting two new values and set the session Variable-2 and refresh the Page. Now in PR get Session-2, and then set the new values for the LOV-5 field and free text. But once the Page Refreshed and assigning values, values that we have given in the Point 1 in the LOV-2 fields, 3 turn white and field's get activated.
Can you please let me how to achieve this? and also why the values are empty when I implement Point-2.
Thank you
ClarriizaClarriiza,
This VO have no matter what right SQL query, so even if you run the VO by using vo.executeQuery (), you will not get all the lines in the VO.
So in the PR you need createRow and insert VO (otherwise your page no mistake) the below blog can be considered as an example.
Reference: Oracle tips of Johny: OAF: how to create a PVO and use for Spel link in Oracle Application Framework
On top of which is explained in the blog above, you set the values for the attributes of the useful, likely to set the value for the other LOV.
I hope this helps.
See you soon
AJ
-
Auto fill cells with color based on the result in the cell
Is it possible to automatically fill a color in an excel cell based on the result that is displayed in a cell
for example, if the result is in (0.00 - 1.00 = green), (superior to-2.00 orange)...
-1.00 0.54 -2.50 Hi CP.
If you use excel 2007Use the conditional format in the home TABhttp://www.excelbanter.com/showthread.php?s=ae23ced152268f200ceb2072db8ca262&t=212501Kind regardsChauvet J. -
Hello
I use jdev 12.1.2.
I have a few components of af: selectOneChoice that is contained in an af:table element. The table is extracting lines from database and display data. Now here's the weird part: sometimes the component of selectOneChoice will have the correct value selected, and other times it will be just left unchecked. I can verify that the data in the object view lines are indeed correct after I request them. The LOV for soc components are properly set up (some are configured as static list display objects and some are set up as model driven lists based on display objects). I have just completely puzzled me as to why they work sometimes and then not work at times even though I am following the exact same steps to reach that point in my application. Someone at - he never meets this problem before?
Thanks for reading.
Problem solved!
For anyone having this problem in the future: do not try to do a partial trigger on a table that is not in the visible panelTab. The problem is that when my view criteria applying, I was refreshing the TWO tables. This caused that was not visible to lose the selectOneChoice selection, while the other table was very good. Remove the partial relaxation for the table that was not visible caused the data to be maintained properly during the exchange between the tabs and change the view criteria. Thanks for the help again Ashish, stumbled on the real root of the problem, after following some of your suggestions.
-
Get the old value and the new value based on the date
Hello
I have a table called list created below with the rest of the insert statements.
CREATE TABLE ROSTER
(
NUMBER OF ROSTER_EMPLOYEE_DEF_ID
NUMBER OF EMPLOYE_ID
NUMBER OF DEFINITION_REGION_CODE
NUMBER OF DEFINITION_DISTRICT_CODE
NUMBER OF DEFINITION_TERRITORY_CODE
START_DATE DATE,
END_DATE DATE
)
INSERT IN THE LIST
(ROSTER_EMPLOYEE_DEF_ID, EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE)
VALUES
(1,299,222,333,444, 'JUNE 1, 2011', 30 JUNE 2011 "")
INSERT IN THE LIST
(ROSTER_EMPLOYEE_DEF_ID, EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE)
VALUES
(2,299,223,334,445, "1 JULY 2011', JULY 20, 2011" "")
INSERT IN THE LIST
(ROSTER_EMPLOYEE_DEF_ID, EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE)
VALUES
(3,299,224,335,446, 'AUGUST 1, 2011', AUGUST 30, 2011 "")
INSERT IN THE LIST
(ROSTER_EMPLOYEE_DEF_ID, EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE)
VALUES
(4,300,500,400,300, 'JUNE 1, 2011', JUNE 20, 2011 "")
INSERT IN THE LIST
(ROSTER_EMPLOYEE_DEF_ID, EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE)
VALUES
(5,300,501,401,301, "1 JULY 2011', JULY 20, 2011" "")
In the table above we have columns like
EMPLOYE_ID, DEFINITION_REGION_CODE, DEFINITION_DISTRICT_CODE, DEFINITION_TERRITORY_CODE, START_DATE, END_DATE
The result I'm looking for the table above is based on the employe_id OF start_date AND end_date
I need to get the OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_CODE
Similarly, OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_REGION_CODE
and OLD_DEFINITION_TERRITORY_CODE and the NEW_DEFINITION_TERRITORY_CODE
I need to get a row of data for each employee saying old value and the new value
for the employee 299 there are 3 records he puts the new record which is the latest date is to say beginning August 1, 2011 and end date of recordings old 30 August 2011
beginning July 1, 2011 and July 20, 2011
For the data in the table above, I need to get the data as below
EMPLOYE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_CODE OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE START_DATE END_DATE
299 223 224 334 335 20 JULY 11 30 AUG 11
300 500 501 400 401 20 JUNE 11 JULY 20, 11
Please suggest me to get the result above, based on the data. Please let me know if my messages are not clear
Thank you
SudhirSELECT EMPLOYEE_ID, OLD_DEFINITION_REGION_CODE, NEW_DEFINITION_REGION_CODE, OLD_DEFINITION_DISTRICT_CODE, NEW_DEFINITION_DISTRICT_CODE, OLD_DEFINITION_TERRITORY_CODE, NEW_DEFINITION_TERRITORY_CODE, START_DATE, END_DATE FROM ( SELECT EMPLOYEE_ID, ROW_NUMBER() OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE DESC) RN, LAG(DEFINITION_REGION_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_REGION_CODE, DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE, LAG(DEFINITION_DISTRICT_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_DISTRICT_CODE, DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE, LAG(DEFINITION_TERRITORY_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_TERRITORY_CODE, DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE, LAG(END_DATE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) START_DATE, END_DATE FROM ROSTER ) WHERE RN = 1 / EMPLOYEE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE OLD_DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE OLD_DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE START_DAT END_DATE ----------- -------------------------- -------------------------- ---------------------------- ---------------------------- ----------------------------- ----------------------------- --------- --------- 299 223 224 334 335 445 446 20-JUL-11 30-AUG-11 300 500 501 400 401 300 301 20-JUN-11 20-JUL-11 SQL>
SY.
-
How to get the values based on the most recent date
Oracle Version 8i
How to get the new_value based on the most recent date
SELECT max (MODIFIED_ON), the Group LOG_ITEM_CHARACTERISTICS by MODIFIED_ON new_value - does not
Please, someone help me
CREATE TABLE LOG_ITEM_CHARACTERISTICS ( CHAR_LOG_ID NUMBER(10) NOT NULL, PIRM_ID VARCHAR2(8) NOT NULL, CONSTANT_FLAG VARCHAR2(1), CHARACTERISTIC_NAME VARCHAR2(25) NOT NULL, TYPE_NAME VARCHAR2(10) NOT NULL, NEW_VALUE VARCHAR2(3000), UOM VARCHAR2(10), MODIFIED_BY VARCHAR2(30), MODIFIED_ON DATE ) SET DEFINE OFF; Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187376, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '1', 'AMPS', 'EMPXD88', TO_DATE('10/25/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187377, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMPXD88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187378, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '0', 'AMPS', 'EMDXB88', TO_DATE('09/22/1998 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187384, '0307490N', 'N', 'OUTPUT CURRENT', 'PS2030/WVL', '2', 'AMPS', 'EMAXC29', TO_DATE('11/10/2000 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (187385, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55.1', 'VOLTS', 'EMAXC29', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_ON) Values (2400742, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', TO_DATE('10/19/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574093, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '2', 'AMPS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (574094, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/13/2002 11:55:16', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131486, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131487, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '16-12-04', 'DD/MM/YY', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (3131488, '0307490N', 'Y', 'POWER SUPPLY', 'PS2030/WVL', 'ESSENTIAL', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (3131489, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMCTH88', TO_DATE('12/16/2004 14:31:14', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759086, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759087, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '54.9', 'VOLTS', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (4759088, '0307490N', 'N', 'LAST MEASURED DATE', 'PS2030/WVL', '14/11/07', 'DD/MM/YY', 'EMRCT88', TO_DATE('11/15/2007 14:33:03', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646012, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646013, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646014, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6646015, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646016, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 12:56:17', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646057, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646058, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6646059, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'null', 'PAUL DEVERILL', TO_DATE('01/06/2011 13:03:18', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648577, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '6', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648578, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648579, '0307490N', 'Y', 'YR ROUTINES REQUIRED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:35:45', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648580, '0307490N', 'Y', 'BATT TEST SET AT 3M', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:00', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, MODIFIED_BY, MODIFIED_ON) Values (6648581, '0307490N', 'Y', 'CAP ALARM INHIBITED', 'PS2030/WVL', 'NULL', 'EMPXD88', TO_DATE('01/07/2011 13:36:10', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648634, '0307490N', 'N', 'MEASURED LOAD ON PER', 'PS2030/WVL', '5', 'AMPS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); Insert into LOG_ITEM_CHARACTERISTICS (CHAR_LOG_ID, PIRM_ID, CONSTANT_FLAG, CHARACTERISTIC_NAME, TYPE_NAME, NEW_VALUE, UOM, MODIFIED_BY, MODIFIED_ON) Values (6648635, '0307490N', 'N', 'OUTPUT VOLTAGE', 'PS2030/WVL', '55', 'VOLTS', 'EMPXD88', TO_DATE('01/07/2011 13:51:06', 'MM/DD/YYYY HH24:MI:SS')); COMMIT;
user4587979 wrote:
Hi FrankYes, but I had more than 2 tables with item_characteristics, type_characteristics
If there are other tables involved, then CREATE TABLE and INSERT statements for them (for the relevant columns only). You must not post a lot of examples of data; usually just a couple of lines per table is enough to show the problem.
Also post the results desired from these data.What I try to do is, I'm comparing new_value in log_item_characteristics (whichever is most recent) with CHR_VALUE in the item_characteristics and the needs of different output values
I am trying to query is not giving desired out put
Point out some places where the output is wrong and explain how you get good results in these places, using specific examples from the data sample.
select lic.PIRM_ID, ic.CHR_ID, lic.CHARACTERISTIC_NAME, lic.TYPE_NAME, ic.CHR_VALUE, lic.NEW_VALUE, lic.MODIFIED_BY, lic.MODIFIED_ON, ic.CREATED_BY, ic.CREATED_ON,ic.MODIFIED_BY, ic.MODIFIED_ON from log_item_characteristics lic, item_characteristics ic,type_characteristics tc where lic.TYPE_NAME=tc.TYPE_NAME and lic.CHARACTERISTIC_NAME=tc.CHR_NAME and lic.PIRM_ID=ic.PIRM_ID and tc.CHR_ID=ic.CHR_ID and ic.CHR_VALUE <> lic.NEW_VALUE and lic.pirm_id in ('0307490N','0307521C') order by lic.pirm_id
Thank you; It is useful to see the existing query. Really, you have to format your code.
Please can you help me
What you've posted so far is like saying "I'm going 200 meters to the North, and then 500 meters East, but I'm not getting where I want to go." I would have a better chance to help you if you said, 'I'm out of my house, at 100, Elm Street and try to get to the supermarket at Broadway 279. I'm going 200 meters to the North... ', or, even better. "I want to buy a newspaper and some orange juice, so I thought I'd go to a convenience store. I start at my house, at 100, Elm Street... »
Always post some examples of data (CREATE TABLE and INSERT statements, as you did in your first post) and the desired results from these data. Explain how you get these results from these data.
Maybe you are looking for
-
The ability to move the tabs of the browser has been eliminated in 39 FF?
I just got back to Firefox from Chrome. To my dismay, I find no way to have my tabs of the browser below the address bar as in earlier versions. I much prefer the old location.
-
Jet 7 - unable to completely change the language of the user.
I have a new flow 7 purchased on the Microsoft Store in Germany. On initial Setup, I chose the United Kingdom as my country, my language of English and English for the keyboard. While most of the text is in English, a number of essential elements suc
-
How to stop a file from the application of a sort order on the files
Under Win XP, how can I have a folder of photos in my pictures are in the order that I copied them in Windows instead trying to sort by a file attribute, as the name. Whenever I get close and reopen a file, Windows has sorted them rather than leavin
-
HP PROBOOK 450 G0-G1-best network and drivers for my laptop
Hello. I have a hp probook 450 G0 - G1 with a 64bitwindows 8 and no network or Bluetooth drivers. Which would be the best driver to install on your site?
-
I send an email, it does not completely turn off. A message that says that the task had not been completed, but no error message appears. The email goes off, and whenever I open OE it turns off again and again and again, etc. Any suggestions? Thank y