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

Bewarse TalkArchives - 2008Cine Talk - Reviews, Gossips, Insider Info etc.Archive through February 18, 2008 � AQL Query help Previous Next

Author Message
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6069
Registered: 06-2004
Posted From: 65.196.167.82

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

Posted on Tuesday, February 05, 2008 - 4:16 pm:Edit PostDelete PostView Post/Check IP

bagane unna mama. konchem busy ga unna. :-( nuvvela unnav mama :-)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Chonga
Yavvanam Kaatesina Bewarse
Username: Chonga

Post Number: 2992
Registered: 12-2004
Posted From: 64.154.62.13

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

Posted on Tuesday, February 05, 2008 - 3:54 pm:Edit PostDelete PostView Post/Check IP

ok.


intaki etlundaavu babai ??
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6068
Registered: 06-2004
Posted From: 65.196.167.82

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

Posted on Tuesday, February 05, 2008 - 3:51 pm:Edit PostDelete PostView Post/Check IP

rendu states satisfy ayina oka row chaalu mama. endukante renditlonu same info select chesthunna final ga. like employee number, expensereport number, amount.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6067
Registered: 06-2004
Posted From: 65.196.167.82

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

Posted on Tuesday, February 05, 2008 - 3:49 pm:Edit PostDelete PostView Post/Check IP

chonga mama, nuvvu cheppindi right I want only those state(13) rows but that expense report should have both the states 4 and 13.

basic ga 13 = submitted for audit approval
4 = receipt matching completed.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 15126
Registered: 03-2004
Posted From: 198.204.133.208

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

Posted on Tuesday, February 05, 2008 - 3:31 pm:Edit PostDelete PostView Post/Check IP

union kaka inka emi use seyyalemu anukunta mama...
kothi ki kobbarikaya...pd chetiki MOD padavi..karma ra babu
Top of pagePrevious messageNext messageBottom of pageLink to this message

Chonga
Yavvanam Kaatesina Bewarse
Username: Chonga

Post Number: 2988
Registered: 12-2004
Posted From: 64.154.62.13

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

Posted on Tuesday, February 05, 2008 - 3:26 pm:Edit PostDelete PostView Post/Check IP

i don't know much sql....but i guess it works
Top of pagePrevious messageNext messageBottom of pageLink to this message

Chonga
Yavvanam Kaatesina Bewarse
Username: Chonga

Post Number: 2987
Registered: 12-2004
Posted From: 64.154.62.13

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

Posted on Tuesday, February 05, 2008 - 3:26 pm:Edit PostDelete PostView Post/Check IP

performance baaleka poyinaa idi simple kadaa ??



select ..
from document d
where d.stateid = '13'
and exists (select 1 from
document d1
where d.documentnumber = d1.documentnumber
and d1.stateid = 4)
UNION
select ..
from document d
where d.stateid = '4'
and exists (select 1 from
document d1
where d.documentnumber = d1.documentnumber
and d1.stateid = 13)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 15123
Registered: 03-2004
Posted From: 198.204.133.208

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

Posted on Tuesday, February 05, 2008 - 3:15 pm:Edit PostDelete PostView Post/Check IP

yeah...2 rows raavu..only 13 info vastundhi
kothi ki kobbarikaya...pd chetiki MOD padavi..karma ra babu
Top of pagePrevious messageNext messageBottom of pageLink to this message

Chonga
Yavvanam Kaatesina Bewarse
Username: Chonga

Post Number: 2986
Registered: 12-2004
Posted From: 64.154.62.13

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

Posted on Tuesday, February 05, 2008 - 3:09 pm:Edit PostDelete PostView Post/Check IP

aa query '4' kooda satisfy ayina '13' unna rows maatrame ostundi....no '4' related info would show up.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 15122
Registered: 03-2004
Posted From: 198.204.133.208

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

Posted on Tuesday, February 05, 2008 - 3:07 pm:Edit PostDelete PostView Post/Check IP

endhuku?
kothi ki kobbarikaya...pd chetiki MOD padavi..karma ra babu
Top of pagePrevious messageNext messageBottom of pageLink to this message

Chonga
Yavvanam Kaatesina Bewarse
Username: Chonga

Post Number: 2985
Registered: 12-2004
Posted From: 64.154.62.13

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

Posted on Tuesday, February 05, 2008 - 3:04 pm:Edit PostDelete PostView Post/Check IP

>>bemmam maaya query work avvutundhi

avvadu mama...
Top of pagePrevious messageNext messageBottom of pageLink to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 15109
Registered: 03-2004
Posted From: 198.204.133.208

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

Posted on Tuesday, February 05, 2008 - 11:09 am:Edit PostDelete PostView Post/Check IP

420 mama...

bemmam maaya requirements ki neevu ichina query work avvadhu....nee query ki 4 or 13 edi unna result vastundhi...

bemmam maaya query work avvutundhi
kothi ki kobbarikaya...pd chetiki MOD padavi..karma ra babu
Top of pagePrevious messageNext messageBottom of pageLink to this message

420
Yavvanam Kaatesina Bewarse
Username: 420

Post Number: 3335
Registered: 12-2006
Posted From: 194.151.208.152

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

Posted on Tuesday, February 05, 2008 - 10:57 am:Edit PostDelete PostView Post/Check IP

Bemmi .. I do not think that query werks
Kuku kukuku ..Ullike padaku , Peedave KaalipeNduku
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6066
Registered: 06-2004
Posted From: 24.181.242.161

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

Posted on Monday, February 04, 2008 - 5:33 pm:Edit PostDelete PostView Post/Check IP

maa office lo okathanu cheppadu..lunch chestha adiga. appudu cheppadu :-)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Drifter
Yavvanam Kaatesina Bewarse
Username: Drifter

Post Number: 3549
Registered: 09-2007
Posted From: 138.32.32.166

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

Posted on Monday, February 04, 2008 - 5:07 pm:Edit PostDelete PostView Post/Check IP

maa ittam
Top of pagePrevious messageNext messageBottom of pageLink to this message

Bignole
Mudiripoyina Bewarse
Username: Bignole

Post Number: 7673
Registered: 03-2004
Posted From: 161.225.1.12

Rating:
Votes: 2(Vote!)

Posted on Monday, February 04, 2008 - 4:31 pm:Edit PostDelete PostView Post/Check IP

mari enduku adigaav
Lakshallo Okkadni ....Laksha mandhiki okkadini
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6065
Registered: 06-2004
Posted From: 57.68.10.185

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

Posted on Monday, February 04, 2008 - 2:27 pm:Edit PostDelete PostView Post/Check IP

adi work avvadu. idi work avuthundi .

select ..
from document d
where d.stateid = '13'
and exists (select 1 from
document d1
where d.documentnumber = d1.documentnumber
and d1.stateid = 4)
Top of pagePrevious messageNext messageBottom of pageLink to this message

420
Yavvanam Kaatesina Bewarse
Username: 420

Post Number: 3326
Registered: 12-2006
Posted From: 194.151.208.152

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

Posted on Monday, February 04, 2008 - 10:04 am:Edit PostDelete PostView Post/Check IP

select StateID , count(*) from ur_tits group by StateID having StateID in(4,13)

Beeeeemeeeee Check this
Kuku kukuku ..Ullike padaku , Peedave KaalipeNduku
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6064
Registered: 06-2004
Posted From: 57.68.10.185

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

Posted on Monday, February 04, 2008 - 9:38 am:Edit PostDelete PostView Post/Check IP

kaadu mama. just 4 and 13 stateid unna rows mathrame raavali.

ippudu data ila undanuko.

expensereport number stateid

1 4
2 9
3 13

rendu rows vasthay.

ippudu data ila undanuko


expensereport number stateid

1 4
2 9

appudu oka row vasthadi. kani ala oka row unte naaku aa data vadhu. ippudu elaa rayali query ni.
Top of pagePrevious messageNext messageBottom of pageLink to this message

420
Yavvanam Kaatesina Bewarse
Username: 420

Post Number: 3325
Registered: 12-2006
Posted From: 194.151.208.152

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

Posted on Monday, February 04, 2008 - 9:28 am:Edit PostDelete PostView Post/Check IP

Bemme Bedar .. are you saying you want the 4rows ..and in those rows if the value of STATEID column is other than 4 and 13 u want to display Null ..

Use case statement in SQL if its oracle
Kuku kukuku ..Ullike padaku , Peedave KaalipeNduku
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 6063
Registered: 06-2004
Posted From: 57.68.10.185

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

Posted on Monday, February 04, 2008 - 9:10 am:Edit PostDelete PostView Post/Check IP

oka table lo oka expense report number ki 4 rows unnayi. andulo stateid ane column value 4 and 13 rendu ayithene data return cheyyali ante aa 2 rows raavali annamata. ela rayali query