Author |
Message |
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13994 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 9:07 am: |
|
Aggi_pidugu:Nuvvu adgina question ki correlated subquery avasarama ani sasibabu adagamannadu
Avasaram ledhu aaa? mari how? Super Star Prince Mahesh Rocks !
|
Aggi_pidugu
Bewarse Legend Username: Aggi_pidugu
Post Number: 30252 Registered: 05-2006 Posted From: 66.193.93.3
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 9:05 am: |
|
Onlyniru3:And moreover nenu use chestundhi netezza kaabati coorelated sub querys work kaadhu... inka vere method emanna vundhi emo ani thed vesaanu...
Nuvvu adgina question ki correlated subquery avasarama ani sasibabu adagamannadu ITALIAN MAFIASO
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13992 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 8:52 am: |
|
Aggi_pidugu:
Sasibabu:
Query ela raayali anthe Informatica developer aa ani adugutaar enti Annai's.. Informatica use chesi naaku kavalsina vidhamga output techukunna.. Kaani query ela raayali ani na doubt ikkada.....And moreover nenu use chestundhi netezza kaabati coorelated sub querys work kaadhu... inka vere method emanna vundhi emo ani thed vesaanu... Super Star Prince Mahesh Rocks !
|
Sasibabu
Mudiripoyina Bewarse Username: Sasibabu
Post Number: 4943 Registered: 10-2010 Posted From: 72.181.164.235
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 8:31 am: |
|
Aggi_pidugu:
Jest; oodigam Batch
|
Sasibabu
Mudiripoyina Bewarse Username: Sasibabu
Post Number: 4942 Registered: 10-2010 Posted From: 72.181.164.235
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 8:30 am: |
|
Onlyniru3:
idhi oka requirement ...dheeniki nuvvu thed esi adagatam Jest; oodigam Batch
|
Aggi_pidugu
Bewarse Legend Username: Aggi_pidugu
Post Number: 30250 Registered: 05-2006 Posted From: 66.193.93.3
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 8:27 am: |
|
Onlyniru3:edhi annai.. meeru cheppindhi?
nuvvu informatica developer va ITALIAN MAFIASO
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13991 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 7:51 am: |
|
Codes:nenu seppindi adee kadha..
edhi annai.. meeru cheppindhi? Super Star Prince Mahesh Rocks !
|
Codes
Bewarse Legend Username: Codes
Post Number: 62619 Registered: 05-2006 Posted From: 212.60.115.186
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:48 am: |
|
nenu seppindi adee kadha.. I have no budget for other people's faith in humanity.
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13990 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:43 am: |
|
Exists clause Use chesthe work avutundhi anukunta Neteeza lo.. Super Star Prince Mahesh Rocks !
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13989 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:43 am: |
|
Thanks Kothi annai ... Actual ga meeru cheppindhi correct ... Adi oracle lo work avutundhi... Nenu Netezza DB vaadutunna... Error vachindhi Error: ERROR: (2) This form of correlated query is not supported - consider rewriting (State:HY000, Native Code: 2D) Super Star Prince Mahesh Rocks !
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13988 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:39 am: |
|
Thank You KC annai Super Star Prince Mahesh Rocks !
|
Kothi
Mudiripoyina Bewarse Username: Kothi
Post Number: 2507 Registered: 09-2004 Posted From: 115.112.231.105
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:37 am: |
|
SELECT * FROM SourceTable A WHERE eff_ts<> (SELECT MAX(eff_ts) FROM SourceTable B WHERE A.SALES_CRM_OPPTY_ID= B.SALES_CRM_OPPTY_ID GROUP BY SALES_CRM_OPPTY_ID) idi try cheyyi Niru tammi |
Kingchoudary
Bewarse Legend Username: Kingchoudary
Post Number: 66476 Registered: 03-2004 Posted From: 62.12.14.24
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:28 am: |
|
Penkulu naa pakka cubic lo kukoni call lo vunnadu, velli cheppostha Niru thammi yee thread chudamani.... |
Codes
Bewarse Legend Username: Codes
Post Number: 62618 Registered: 05-2006 Posted From: 212.60.115.186
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:26 am: |
|
select eff_ts from x where eff_ts not in (Select max(eff_ts) from x)ยจ itta try seyyi I have no budget for other people's faith in humanity.
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13987 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:22 am: |
|
kudaratam ledhu annai.. manam komcham week SQL lo.... Super Star Prince Mahesh Rocks !
|
Codes
Bewarse Legend Username: Codes
Post Number: 62617 Registered: 05-2006 Posted From: 212.60.115.186
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:17 am: |
|
Sub Query rayochu emo kadha "Not In" ani.. I have no budget for other people's faith in humanity.
|
Onlyniru3
Bewarse Legend Username: Onlyniru3
Post Number: 13986 Registered: 08-2009 Posted From: 216.105.250.4
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, September 21, 2011 - 6:04 am: |
|
Consider a scenario - Source is like below SALES_CRM_OPPTY_ID||eff_ts ||exprtn_ts ||curr_ind 0063000000A6ANEAA3||2007-06-06 07:36:45||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2007-09-12 21:54:48||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2007-09-13 21:46:02||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2008-10-02 20:56:33||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2008-10-04 09:11:18||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2009-08-24 22:13:44||9999-12-31 00:00:00||Y From the above I need to get all the records except last record which has max(eff_ts). So for a particular sales_crm_oppty_id I need to get all the records except the record having max(eff_ts ) So output should be like this SALES_CRM_OPPTY_ID||eff_ts ||exprtn_ts ||curr_ind 0063000000A6ANEAA3||2007-06-06 07:36:45||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2007-09-12 21:54:48||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2007-09-13 21:46:02||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2008-10-02 20:56:33||9999-12-31 00:00:00||Y 0063000000A6ANEAA3||2008-10-04 09:11:18||9999-12-31 00:00:00||Y 420 uncle, Stewie, Pokiri, Dobbey etc etc annai's help me.. Super Star Prince Mahesh Rocks !
|