Link persons together to get the total Household value
Version
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Hi
i am trying to find all possible link and spouses to the persons and bring them together to find out the total sum for that household.
We have a person table which lists all the persons in out DB
a link table wich links identical persons
a spouse table which has spouse relation
Can some one please help me in building this logic.
Persons in our database = 100 / 200 / 300 / 400 / 500 / 600 / 700 / 800
Ids linked together that means they are the same people.
100 --> 200
200 --> 300
200 --> 800
300 --> 700
400 --> 500
Spouse
100 -- 600
200 -- 500
400 -- 500
Required Output
ID ID2 VALUE VIA_WEPID
100 100 --> 1000 100 ** Direct Link
100 200 --> 2000 200 ** Direct Link
100 800 --> 8000 200 ** In Direct Link
100 300 --> 3000 200 ** In Direct Link
100 300 --> 3000 300 ** In Direct Link
100 700 --> 7000 300 ** In Direct Link
100 600 --> 6000 600 ** Direct Link
100 500 --> 5000 200 ** In Direct Link
100 400 --> 4000 500 ** In Direct Link
/* Formatted on 8/24/2012 8:28:39 AM (QP5 v5.115.810.9015) */
WITH PERSON AS (SELECT 100 ID, 1000 VALUE FROM DUAL
UNION ALL
SELECT 200 ID, 2000 VALUE FROM DUAL
UNION ALL
SELECT 300 ID, 3000 VALUE FROM DUAL
UNION ALL
SELECT 400 ID, 4000 VALUE FROM DUAL
UNION ALL
SELECT 500 ID, 5000 VALUE FROM DUAL
UNION ALL
SELECT 600 ID, 6000 VALUE FROM DUAL
UNION ALL
SELECT 700 ID, 7000 VALUE FROM DUAL
UNION ALL
SELECT 800 ID, 8000 VALUE FROM DUAL
PERSON_LINK AS (SELECT 100 ID, 200 LINK_ID FROM DUAL
UNION ALL
SELECT 200 ID, 100 LINK_ID FROM DUAL
UNION ALL
SELECT 200 ID, 300 LINK_ID FROM DUAL
UNION ALL
SELECT 300 ID, 200 LINK_ID FROM DUAL
UNION ALL
SELECT 200 ID, 800 LINK_ID FROM DUAL
UNION ALL
SELECT 800 ID, 200 LINK_ID FROM DUAL
UNION ALL
SELECT 300 ID, 700 LINK_ID FROM DUAL
UNION ALL
SELECT 700 ID, 300 LINK_ID FROM DUAL
UNION ALL
SELECT 400 ID, 500 LINK_ID FROM DUAL
UNION ALL
SELECT 500 ID, 400 LINK_ID FROM DUAL
SPOUSE AS (SELECT 400 ID, 500 SPOUSE_ID FROM DUAL
UNION ALL
SELECT 500 ID, 400 SPOUSE_ID FROM DUAL
UNION ALL
SELECT 200 ID, 500 SPOUSE_ID FROM DUAL
UNION ALL
SELECT 500 ID, 200 SPOUSE_ID FROM DUAL
UNION ALL
SELECT 100 ID, 600 SPOUSE_ID FROM DUAL
UNION ALL
SELECT 600 ID, 100 SPOUSE_ID FROM DUAL)
SELECT *
FROM person, person_link, spousei am trying to implement this logic but i am no where near to the reqired output
SELECT ID, ID ID2, VALUE FROM person
UNION
SELECT a.ID, LINK_ID ID2, VALUE
FROM Person a, person_link b
WHERE a.id = b.id
UNION
SELECT a.ID, spouse_id ID2, VALUE
FROM Person a, spouse b
WHERE a.id = b.idEdited by: new learner on Aug 24, 2012 6:05 AM
Edited by: new learner on Aug 24, 2012 7:56 AM
Does this make sense:
with
person(rid,the_value) as
(select 100,1000 from dual union all
select 200,2000 from dual union all
select 300,3000 from dual union all
select 400,4000 from dual union all
select 500,5000 from dual union all
select 600,6000 from dual union all
select 700,7000 from dual union all
select 800,8000 from dual
person_link(rid,link_id) as
(select 100,200 from dual union all
select 200,100 from dual union all
select 200,300 from dual union all
select 200,800 from dual union all
select 300,200 from dual union all
select 300,700 from dual union all
select 400,500 from dual union all
select 500,400 from dual union all
select 700,300 from dual union all
select 800,200 from dual
spouse(rid,spouse_id) as
(select 100,600 from dual union all
select 200,500 from dual union all
select 400,500 from dual union all
select 500,200 from dual union all
select 500,400 from dual union all
select 600,100 from dual
person_link_x(rid,link_id) as
(select 100,200 from dual union all
select 200,300 from dual union all
select 200,800 from dual union all
select 300,700 from dual union all
select 400,500 from dual
person_link_x as
(select rid,link_id
from person_link
where rid < link_id
spouse_x(rid,spouse_id) as
(select 100,600 from dual union all
select 200,500 from dual union all
select 400,500 from dual
spouse_x as
(select rid,spouse_id
from spouse
where rid < spouse_id
)the order of rows is changed for readability
the <tt> factors person_link_x </tt> and <tt> spouse_x </tt> are there to eliminate cycles
using <tt> factors person_link_x </tt> by following links (connect by ...) you can get the following trees (hierarchies) - No Database at hand to do it myself
1: 100 200 200 300 400
| | | | |
2: 200 300 800 700 500
/ \ |
3: 300 800 700
|
4: 700thus you discover there are just two individuals in the table denoting the same persons as the trees in the middle are all subtrees of the first tree.
taking the root values 100 and 400 as person ids and replacing all "alias" values with the corresponding root values in spouse_x you get
spouse_x(rid,spouse_id) as
(select 100,600 from dual union all
select 100,400 from dual union all
select 400,400 from dual
)the last row makes no sense (data entry error, ... ) and: either she has two husbands or he has two wives ;)
Regards
Etbin
Similar Messages
-
How to get the total record count in ODI
Hi
I have the interface the are file to DB.
The format is like this..
HEADER
DETAIL
TRAILER
Now will write the contains of file to DB,
But i have to insert the total count ie numberof record written from file to DB in my Trailer record.
can you tell me how can i get the total count of records in file and write it to trailer?
Also, I want the interface to rollback the data if something fails will loading the data from file., ie. if there are 100 records in file and 50 got transfer and something fails i want to rollabck the 50 records from DB.???
Thanks :)Hi
You can design a flow for Full load flow and incremental flow from flat file to Table.
Create a table at target database like.. (create table with last_execution and palce the V_FULL_LOAD value and LAST_EXECUTION_DT columns in last_execution table)
Add faltfile as table in model, create a variable as V_FULL_LOAD and make sure that the default values is 01-01-1900
Create one more variable like V_LAST_EXECUTION_DATE (in this variable write a case statement that if V_FULL_LOAD value is 'Y" then full load should happen and same time you should check that V_FULL_LOAD column is balnk then write insert statment else write update statement to update last_execution_dt column, similar for 'N')
please provide your *personal mail ID*, i will send a doc file realted to your query.
we have to tables present in work repository (SNP_STEP and STEP_LOG tables) using tables we can get how many records are inserted/updated and we can find how many records are not transfer and gor error.
Thanks
Phani -
How can I get the total "values" in a hashtable ?
i know that i can get the total values in a hashtable by hash.elements() method. It returns an
enumeration with all the values present in this hashtable. this is fine upto here.
Now the preoblem is:
According to what rule this enumeration will be returned. I mean..
If i added in key A with value a,
then key B with value b;
then key C with value c;
then key D with value d;
(They all are objects of type String)
now i call ... hash.elements(); Suppose it returns Enumeration enum;.
Now in what order they all are present in this hashtable.
Meaning is that if i move arond this enum in what sequence they all will be returned.
option A ) In the same order as they were inserted in hashtable.
option B ) According to LIFO;
option C) There is no fix rules , simply it return all the elements and u cannot judge that the first element in enum was really the first element inserted in the hashtable and the second element of enum was really the second element inserted in the hashtable.
What do u think..which option is correct ?
Ny idea will highly appreciated.
Thanks in advance.
Sanjeev Dhimanhi, i am again..
boss ! this is not true..u just change the order and or change the keys and something like ...
"Sanjeev", "hello"
"Dhiman", "hi"
"Technosys" ,"Services"
u will find that its not LIFO..really i was thinking before coding my project that option A is correct and with knowledge i wrote 3 - 4 classes but when i run the programm its starts throwing errors.
so, i posted this question. I think "apppu" is right.
I think , firstly hash is calculated for each value and that value is returned which can be received in a fastest way and hence not necessarily in LIFO and FIFO..
Thanks to u also as u gave ur precious time for me.
Once again.
Thank you very much.
Sanjeev Dhiman -
How To Get The Total Delivered Quantity of a Sales Order
Hello All,
I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
Regards,
Pavani.Hi
Check the Table:
VBEP - Sales Document: Schedule Line Data.
Inside the table check the Quantity Fields.
Regards,
Sreeram -
How to get the total execution time from a tkprof file
Hi,
I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
. The sample of tkprof is given below.
SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
SELECT POSTED_FLAG
FROM
AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
(NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
(NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 442 0.08 0.13 0 0 0 0
Fetch 963 0.22 4.72 350 16955 0 521
total 1406 0.31 4.85 350 16955 0 521
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 173 (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 UNION-ALL (cr=38 pr=3 pw=0 time=139 us)
1 1 1 TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
1 1 1 INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
0 0 0 NESTED LOOPS (cr=33 pr=3 pw=0 time=20897 us)
0 0 0 NESTED LOOPS (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
1 1 1 TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
0 0 0 INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
0 0 0 TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 350 0.15 4.33
Disk file operations I/O 3 0.00 0.00
latch: shared pool 1 0.17 0.17
********************************************************************************user13019948 wrote:
Hi,
I have a tkprof file. How can I get the total execution time.
call count cpu elapsed disk query current rows
total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above -
How to get the total number of pages printed in a report?
Hi All,
I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
Thanks,
Srini.i found the solution, thanks
-
How to get the total pages in ALV report?
Hi guys,
Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.automatic display total page.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
r -
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
-
Is it possible to get the total value for column and assign to other field
hi,
Is it possible to get the total value of particular column and assign that value to another field?
How to do this?
Thanks in advance,
SANAfridi,
My extended controller class code:
package xxhr.oracle.apps.per.selfservice.appraisals.webui;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.per.selfservice.appraisals.webui.OverviewPageCO;
import oracle.jbo.Row;
public class XXOverviewPageCO extends OverviewPageCO {
public XXOverviewPageCO() {
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("XXCalcAvgButton")!=null){
throw new OAException("welcome",OAException.INFORMATION);
//getSum(pageContext, webBean);
private String getSum(OAPageContext pageContext, OAWebBean webBean) {
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject ratvo = (OAViewObject)am.findViewObject("CompetenceElementsVO");
OAViewObject valuevo = (OAViewObject)am.findViewObject("PerRatingLevelsVO");
Integer Sum = new Integer("0");
int numofRows = ratvo.getRowCount();
for (int x = 0; x < numofRows; x++) {
Object Rating =
ratvo.getRowAtRangeIndex(x).getAttribute("ProficiencyLevelId");
if(Rating!=null) {
int numofRowsforvalue = valuevo.getRowCount();
for(int i=0;i<numofRowsforvalue;i++){
if(valuevo.getRowAtRangeIndex(i).getAttribute("RatingLevelId").equals(Rating)){
Object StepValue=valuevo.getRowAtRangeIndex(i).getAttribute("StepValue");
Sum = new Integer(StepValue.toString()) + Sum;
OAMessageStyledTextBean displayCompAvg=(OAMessageStyledTextBean)webBean.findChildRecursive("XXCompAvgText");
displayCompAvg.setValue(pageContext,Sum);
return null;
But it is not affecting in the page.
Can you please tell me what is the problem. -
Getting the total number of pages inside a report
Post Author: jportelas
CA Forum: .NET
Good afternoon:
How can I get the total number of pages inside a reportdocument object???
I'm currently using VS.NET 2005.
Thanks for the help.There's no public API to get this info directly from RAS.
Option is to either walk through pages in the CrystalReportViewer till you get to the end, or use the non-public not-for-public use API:
int lastPageNumber = ((com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource) reportClientDocument.getReportSource()).getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
Sincerely,
Ted Ueda -
User Exit or BADI to get the Total Tax Amount in a New PO (ME21M)
Hi,
Can somebody tell me any user exit or BADI I can look at to get the total Tax amount of a new PO, after user press SAVE button and before data is written to tables (EKKO, EKPO etc).
Key requirement here is AFTER save button is pressed and before data is written to tables. I want to do some validation before data goes in the table.
Thanks in advance. Please help me.Dear MiniSap..
Maybe you can use function PRICING or CALCUALTE_TAX_ITEM .
Best regards,
Ale -
I got a plain macbook (not a pro) that I got on 2010 and I've lost the CD's that came with it, can I still download Windows7? If yes, can someone please send me a link where I can get the windows? Thanks
Thanks stevejobsfan0123 for the reply, I know I have to buy a disk but when I searched for it on amazon I read many reviews about saying that either it is inadequate or that it's a scam. Do you know any website where I can get a legitimate disk of windows7?
-
How to get the total bytes read by windows media palyer?
Using the wmp activeX control to play an avi format file, and using cvi's activeX tools to generate a wmp control. It can play. I'd like to know which method can get the bytes that read by wmp?
Thanks.user13019948 wrote:
Hi,
I have a tkprof file. How can I get the total execution time.
call count cpu elapsed disk query current rows
total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above -
Please help me in Merging the Persons Together by assining the same id
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Please Help Me
We_addr_id defines the Address.
We_pid Defines the Person.
i am planning to merge the same person together by assigining the same we_pid.
WITH merge_names AS (SELECT 1000 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
'L' middle_name,
NULL Suffix FROM DUAL
UNION ALL
SELECT 1001 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
'LARRY' middle_name,
NULL Suffix
FROM DUAL
UNION ALL
SELECT 1002 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
NULL middle_name,
NULL Suffix
FROM DUAL
UNION ALL
SELECT 33065 WE_PID,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
NULL middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 8450527 WE_PID_LINK,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
'A' middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 373453429 WE_PID_LINK,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
NULL middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 442303062 WE_PID,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
'S' middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 30088775765 WE_PID,
990000878 We_addr_id,
'BILL' last_name,
'RAY' first_name,
'M' middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775766 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
NULL middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775767 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
'MAX' middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775768 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
'MICHEL' middle_name,
NULL SUffix
FROM DUAL
UNION ALL
SELECT 399998776 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
NULL middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 399998777 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'J' middle_name,
'JR' SUFFIX
FROM DUAL
UNION ALL
SELECT 399998778 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'JAMES' middle_name,
'SR' SUFFIX
FROM DUAL
UNION ALL
SELECT 399998779 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'JACK' middle_name,
'JR' SUFFIX
FROM DUAL)
SELECT *
FROM merge_names
o/p Required
WE_PID WE_ADDR_ID FIRST_NAME LAST_NAME MIDDLE_NAME SUFFIX MERGE_WEPID
1000 999898989 DONALD BOATRIGHT L 1000
1001 999898989 DONALD BOATRIGHT LARRY 1000
1002 999898989 DONALD BOATRIGHT 1000
33065 99000000 LUNA JOSE 33065
8450527 99000000 LUNA JOSE A 8450527
373453429 99000000 LUNA JOSE 33065
442303062 99000000 LUNA JOSE S 442303062
30088775765 990000878 BILL RAY M 30088775765
30088775766 990000878 RAY BILL 30088775766
30088775767 990000878 RAY BILL MAX 30088775767
30088775768 990000878 RAY BILL MICHEL 30088775768
399998776 9901111 ELLISON LAWRANCE 399998776
399998777 9901111 ELLISON LAWRANCE J JR 399998777
399998778 9901111 ELLISON LAWRANCE JAMES SR 399998778
399998779 9901111 ELLISON LAWRANCE JACK JR 399998777ThanksMissing information on how you identify same person.
I'm going with an assumption that same person is identified by first_name,last_name,middle_name and suffix.
WITH merge_names AS (SELECT 1000 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
'L' middle_name,
NULL Suffix FROM DUAL
UNION ALL
SELECT 1001 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
'LARRY' middle_name,
NULL Suffix
FROM DUAL
UNION ALL
SELECT 1002 We_pid,
999898989 We_addr_id,
'DONALD' first_name,
'BOATRIGHT' last_name,
NULL middle_name,
NULL Suffix
FROM DUAL
UNION ALL
SELECT 33065 WE_PID,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
NULL middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 8450527 WE_PID_LINK,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
'A' middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 373453429 WE_PID_LINK,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
NULL middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 442303062 WE_PID,
99000000 We_addr_id,
'LUNA' First_name,
'JOSE' last_name,
'S' middle_name,
NULL suffix
FROM DUAL
UNION ALL
SELECT 30088775765 WE_PID,
990000878 We_addr_id,
'BILL' last_name,
'RAY' first_name,
'M' middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775766 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
NULL middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775767 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
'MAX' middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 30088775768 WE_PID,
990000878 We_addr_id,
'RAY' first_name,
'BILL' last_name,
'MICHEL' middle_name,
NULL SUffix
FROM DUAL
UNION ALL
SELECT 399998776 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
NULL middle_name,
NULL SUFFIX
FROM DUAL
UNION ALL
SELECT 399998777 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'J' middle_name,
'JR' SUFFIX
FROM DUAL
UNION ALL
SELECT 399998778 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'JAMES' middle_name,
'SR' SUFFIX
FROM DUAL
UNION ALL
SELECT 399998779 WE_PID,
9901111 We_addr_id,
'ELLISON' first_name,
'LAWRANCE' last_name,
'JACK' middle_name,
'JR' SUFFIX
FROM DUAL)
SELECT we_pid,we_addr_id ,first_name,last_name,middle_name,suffix,min(we_pid) over (partition by first_name,last_name,middle_name,suffix) merge_wepid
FROM merge_names m -
Getting the total number of the parameters that are not null
hi,
i can get all the parameter names of a http request using this statement:
Enumeration e=request.getParameterNames();if i want to know how many parameters there are in the request
i just need to count the total number of elements in the enumeration
but how can i get the total number of parameters which are not null?
thanks in advancebut how can i get the total number of parameters
which are not null?Only one way that I know of... loop over the parameter names and check if they are null or not!!!!!!!!!!!!!!!!!!!!!
xH4x0r
Maybe you are looking for
-
Need help on syntax of PL/SQL Table type
Hi Everyone I have the following Procedure DECLARE TYPE ln_empno IS TABLE OF NUMBER; ln_empno1 ln_empno; dml_errors EXCEPTION; PRAGMA EXCEPTION_INIT (dml_errors, -24381); ERRORS NUMBER; BEGIN UPDATE emp SET empno = empno RETURN empno BULK COLLECT INT
-
Hi, In the Interface Mapping there is an option to test the map. But it is not for the ABAP Mapping. How can we test ABAP Mapping ? rgds, RM
-
Missing Process order components in product View
Dear all, We have a problem with Process order in APO. We have created a planned order in APO and converted to process order . All the components of the order are APO relevant and PPM is having all the components . When We create the planned order
-
About pernr orgeh on selection screen (PNP LDB)
Hi All, ITS URGENT..... i am tryieng to retrive the holiday compensation data from P0001 P2001 infotypes i got screen but when i am tryieng to access the data by using person number (PERNR) WITHOUT GIVING ANY INFORMATION its coming out of the GET PER
-
Characteristic texts from Query in APD
Hello Comiunity, In BI 7.0 Iu2019ve created an Query. This Query shows (long) texts for characteristic. When I use the Query in BEx Web Analyzer and BEx Analyzer these texts are displayed correctly. Now I have to use the Query as a source in an analy