Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets
Bewarse Talk Discussion Board * Archives - 2010 * Cine Talk - Reviews, Gossips, Insider Info etc. * Archive through March 30, 2010 * SQL Query Help < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Nitho
Celebrity Bewarse
Username: Nitho

Post Number: 8121
Registered: 12-2004
Posted From: 204.17.116.130

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:43 pm:    Edit Post Delete Post View Post/Check IP


Tingari_xx:

OM mama ni em annav ninna




nenu emi ana ledhu sodara.. kasepu uthithi fighting chesukunnam..

OM baa office lo busy ayyi untadu.. lekha pothe DB loki rakha povatama... food ayyina manestadu kani,,, DB loki rakha pothe nidra pattadu baa ki...
Top of pagePrevious messageNext messageBottom of page Link to this message

Tingari_xx
Bewarse Legend
Username: Tingari_xx

Post Number: 24987
Registered: 08-2006
Posted From: 205.157.110.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:41 pm:    Edit Post Delete Post View Post/Check IP

nitho ba
OM mama ni em annav ninna
i was NOT a bewarse, and then i saw Gosi post
Top of pagePrevious messageNext messageBottom of page Link to this message

Nitho
Celebrity Bewarse
Username: Nitho

Post Number: 8119
Registered: 12-2004
Posted From: 204.17.116.130

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:40 pm:    Edit Post Delete Post View Post/Check IP


Rangupadudhi:

om lekapoye sariki meeku thosthunnattu




Om baa eedhi.. emi ayyi poyyadu..

ninna kasepu fight chesa OM baa tho..
Top of pagePrevious messageNext messageBottom of page Link to this message

Rangupadudhi
Bewarse Legend
Username: Rangupadudhi

Post Number: 11317
Registered: 03-2008
Posted From: 24.209.32.90

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:27 pm:    Edit Post Delete Post View Post/Check IP


Nitho:

ayyithe aa chat lo matladu ko vachu kadha.. malli DB enti mee gola,,




nitho baa om lekapoye sariki meeku thosthunnattu ledhu eeyala
Best Upcoming Bewarse Award Winner for 2008
Top of pagePrevious messageNext messageBottom of page Link to this message

Nitho
Celebrity Bewarse
Username: Nitho

Post Number: 8118
Registered: 12-2004
Posted From: 204.17.116.130

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:25 pm:    Edit Post Delete Post View Post/Check IP


Littlestar:

roju chat loo chava dobutu.. maalli mail id antava..




ayyithe aa chat lo matladu ko vachu kadha.. malli DB enti mee gola,,
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12973
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:21 pm:    Edit Post Delete Post View Post/Check IP

orni nuvva mama...kiki...sare YM lo cheptha :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Littlestar
Pilla Bewarse
Username: Littlestar

Post Number: 171
Registered: 11-2005
Posted From: 12.145.34.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:06 pm:    Edit Post Delete Post View Post/Check IP

nee yenkama ravan,

roju chat loo chava dobutu.. maalli mail id antava.. ninnu

aa denver project ee ga chesidi nuvu.. think chesi yahoo loo chat ki ra... roju dobinchukontavu ga ..mama maama ani.. malli mail id adugutava..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12972
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 12:39 pm:    Edit Post Delete Post View Post/Check IP


Littlestar:

hey ravan,

nee gola emitooo ardam kaadu naaku


clear ga mail cheyi.. SQLs pamputa




Oracle apps lo chesthunnara mama meeru? mail id enti cheppandi.
Top of pagePrevious messageNext messageBottom of page Link to this message

Littlestar
Pilla Bewarse
Username: Littlestar

Post Number: 169
Registered: 11-2005
Posted From: 12.145.34.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 12:12 pm:    Edit Post Delete Post View Post/Check IP

hey ravan,

nee gola emitooo ardam kaadu naaku


clear ga mail cheyi.. SQLs pamputa..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nitho
Celebrity Bewarse
Username: Nitho

Post Number: 8111
Registered: 12-2004
Posted From: 204.17.116.130

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 11:53 am:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:




Inkko sari SQL help ani DB lo thadu vesavo..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12971
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 11:20 am:    Edit Post Delete Post View Post/Check IP

thank you littlestar and sensation mamalu...chala use ayyay ee queries. :-) inka evo adigaru..open orders, open invoices, active services leni accounts..so chosthunna inka adi. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Littlestar
Pilla Bewarse
Username: Littlestar

Post Number: 168
Registered: 11-2005
Posted From: 76.172.54.225

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:24 am:    Edit Post Delete Post View Post/Check IP

customer may have multiple accounts like pay account, shipping and etc..

Let me know, what exactly you are trying to achieve..

like party merging etc.. based on that i might throw some idea..

based on the provided sql you will get the complete customer info..

in your sql you missed the below tables
hz_cust_acct_sites_all , hz_cust_site_uses_all

Note:
you can tweek the sql accordinly like having count(*)>1 etc...
Top of pagePrevious messageNext messageBottom of page Link to this message

Littlestar
Pilla Bewarse
Username: Littlestar

Post Number: 167
Registered: 11-2005
Posted From: 76.172.54.225

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, March 30, 2010 - 2:12 am:    Edit Post Delete Post View Post/Check IP

SELECT hp.party_name , hp.party_number , hca.account_number , hca.cust_account_id , hp.party_id , hps.party_site_id , hps.location_id , hl.address1 , hl.address2 , hl.address3 , hl.city , hl.state , hl.country , hl.postal_code , hcsu.site_use_code , hcsu.site_use_id , hcsa.bill_to_flagFROM hz_parties hp , hz_party_sites hps , hz_locations hl , hz_cust_accounts_all hca , hz_cust_acct_sites_all hcsa , hz_cust_site_uses_all hcsuWHERE hp.party_id = hps.party_idAND hps.location_id = hl.location_idAND hp.party_id = hca.party_idAND hcsa.party_site_id = hps.party_site_idAND hcsu.cust_acct_site_id = hcsa.cust_acct_site_idAND hca.cust_account_id = hcsa.cust_account_idAND hca.account_number = :customer_number
Top of pagePrevious messageNext messageBottom of page Link to this message

Sensation
Yavvanam Kaatesina Bewarse
Username: Sensation

Post Number: 2384
Registered: 12-2004
Posted From: 24.30.37.9

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:05 pm:    Edit Post Delete Post View Post/Check IP

Following query should give party tied to more than one account number and having different status. when the statuses are different, Iam assuming party is tied to more than one account.

select
count( distinct ca.status ),
p.party_name
from
APPS.hz_cust_accounts ca,
apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where ca.party_id = p.party_id
and p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
group by p.party_name
having count(distinct ca.status) > 1



incase you want the party that is tied to multiple accounts and you want the active account information, here is the query

select
sub.party_name,
hca.account_number
from
apps.hz_cust_accounts hca
(select
count( distinct ca.status ),
p.party_name,
p.party_id
from
APPS.hz_cust_accounts ca,
apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where ca.party_id = p.party_id
and p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
group by p.party_name,p.party_id
having count(distinct ca.status) > 1 ) sub
where sub.party_id=hca.party_id and
hcs.status='A'
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12956
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 3:33 pm:    Edit Post Delete Post View Post/Check IP


Gudivada04:

bemmam, mothaniki DB vaallatho day to day work antha laaginchesthannav ga..




nerchukuntunna mama work
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudivada04
Celebrity Bewarse
Username: Gudivada04

Post Number: 7228
Registered: 09-2004
Posted From: 66.244.207.150

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 3:31 pm:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:




bemmam, mothaniki DB vaallatho day to day work antha laaginchesthannav ga..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12955
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 3:29 pm:    Edit Post Delete Post View Post/Check IP


Sensation:

RB,
DO you want same paty name that is tied to more than two account numbers? If thats what you want




mama...mee query work ayyindi..ippudu oka account active ga undi...vere account inactive ayina account unna party names ee ravali ante ela? ca.status is A or I untay? ippudu query ela marchali?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12952
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 12:29 pm:    Edit Post Delete Post View Post/Check IP


Sensation:

RB,
DO you want same paty name that is tied to more than two account numbers? If thats what you want




yaa avunu mama...mee query try chesanu..work ayyindi :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Sensation
Yavvanam Kaatesina Bewarse
Username: Sensation

Post Number: 2380
Registered: 12-2004
Posted From: 24.30.37.9

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:48 am:    Edit Post Delete Post View Post/Check IP

RB,
DO you want same paty name that is tied to more than two account numbers? If thats what you want

it will be like this

select
count( distinct ca.account_number ),
p.party_name
from
APPS.hz_cust_accounts ca,
apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where ca.party_id = p.party_id
and p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
group by p.party_name
having count(distinct ca.account_number) > 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12076
Registered: 01-2009
Posted From: 199.173.224.32

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:34 am:    Edit Post Delete Post View Post/Check IP


Blazewada:

innerhtml antey im\nnerhtml.content = responsetext antam ade kada, antey responsetext is html content kada, antey html tags in form of string kada.


yeah query vacina data ni java script lo html tags lo convert chesukuni innerHtml.content ki set cheyyali..
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Blazewada
Celebrity Bewarse
Username: Blazewada

Post Number: 8544
Registered: 08-2008
Posted From: 218.186.8.238

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:06 am:    Edit Post Delete Post View Post/Check IP


Onlymovies:

nenu general ga innerHTML value update chesevadini




innerhtml antey im\nnerhtml.content = responsetext antam ade kada, antey responsetext is html content kada, antey html tags in form of string kada.

konchem kudirithey oka try chestaara? it will be helpful for me. chaala load ekkuvain di, chooddamanana time kudaraltedu adi. andukani.
Give me another Chance.. I wanna grow up one again
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12074
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:02 am:    Edit Post Delete Post View Post/Check IP


Blazewada:

as of now, ajax:select vadutnna, but aid javas crit kinda convert ayyaka, internal gaa class.create ane functtioncall avuddi, akkada class not defined ane javascroipt esrror vastondi.coudlnt debug that one.


nenu ajax tags vadaledu baa..
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12073
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 11:02 am:    Edit Post Delete Post View Post/Check IP


Blazewada:

its like page auto refresh for every 10 seconds , ade window refersh appudu ajx call avvali.

table contents are editable, antey edited table contents save chesi amlley same table relaod chesedappudu, ooonly table load avvali, nnot entire page cosntituents.


nenu general ga innerHTML value update chesevadini, table refresh kosam.. ajax vaadi 2 years ayyindi.. so exact ga gurtu ledu..
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Blazewada
Celebrity Bewarse
Username: Blazewada

Post Number: 8543
Registered: 08-2008
Posted From: 218.186.8.238

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:57 am:    Edit Post Delete Post View Post/Check IP


Onlymovies:

eppudu update avvali table content? i mean ee event trigger chestundi ee table content change ..




its like page auto refresh for every 10 seconds , ade window refersh appudu ajx call avvali.

table contents are editable, antey edited table contents save chesi amlley same table relaod chesedappudu, ooonly table load avvali, nnot entire page cosntituents.

prastutanii iframe vadutunnam, but ajax anedi impplement cheyyali . drop dowwn avaraku


one more problem:

as of now, ajax:select vadutnna, but aid javas crit kinda convert ayyaka, internal gaa class.create ane functtioncall avuddi, akkada class not defined ane javascroipt esrror vastondi.coudlnt debug that one.



http://ajaxtags.sourceforge.net/advanced.html
Give me another Chance.. I wanna grow up one again
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12950
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:52 am:    Edit Post Delete Post View Post/Check IP

adi konchem theda kottidhi..this will work :-)

select c.account_number, p1.party_name, c.status from APPS.hz_cust_accounts c, apps.hz_parties p1
where p1.party_name in (SELECT p.party_name
FROM apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
having count(party_name) > 1
group by p.party_name)
and c.party_id = p1.party_id
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12060
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:51 am:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:


query chooste work avutadi annattu gane vundi..test chesi choodu..
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12949
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:50 am:    Edit Post Delete Post View Post/Check IP

idi correct oo kado test cheyyali..kani test case ki oka party name chaalu annaru ani mundu duplicate party names kanukkoni okati thesukoni different account numbers unnayemo chosi ichesa aa name ni.
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12059
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:50 am:    Edit Post Delete Post View Post/Check IP


Blazewada:

OMeesh, struts ajax implementation lo. oka html table special ga refresh chese tags emunnayi, ajax:htmlcontent akundaa, i just want to take table id and refresh the content inthat table itself.


eppudu update avvali table content? i mean ee event trigger chestundi ee table content change ..
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12948
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:49 am:    Edit Post Delete Post View Post/Check IP

select c.account_number, p1.party_name, c.status from APPS.hz_cust_accounts c, apps.hz_parties p1
where c.party_id in (SELECT p.party_id
FROM apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
having count(party_name) > 1
group by p.party_id)
and c.party_id = p1.party_id
Top of pagePrevious messageNext messageBottom of page Link to this message

Blazewada
Celebrity Bewarse
Username: Blazewada

Post Number: 8542
Registered: 08-2008
Posted From: 218.186.8.238

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:48 am:    Edit Post Delete Post View Post/Check IP


Onlymovies:




OMeesh, struts ajax implementation lo. oka html table special ga refresh chese tags emunnayi, ajax:htmlcontent akundaa, i just want to take table id and refresh the content inthat table itself.

manchi solutoin emanna untey cheppandi, inc ase teliyakapoina oka sari try cheynadi, POC lo implement ccheyyali andukani.
Give me another Chance.. I wanna grow up one again
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12052
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:45 am:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:

verega workaround chesa mama...


ikkada post cheyy query..
i ll try to understand.. future lo use avvachu
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12947
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:44 am:    Edit Post Delete Post View Post/Check IP

hmm...verega workaround chesa mama...test chesthaniki oka party name chaalu annaru..so duplicate party_names query chesi oka name thesukoni dani account numbers multiple unnayani confirm chesukoni pampanu aa party name..inka req lo actual ga oka account inactive ga undi inkokati active ga undali..I mean active status unna sare activity undakodadu aa active ki..
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 12048
Registered: 01-2009
Posted From: 199.173.224.31

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:34 am:    Edit Post Delete Post View Post/Check IP

logic konchem complecated ga anipistundi..
naaku SQL anta baaga raadu, so i cannot help anukuntunna.. but aalcohista.. idea vaste chepta
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12946
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:29 am:    Edit Post Delete Post View Post/Check IP

idi correct eena...chala sepu execute avuthundi.

select DISTINCT
ca.account_number,
p.party_name
from
APPS.hz_cust_accounts ca,
apps.hz_parties p,
apps.hz_party_sites ps,
apps.hz_locations l
where ca.party_id = p.party_id
and p.party_id = ps.party_id
and ps.location_id = l.location_id
and l.COUNTRY = 'US'
and exists (select 'x' from APPS.hz_cust_accounts ca1, apps.hz_parties p1
where ca.account_number != ca1.account_number
-- and p.party_number != p1.party_number
and p.party_name = p1.party_name)
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 12945
Registered: 06-2004
Posted From: 169.143.0.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Monday, March 29, 2010 - 10:28 am:    Edit Post Delete Post View Post/Check IP

naaku two tables unnay....accounts a, parties p

indulo a.party_id = p.party_id

and p.party_name ane column undi and a.account_number ane column undi..ippudu naa req enti ante

find the same party_name with duplicate names but having different account_number?

nothing but same party_name undi different account_numbers unna party_names kavali?

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration