SQL help   Independent houses near kukatpally | Apartments in Pragathi Nagar | AndhraVaani.com | Log Out | Topics | Search
Register | Edit Profile

Bewarse Talk � Archives � Cine Talk - Reviews, Gossips, Insider Info etc. � Archive through April 15, 2006 � SQL help � Previous Next �

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

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1986
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 3:10 pm:   Edit PostDelete PostView Post/Check IP

Gosi naa peru meed akuda raasi paara dobbu

Hook naa ??
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18650
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 2:49 pm:   Edit PostDelete PostView Post/Check IP

babugaa....ettagaina roju DB kocchi SQL diskasing sesukuni oka nelalo oracle certipication raasi D'lani andaram sketch geesaam...
Top of pagePrevious messageNext messageBottom of page Link to this message

Babu
Desanike Pedda Bewarse
Username: Babu

Post Number: 8227
Registered: 06-2004
Posted From: 65.208.22.25
Posted on Monday, April 10, 2006 - 2:41 pm:   Edit PostDelete PostView Post/Check IP

ammo intha pedda thaada

idi bewarse db anukunnava
sql db anukunnava gosi ga
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18648
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 2:17 pm:   Edit PostDelete PostView Post/Check IP

swarry...not exists ni exists gaa maristhe saripothundhi kadhaa...thanx again maayyas
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18645
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 2:09 pm:   Edit PostDelete PostView Post/Check IP

OM,Nayak maayyas...meeru emi anukokapothe inkoka cinna kochen..

eee list of accounts ok...ippudu indulo lenivi kaavalante emi cheyyaali..ante idhi only eee rendu loss types unna accounts...oka vela ee rendu undi,inkaa emanna egestra losses unna accounts kaavalante elaaa... eee sql emanna modify cheyyacchaa easygaa..

SELECT DISTINCT a.Account, b.LossType
FROM Acc_Claim AS a, Loss AS b
WHERE b.LossType in ('TG', 'LK')
and a.Claim = b.Claim
and not exists (select 1 from Acc_Claim c, Loss d
where c.Claim = d.Claim
and a.Account = c.Account
and d.LossType not in ('TG', 'LK'));
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18644
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 1:59 pm:   Edit PostDelete PostView Post/Check IP

thanx OM maama....idhi work ayyindhi...

thanx Nayakudu maama...opigga nenicchina thokkalo requirementski manchi SQL raasinanduku
Top of pagePrevious messageNext messageBottom of page Link to this message

Okka_magaadu
Pilla Bewarse
Username: Okka_magaadu

Post Number: 54
Registered: 04-2004
Posted From: 157.91.44.1
Posted on Monday, April 10, 2006 - 1:46 pm:   Edit PostDelete PostView Post/Check IP

Idi Tru chey vasthundemo

SELECT DISTINCT a.Account, b.LossType
FROM Acc_Claim AS a, Loss AS b
WHERE b.LossType in ('TG', 'LK')
and a.Claim = b.Claim
and not exists (select 1 from Acc_Claim c, Loss d
where c.Claim = d.Claim
and a.Account = c.Account
and d.LossType not in ('TG', 'LK'));
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2490
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 1:43 pm:   Edit PostDelete PostView Post/Check IP

H1B meeda lenu.. L1 meeda vunna...

ippudu jump le inka
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18643
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 1:42 pm:   Edit PostDelete PostView Post/Check IP

naaku kooda nelaki 3500 kante raadhu taxulu poyaaka...madhyalo consultants baane dobbuthaaru paisalu
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1983
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 1:41 pm:   Edit PostDelete PostView Post/Check IP

H1 meeda untee jump ayipooo

Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1982
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 1:40 pm:   Edit PostDelete PostView Post/Check IP

ammo TCS aaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2488
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 1:33 pm:   Edit PostDelete PostView Post/Check IP

80 USD na naluka thadaruthundi... ante 14k / month
hehehe
ee TCS kode gallu

nelaki 3800 lo chethilo peduthunnaru mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1981
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 1:31 pm:   Edit PostDelete PostView Post/Check IP

nenu ETL informatica
brio kuda chestha.. datastage billing ela vundi amam... informatica ela vundi.

teliyadhu mama

nenu QA loo unnanu ..

konni places loo 75 -80 per hour undi mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2487
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 1:30 pm:   Edit PostDelete PostView Post/Check IP

gudiwada mama

daa

nenu ETL informatica
brio kuda chestha.. datastage billing ela vundi amam... informatica ela vundi...
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1980
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 1:29 pm:   Edit PostDelete PostView Post/Check IP

Seema gochi ki kaneellu emiti

Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18642
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 1:27 pm:   Edit PostDelete PostView Post/Check IP

Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1979
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 1:25 pm:   Edit PostDelete PostView Post/Check IP

nenu DW reporting side...nuvvu dentlo

nenu DW ETL side

nenu etl datastage loo unnanu


we are family annamata
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2481
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 1:22 pm:   Edit PostDelete PostView Post/Check IP

hehehehe

GODFATHER lo mikey dialogue laga

don't tell me it is not working... it insults my intelligence..


gochi mama next ninnu car lo champatame
hehehe
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2479
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 1:18 pm:   Edit PostDelete PostView Post/Check IP

appudu work ayyiddi chudu kinda ichhindi
bau alage execute cheyyi danni customize cheyyaku
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18641
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 1:17 pm:   Edit PostDelete PostView Post/Check IP

aunu maama....t1 to t2 one to many, claim no is unique
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2478
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 1:16 pm:   Edit PostDelete PostView Post/Check IP

babu t1, t2 ki madhya type of relationship enti...

one to many na...

t1 lo claim_no unique naa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2477
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 1:15 pm:   Edit PostDelete PostView Post/Check IP

babu gochi exact same execute cheyyi

select t1.account_no,
count(distinct decode(t2.loss_type, 'LG', '1', 'TG', '1', '2')),
count(distinct
case WHEN t2.loss_type not in ('LG', 'TG') THEN '2' END)

from t1,
t2
where t1.claim_no = t2.claim_no
group by
t1.account_no
having count(distinct decode(t2.loss_type, 'LG', '1', 'TG', '1', '2')) = 1
AND count(distinct
case WHEN t2.loss_type not in ('LG', 'TG') THEN '2' END) = 0
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18640
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 1:09 pm:   Edit PostDelete PostView Post/Check IP

mayyas...meeru cheppindhi correstgaa work avuthundhi for the case that all information is in one table... naa problem entante

account_no,
claim_no

ee rendu oka table t1 lo unnayi...

claim_no,loss Type,office

evanni inko table t2 lo edisaayi...

so nenippudu,


select t1.account_no,
t1.claim_no,
t2.loss_type
from t1,
t2
where t1.claim_no = t2.claim_no
and t2.loss_type in ('LG','TG')
and not exists ( select 'X' from t22 where t22.claim_no = t2.claim_no and loss_type not in ('LG','TG'))



ani raasthe raatalledhu...it is picking up all the accounts again...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2476
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 12:52 pm:   Edit PostDelete PostView Post/Check IP

gochi mama nenu kinda values ichha..

aa case lo only 1 ne vachhiddi mari naku aa query tho.. neevu yemi chesthunnavo asalu..

aa query ikkada paste cheyyi
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2475
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 12:50 pm:   Edit PostDelete PostView Post/Check IP

OM mama query use cheyyu work ayyiddi
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18639
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:48 pm:   Edit PostDelete PostView Post/Check IP

maama...

having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1
AND count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END) = 0

ilaaa raasthey raatalledhu maayya....for example oka caselo LG,MG unna kooda adhi return avuthondhi
Top of pagePrevious messageNext messageBottom of page Link to this message

Okka_magaadu
Pilla Bewarse
Username: Okka_magaadu

Post Number: 53
Registered: 04-2004
Posted From: 157.91.44.1
Posted on Monday, April 10, 2006 - 12:42 pm:   Edit PostDelete PostView Post/Check IP

Inthaku vachindaa? Last lo ')' miss ayyaa and "from" two times ichhaa?????
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2474
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 12:39 pm:   Edit PostDelete PostView Post/Check IP

OM mama
iraga kumavu ga
Top of pagePrevious messageNext messageBottom of page Link to this message

Okka_magaadu
Pilla Bewarse
Username: Okka_magaadu

Post Number: 52
Registered: 04-2004
Posted From: 157.91.44.1
Posted on Monday, April 10, 2006 - 12:37 pm:   Edit PostDelete PostView Post/Check IP

I think this might work if either of 'TG' or 'LK' is required and no other losstypes must be there.

select distinct account, losstype
from losstable t1
where t1.losstype in ('tg', 'lk')
and not exists (select 1 from losstable t2
from losstable t2
and t1.account = t2.account
and t2.losstype not in ('tg', 'lk')
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2471
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 12:21 pm:   Edit PostDelete PostView Post/Check IP

inko condition add chesa... case ani...
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18638
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:21 pm:   Edit PostDelete PostView Post/Check IP

mari naakenduku kaavalsina output kaakundaa anthaku mundara vacchina same output vasthondhi...inkemanna conditions dobbinayyemo choosthaa undu....
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18637
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:15 pm:   Edit PostDelete PostView Post/Check IP

avunu maama....undu malli try chesi chepthaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2469
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 12:09 pm:   Edit PostDelete PostView Post/Check IP

only TG or
only LG or
only TG or LG
vunn account ravali kada...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2468
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 12:08 pm:   Edit PostDelete PostView Post/Check IP

select act_type, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')),
count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END)

from test123
group by act_type
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1
AND count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END) = 0

idi 1 return chesindi mari
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18636
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:07 pm:   Edit PostDelete PostView Post/Check IP

adenti
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2467
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 12:07 pm:   Edit PostDelete PostView Post/Check IP

ala values vunte only 1 ravali kada output lo.. anthena..

mari work avuthundi kada
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2466
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 12:06 pm:   Edit PostDelete PostView Post/Check IP

1 TG
1 TG
1 LG
1 TG
2 TG
2 LL
3 LG
3 LK
4 TG
4 LG
4 LL
4 LK
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18635
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:03 pm:   Edit PostDelete PostView Post/Check IP

ledhu maama...same output vacchindhi malli
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2465
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 12:00 pm:   Edit PostDelete PostView Post/Check IP

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')),
count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END)

from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1
AND count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END) = 0

idi work ayyindaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18634
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 12:00 pm:   Edit PostDelete PostView Post/Check IP

move chesey badulu same date column inkoti petti D'gu...mappingki oka link kalipi dobbu ekkadnuncho
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2464
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:56 am:   Edit PostDelete PostView Post/Check IP

hehehe vadi daggaraiki vellali.. ela move cheyyamantado
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2463
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:56 am:   Edit PostDelete PostView Post/Check IP

enti move chesedi naa M...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2462
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:55 am:   Edit PostDelete PostView Post/Check IP

nenu DW ETL side
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2461
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:54 am:   Edit PostDelete PostView Post/Check IP

gosi mama chakkaga design chesa... rqmnts annitini cover chesa... vallu firstlo cheppinatte tables design chesa... SP' anni rasa.. mappings design chesa... ippudu vachhi... dates inko table loki move cheyyi antunnaru.. chiraku dthundi..

hehehe
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18633
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:53 am:   Edit PostDelete PostView Post/Check IP

gudi maama...nenu DW reporting side...nuvvu dentlo
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2460
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:53 am:   Edit PostDelete PostView Post/Check IP

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')),
count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END)

from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1
AND count(distinct
case WHEN losstype not in ('LG', 'TG') THEN '2' END) = 0

idi try cheyyu
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1978
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 11:51 am:   Edit PostDelete PostView Post/Check IP

mee eddaru work chesedhi oracle loo naa leka DW loo naa

Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18632
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:49 am:   Edit PostDelete PostView Post/Check IP

support vallu naa DLD review chesedi endi thokka gallu

support vaadidhem poindhi...etta badithe atta tables D'chukomantaadu...attaaa eeda design seyyalante oka iravai snowplake schemalu,muppai start schemaala lekkana thayaravuddi database...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2459
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 11:49 am:   Edit PostDelete PostView Post/Check IP

hehehe GOCDHI mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1977
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 11:48 am:   Edit PostDelete PostView Post/Check IP

detail level design mama... development perspective lo design chesthara lepothey support perspectiv elo design chesthara... support vallu naa DLD review chesedi endi thokka gallu


Avunaa

ee darun hi
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1976
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 11:47 am:   Edit PostDelete PostView Post/Check IP

nannu cheppamantaava gochi mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2458
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:46 am:   Edit PostDelete PostView Post/Check IP

detail level design mama... development perspective lo design chesthara lepothey support perspectiv elo design chesthara... support vallu naa DLD review chesedi endi thokka gallu
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18631
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:46 am:   Edit PostDelete PostView Post/Check IP

atta annaaa kooda malli records anni vachesthunnayi...ento deenemma.. having and pettina kooda adhedho where losstype in ('LG', 'TG') annattu pariganinchi dobbey mannadhi...malla ekkadekkadaithe LG,TG unnayo anni accounts dobbinchukunnayi..
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1975
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 11:44 am:   Edit PostDelete PostView Post/Check IP

DLD ante emiti ??
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2457
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:44 am:   Edit PostDelete PostView Post/Check IP

hehehe ee query kuda work kadu... anukunta

hehehe
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2456
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:41 am:   Edit PostDelete PostView Post/Check IP

select * from table1 where account in (
select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1 ) and
losstype in ('LG', 'TG')

anu
Top of pagePrevious messageNext messageBottom of page Link to this message

Pokiri1
Pilla Bewarse
Username: Pokiri1

Post Number: 114
Registered: 03-2006
Posted From: 152.123.2.230
Posted on Monday, April 10, 2006 - 11:40 am:   Edit PostDelete PostView Post/Check IP

ante mama job lu anni india ke ga
ikkada janam takkuva
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18630
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:39 am:   Edit PostDelete PostView Post/Check IP

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1

maama ...idhi kooda work avvatledhu...endukante distinct annappudu 1 okkate count cheyyadu kadhaa...2 kooda count avuthundhi...so 2 okkatey unna kooda output loki vasthundhi...
count( distinct 2) = 1 kadhaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2455
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:38 am:   Edit PostDelete PostView Post/Check IP

eedini eppudo kani andari mundu book chesi d'li/.. hehe appudu kani matladakunda vundadu
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2454
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:38 am:   Edit PostDelete PostView Post/Check IP

malla support ki off-shore lo iddaru...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2453
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:37 am:   Edit PostDelete PostView Post/Check IP

M gallu support lo ekkuva mandi chachharu development lo kanna... 2 developers, oka manager, oka BA...

development lo oka developer, oka tech dummy lead... chi chi
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2452
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:34 am:   Edit PostDelete PostView Post/Check IP

mama ikkada oka desi gadunnadu permanent employe.. naa M gadu pedda pistha anukuntadu... naa DLD ni marchu antunnadu.. dnegeha puka andam anukunna gani.. client ani vurukunna...

prathi dantlo elu pedathadu pedda puxku gadilaga...

naa M lodi DLD lo eedu support perspetive lo alochinhi.. rendu rojulu run kakapothey job ela... nenu ela re-run cheyyali ani.. naa M gadu... ippudu malla inko table petti d'chukovalai.. maa thalla client nemo dummy... ame yemi matladadu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18629
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:30 am:   Edit PostDelete PostView Post/Check IP

undu try chesi choosthaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2450
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:10 am:   Edit PostDelete PostView Post/Check IP

hehehe nenu erra bussu gadini... gosi mamani nenu enduku anta...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2449
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:09 am:   Edit PostDelete PostView Post/Check IP

mma correct idi

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1', '2')) = 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Donga_evaru
Bewarse ke Bewarse!
Username: Donga_evaru

Post Number: 15022
Registered: 08-2004
Posted From: 134.130.245.46
Posted on Monday, April 10, 2006 - 11:09 am:   Edit PostDelete PostView Post/Check IP

nayakudu mama gosi okate rendu posts vesthe kani ardham sesukoni yerra buss gadu anukunnava
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2448
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:08 am:   Edit PostDelete PostView Post/Check IP

mama

>>select account from table1
where losstype = 'TG'
group by account
having count(distinct losstype) = 1

ila rayakudadu.. appudu neeku eppudu TG vunna oka account ki adi vachhesiddi.. where clause mundu apply ayyiddi tharuvatha aa result set meeda group by apply ayyiddi
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2447
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:07 am:   Edit PostDelete PostView Post/Check IP

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1')) from table1
group by account
having count(distinct decode(losstype, 'LG', '1', 'TG', '1')) = 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2446
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Monday, April 10, 2006 - 11:07 am:   Edit PostDelete PostView Post/Check IP

mama here we go

select account, count(distinct decode(losstype, 'LG', '1', 'TG', '1') from table1
group by account
having count(distinct losstype) = 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2445
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 11:04 am:   Edit PostDelete PostView Post/Check IP

ammani...
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2444
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 11:03 am:   Edit PostDelete PostView Post/Check IP

enti ??? confuse ga vundi...

appudu 02341 kuda vachhiddi gada output lo...
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18628
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 11:02 am:   Edit PostDelete PostView Post/Check IP

maama...
select account from table1
where losstype = 'TG'
group by account
having count(distinct losstype) = 1

idhi baagane work avuthundhi...

kaani

select account from table1
where losstype in('TG','LG')
group by account
having count(distinct losstype) = 2

ante work avvadhu endukante its looking for either of TG/LG counts it as 1 and if the same account has some other loss type FG it counts as 2 and it returns the result..

so ala raakooodadhu... TG okkatunna raavali, LG okkatunna raavali...TG,LG rendu unna raavali...
Top of pagePrevious messageNext messageBottom of page Link to this message

Gudiwada
Bewarse
Username: Gudiwada

Post Number: 1974
Registered: 11-2004
Posted From: 161.225.1.12
Posted on Monday, April 10, 2006 - 11:01 am:   Edit PostDelete PostView Post/Check IP

Naaku telsu kaani nenu Seppanu gochi
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2443
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 11:01 am:   Edit PostDelete PostView Post/Check IP

select * from table1 where account in (
select account, count(distinct losstype) from table1
group by account
having count(distinct losstype) = 1)
and losstype in ('va11', 'val2')
Top of pagePrevious messageNext messageBottom of page Link to this message

Donga_evaru
Bewarse ke Bewarse!
Username: Donga_evaru

Post Number: 15016
Registered: 08-2004
Posted From: 134.130.245.46
Posted on Monday, April 10, 2006 - 11:00 am:   Edit PostDelete PostView Post/Check IP

nayakudu mama

accounts having losstype TG and LK(should contain both) ravali

nuvvu cheppindhi okadhanike kadha
Top of pagePrevious messageNext messageBottom of page Link to this message

Donga_evaru
Bewarse ke Bewarse!
Username: Donga_evaru

Post Number: 15015
Registered: 08-2004
Posted From: 134.130.245.46
Posted on Monday, April 10, 2006 - 10:58 am:   Edit PostDelete PostView Post/Check IP

rendodhi yela include seyyalo ardham kaka malli kochening marchava gosiga
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2442
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 10:58 am:   Edit PostDelete PostView Post/Check IP

naku ardham kaledu mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18627
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 10:56 am:   Edit PostDelete PostView Post/Check IP

swarry maayya...sarigga cheppinattu lenu nenu

actualgaa ilaa naaku rendu loss types ki kaavali...like I want all the accounts having losstypes TG,LK... ante ee rendu maatrame undaali..egjample ki okkatani cheppaanu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2441
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 10:55 am:   Edit PostDelete PostView Post/Check IP

only account ---


select account from table1
group by account
having count(distinct losstype) = 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Bewarse
Username: Nayakudu

Post Number: 2440
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Monday, April 10, 2006 - 10:54 am:   Edit PostDelete PostView Post/Check IP

select account, count(distinct losstype) from table1
group by account
having count(distinct losstype) = 1
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 18625
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Monday, April 10, 2006 - 10:47 am:   Edit PostDelete PostView Post/Check IP

maayyas...maa dataabselo oka table undi

Account,Claim,loss type,Office columns unnayi..

for each account there can be multiple claims/loss type/office
But the combination of claim-losstype-office is unique.

so ippudu for egjample :

Account, Claim, Losstype, Office
02341,12541,TG,YHK
02341,12542,JK,YHK
02341,12543,LK,YHK
02342,14521,TG,YHK
02343,14561,TG,YHK

so ilaa data unnappudu naaku all the accounts with losstype TG maatrame kaavali...ante only TG undaali aa account ki...so output ilaa raavali..

02342,
02343

02341 raakoodadhu,endukante daaniki TG tho paatu migathaa losses kooda unnayi

elaa seyyaali