How to relate two columns in a same row
I want to relate two columns in a same row, like if A2 is Jack then B2 to be A, if A2 is Anand then B2 to be B, If A2 is Arun then B2 to be C and so on. How to do it?
Anand,
Create a table that lists the relationships:
Name
Associated Letter
Jack
A
Anand
B
Arun
C
Then, use a Lookup function to find the name in the lookup table and return the proper letter to your main table.
Jerry
Similar Messages
-
How can I sum every other column in the same row?
I have, for each employee, two columns: Planned and Worked.
I would like to sum the values in each Planned column. There are 25 employees, each with their own Planned and Worked columns, on the same row.
How can I do a SUM of every other column, starting with Planned?
Thank you.Thank you, Yellowbox!
The exact formula didn't work; however, it gave me a precise path to follow and come up with this: =SUMIF(E2:BB2,"=Planned",E3:BB3)
Week
Ending Date
Planned Subtotal
Worked Subtotal
Employee1
Employee2
Employee3
Planned
Worked
Planned
Worked
Planned
Worked
1
01/04/2014
120
40
38
40
44
40
50
2
01/11/2014
If not for your starting point, I'd have wasted many more hours on this.
Thanks again!
BB -
How to add two columns in OBIEE report?
Hi to All,
Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
Thanks in Advance,
ThenmozhiAssume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
Let me know if you are looking for something else.
Thanks -
How to run two query in the same preparedStatement
Hi all,
Please tell me how to run two queries in the same preparedStatement object ?
In my module I have to run two queries and I don't want to make two methods for running two different queries.
I just want to call this method for both of my queries.
methodName(long param)
Connection conn=null;
PreparedStatement pstmt=null;
//////////////// some coding
Please Help !
Thanks in advance
amitindiapublic void foo()
Connection connection = null;
PreparedStatement stmt = null;
try {
connection = ...get from pool...;
stmt = connection.prepareStatement("...");
...fetch results...;
stmt.close();
stmt = null; // So the finally statement works if there is an exception
stmt = connection.prepareStatement("...");
...fetch results...;
} finally {
if (stmt != null) ..close it...;
if (connection != null) ..return it to pool...;
} -
How to Maintain two different prices for same material in different qty?
Dear all,
How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)?
(Vendor is supplying quantities in 2 different batches & also in different prices)
Expecting valuable reply.
JeyakanthanIn a PO you can create 2 items, and each item can be maintained with a different price in the conditions.
In info record it is not possible to have different prices for the same period, except for scales.
so if you have a price of e.g. 2 USD for 1000 kg and 1,90 USD for 2000 kg then you can maintain this in scales, but you still have to have 2 items in the PO so that each one can individually find its price.
Alternative you can create contracts (as well with more than one item) to reflect the different prices and batches. -
How to get two parameters in the same line of selection screen?
hello
i need to get my selection csreen like bellow.
r1 radiobuttion -some space --p1 parameter
i should not get the parameter in the next line of radiobuttion.
how to get two parameters in the same line of selection screen?hi....
modify the following code
it will work
SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 10(15) TEXT-001
FOR FIELD P1.
SELECTION-SCREEN POSITION POS_LOW.
PARAMETERS : P1 TYPE C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
P2 TYPE SCARR-CARRNAME,
P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK SL1. -
HOW TO PUT TWO PANNEL IN THE SAME PAGE
HI ALL
I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
THANK YOUSo Barb,
I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
Mac Basics: Multi-Touch gestures - Apple Support
and I use Mission Control (F3) to move the various desktops around in the order I want them.
Mac Basics: Mission Control - Apple Support
So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there and gestured back here to paste the URL into this text.
If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
Hope this helps. -
How to write two item in the same line?
In the smartforms,how to write two item in the same line?
eg
1 ************* 2 *****************
3 ************** 4 ******************
5 ***************
Anyone got any idea to do this.
Thanks in advanceHi,
In the smartform the main windows is 20cm.I use the table output my data.Because the output is two item in same line,I define two rows in the table line type.
Question:
Should I define the table width 20cm?
In the main area of table , should I define two folders and each of folder include a line? The second item I had already defined as Append Directly,but the item 1 and item 2 don't in the same line.
Regards -
How to add Two Columns in SQL
For Example
Jan Feb
215 NULL
How to add these two values in SQLAnything + NULL is NULL.
Check this:
SQL> SELECT 1 + NULL from dual;
1+NULL
SQL> You have to do this:
SQL> with t as (SELECT 235 JAN, NULL FEB FROM dual)
2 SELECT NVL(JAN,0) + NVL(FEB,0) FROM t;
NVL(JAN,0)+NVL(FEB,0)
235
SQL> -
How to create two columns in a header?
Can anyone tell me how to create two columns in a header please?
Thanks!!Sandra,
I'm suspicious about your motives. It just doesn't seem logical to me to put so much content into a Header that two columns would be required.
You might consider the alternate header-like approach; use a Text Box set to two-column format and Format > Advanced > Move Object to Section Master.
Jerry -
Radio group in classic report based on another column on the same row.
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
Application Express 4.1.0.00.32
How can I have a radio group column based on an LOV utilizing another column on the same row of the report?
For example: what if I had a survey application and depending on the likert scale that was assigned to the question there would be different possible answer choices:
Question 1 on row 1 of the report: The class instructor was friendly?
Likert scale choice is Agreement.
Choices on Radio Group: Strongly Agree, Agree, Undecided, Strongly Disagree
Question 2 on row 2 of the report: The class offered good materials?
Likert scale choice is Quality.
Choices on Radio Group: Excellent, Below Average, Average, Above Average, Excellent
The radio group can change per row depending on the Likert scale assigned to the question which is assigned to a different column on the row.
Can LOV utilize the column? :
SELECT scale_text
FROM scale_choices
WHERE scale_category_choice_id = 2 <<= this would be the Likert scale identifier
ORDER
BY display_orderHere is the answer:
APEX_ITEM.SELECT_LIST_FROM_QUERY(
p_idx IN NUMBER,
p_value IN VARCHAR2 DEFAULT NULL,
p_query IN VARCHAR2,
p_attributes IN VARCHAR2 DEFAULT NULL,
p_show_null IN VARCHAR2 DEFAULT 'YES',
p_null_value IN VARCHAR2 DEFAULT '%NULL%',
p_null_text IN VARCHAR2 DEFAULT '%',
p_item_id IN VARCHAR2 DEFAULT NULL,
p_item_label IN VARCHAR2 DEFAULT NULL,
p_show_extra IN VARCHAR2 DEFAULT 'YES')
RETURN VARCHAR2; -
ADF 11g Partial Triggers Row Column Update By Column in the Same Row
Hi.
I have a situation whereby I have a checkbox in a table row, which has an eventchangelistener, which upon activation, trys to update another column in the same row. I can not get this to work through partial triggers, even though I have set up my ids up correctly. The row though can be updated by a command button outside of the table using the same coding techniques, but I need it updated via the checkbox.
Is there a limitation in updating a column within a row, from another row column's event change listener.
Thanks.Updating the other rows from the checkbox works fine for me. Here is what I did.
I DnD Emp table with a new column that says if the emp is new hire. If the checkbox is checked, I set Firstname and Lastname for that row as NewHire. I have partial triggers on Firstname and Lastname columns to update whenever checkbox is checked/unchecked and autosubmit on checkbox to true. Hope this helps.
Try adding column selection property to single and see if it helps.
Edited by: asatyana on Jan 16, 2012 12:48 AM
Edited by: asatyana on Jan 16, 2012 12:49 AM -
Sap Script - How to show two logos consecutive in a row.
Hi All,
If in a window I insert two lines:
/: INCLUDE ZHEX-MACRO-ZLOGO001 OBJECT TEXT ID ST
/: INCLUDE ZHEX-MACRO-ZLOGO002 OBJECT TEXT ID ST
the Sap Script shows two logos not consecutive in a row.
I'd like to show the two logos in the same row and if it is possible, separated by blanks.
Any idea?
Thanks in advance for your kind support.
Regards,
GiovanniThis is because of your page size limitation. IF you will create two windows then it will work.Aline these windows properly in layout of page.
-
How to search two columns and return a value in the same row to a cell?
Identification
Diameter
Soak
3" Tank (inches/kft)
AWG
mils
Code
Strands
Shield
Conductor
Insulation
Semi-Con
Days
SD
Injection
Soak
Total
2
175
00
7
External
0.288
0.692
0.752
60
0.4
3.6
20.0
23.6
2
220
00
7
External
0.284
0.764
0.864
75
0.4
3.6
20.0
23.6
2
260
00
7
External
0.284
0.844
0.944
90
0.4
3.6
21.8
25.4
2
320
00
7
External
0.288
0.964
1.064
110
0.4
3.6
24.3
27.0
2
345
00
7
External
0.288
1.014
1.114
115
0.4
3.6
25.6
29.2
Length
3"
4"
AWG
mils
Soak
SD
Injection (3")
Injection (4")
650
2
320
I want to input two values, AWG and mils and return the value in the Days column.
In the instance of what I am showing .... AWG=2 AND mils=320 so Soak=110 ....
I want to search the columns (AWG) AND (mils) to return a value in the column (Days) for that row into cell H10 (Soak) ...
So far I have toyed with LOOKUP, INDEX and MATCH ....SCW,
I'm sure there is a clever way to cascade functions to avoid adding an auxiliary column in your practice table, but to me it wouldn't be worth the aggravation. I would add a column that concatenates Columns A & B, AWG & mils. This column can be anywhere and would be Hidden. Let's say your new column is Column N.
In Column N, fill the body rows with:
=A&"-"&B
As good Numbers programming form would indicate, let's name the Practice Table Practices and only put the practices in that table. In another table where you do the lookup, let's call it Program, we will have the calculation/lookup.
Based on your example, I'd guess that AWG may be in Column D and mils in Column E of your Program table, and the Soak lookup in Column F. If I'm wrong, adjust the column id.
In Column F, write:
=OFFSET(Practices::I$1,MATCH(D&"-"&E, Practices::N,0)−1, 0)
The hyphen in the concatenated representation of the combination of AWG and mils is just tp make it more readable.
As I'm sure you know, you could use other approaches, but since I had you put your aux column at the end of your Practices table, OFFSET with MATCH is a clean approach. INDEX could be used too.
Here's an illustration:
Regards,
Jerry -
How to sum different column in the same table
Hi everyone
I would like to know how can I make the sum of different column in the same table using apex
exple:
TR_PROJ_BIL_TRIM.ENTPIDFISC as ENTPIDFISC,
TR_PROJ_BIL_TRIM.EXEANNEE as EXEANNEE,
TR_PROJ_BIL_TRIM.PROJBILTRIMT1PREV as PROJBILTRIMT1PREV,
TR_PROJ_BIL_TRIM.PROJBILTRIMT2PREV as PROJBILTRIMT2PREV,
trunc( TR_PROJ_BIL_TRIM.PROJBILTRIMT1PREV)+(TR_PROJ_BIL_TRIM.PROJBILTRIMT2PREV)
from TR_PROJ_BIL_TRIM TR_PROJ_BIL_TRIM
group by TR_PROJ_BIL_TRIM.ENTPIDFISC,TR_PROJ_BIL_TRIM.EXEANNEE
but while trying to run this script i get this error message:"ORA-00979: not a GROUP BY expression"
thanks for reading me and I hope to hear from you soonHi,
Your question do not have anything do with APEX.
It is pure SQL question and you will get better answer this kind questions from SQL and PL/SQL forum
You need have GROUP BY when you use aggregate functions like SUM.
I assume you like just add two columns.
Try
SELECT ENTPIDFISC
,EXEANNEE
,PROJBILTRIMT1PREV
,PROJBILTRIMT2PREV
,trunc(PROJBILTRIMT1PREV) + (PROJBILTRIMT2PREV)
FROM TR_PROJ_BIL_TRIM
Regards,
Jari
Maybe you are looking for
-
I can see the pictures even after restarting the computer, but I cannot do anything with them. Can I transfer the missing files to something useable? It was oringinally transferred via SDHC card.
-
i try to do several times... to recovery my ipad 2 wifi...but it gone off mode..what i must do.. i'm university student ..i need my ipad for tomorrow lecture..please help me
-
Are there digital versions of CIB for Premiere Pro and InDesign?
As I travel quite a bit, I am finding that lugging around these two books is just more heavy baggage. I looked on the net but cannot find any digital versions in a straight PDF file, (not kindle or ibook). Does anyone know if Adobe has this available
-
Remove 7.0.1 update
Is it possible to remove 7.0.1 update, it created problems, thanks
-
HOW DO I SEE THE LAST DATE I BACKED UP ON ICLOUD
How can I see the last date that icloud was backed up?