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 26, 2010 * SQL Query help < Previous Next >

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

Stylestar
Kurra Bewarse
Username: Stylestar

Post Number: 607
Registered: 01-2009
Posted From: 65.206.96.254

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

Posted on Thursday, March 25, 2010 - 11:52 am:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:

SELECT * FROM testprimary a
where a.shipto_flag != 'P'
and a.billto_flag != 'P'
and not exists (select 'x' from testprimary b
where A.ACCOUNT = b.account
and b.shipto_flag = 'P'
OR B.BILLTO_FLAG = 'P')




first where lo a condition kuda akkaraledhu..

SELECT * FROM testprimary a
where not exists (select 'x' from testprimary b
where A.ACCOUNT = b.account
and (b.shipto_flag = 'P'
OR B.BILLTO_FLAG = 'P'))
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Celebrity Bewarse
Username: 420

Post Number: 9782
Registered: 12-2006
Posted From: 212.159.240.81

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

Posted on Thursday, March 25, 2010 - 7:34 am:    Edit Post Delete Post View Post/Check IP

25 ways using

1) NOT EXISTS
2) IN LINE VIEWS
3) Unions
4) ANTI JOINS ..


Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

Tingari_xx
Bewarse Legend
Username: Tingari_xx

Post Number: 24642
Registered: 08-2006
Posted From: 76.109.130.86

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

Posted on Thursday, March 25, 2010 - 7:23 am:    Edit Post Delete Post View Post/Check IP

bemmam mayya
nee hourly billing ampaava leda
i was NOT a bewarse, and then i saw Gosi post
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Celebrity Bewarse
Username: 420

Post Number: 9780
Registered: 12-2006
Posted From: 212.159.240.81

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

Posted on Thursday, March 25, 2010 - 7:21 am:    Edit Post Delete Post View Post/Check IP

I have an another 25 ways of solving this ..
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 11255
Registered: 01-2009
Posted From: 69.250.72.56

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

Posted on Wednesday, March 24, 2010 - 6:52 pm:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:

yaa..similar ee...:-) Omesh nuvvu koda similar gane raasav..work ayyindi..thanks to all. :-)


no probs yaa...
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:51 pm:    Edit Post Delete Post View Post/Check IP


Don:

select * from table where ship_to != "P" OR bill_to != "P"
and account != (select account from table where ship_to = "P" or bill_to = "P") ;




yaa..similar ee...:-) Omesh nuvvu koda similar gane raasav..work ayyindi..thanks to all. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 11253
Registered: 01-2009
Posted From: 69.250.72.56

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

Posted on Wednesday, March 24, 2010 - 6:48 pm:    Edit Post Delete Post View Post/Check IP

select * from table where ship_to not in ('P') and bill_to not in ('P') and account not in (select account from table where ship_to = 'P' or bill_to = 'P')

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

Don
Celebrity Bewarse
Username: Don

Post Number: 8578
Registered: 12-2004
Posted From: 12.46.64.18

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

Posted on Wednesday, March 24, 2010 - 6:47 pm:    Edit Post Delete Post View Post/Check IP

kiki..
nenu almost close ga baagane raasanu anna maata


select * from table where ship_to != "P" OR bill_to != "P"
and account != (select account from table where ship_to = "P" or bill_to = "P") ;
Insanity is the inability of the mind to adjust to reality!
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 11252
Registered: 01-2009
Posted From: 69.250.72.56

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

Posted on Wednesday, March 24, 2010 - 6:47 pm:    Edit Post Delete Post View Post/Check IP

select * from table where ship_to not in ('P') and bill_to not in ('P')

idi try cheyy baa...
???
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:45 pm:    Edit Post Delete Post View Post/Check IP

SELECT * FROM testprimary a
where a.shipto_flag != 'P'
and a.billto_flag != 'P'
and not exists (select 'x' from testprimary b
where A.ACCOUNT = b.account
and b.shipto_flag = 'P'
OR B.BILLTO_FLAG = 'P')

ilaa raasanu..idi work ayyela undi mama.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:45 pm:    Edit Post Delete Post View Post/Check IP

SELECT * FROM testprimary a
where a.shipto_flag != 'P'
and a.billto_flag != 'P'
and not exists (select 'x' from testprimary b
where A.ACCOUNT = b.account
and b.shipto_flag = 'P'
OR B.BILLTO_FLAG = 'P')

ilaa raasanu..idi work ayyela undi mama.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pda
Bewarse Legend
Username: Pda

Post Number: 31957
Registered: 06-2006
Posted From: 74.110.17.126

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

Posted on Wednesday, March 24, 2010 - 6:44 pm:    Edit Post Delete Post View Post/Check IP

oracle ye bemmam maya.. with clause use chesa simple ga vuntadi ani
Tough times never last but tough people do.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:41 pm:    Edit Post Delete Post View Post/Check IP

ardam kaaledu pdaesh ee query..Oracle lonaa? mysql aa?
Top of pagePrevious messageNext messageBottom of page Link to this message

Pda
Bewarse Legend
Username: Pda

Post Number: 31956
Registered: 06-2006
Posted From: 74.110.17.126

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

Posted on Wednesday, March 24, 2010 - 6:40 pm:    Edit Post Delete Post View Post/Check IP

bemmam maya idi try pannu..
with filtered as (select a.acct "acct_no" from account a where a.ship = 'y' and a.bill = 'y') select b.acct,b.ship,b.bill from account b where b.acct in( select distinct acct_no from filtered)
Tough times never last but tough people do.
Top of pagePrevious messageNext messageBottom of page Link to this message

Don
Celebrity Bewarse
Username: Don

Post Number: 8577
Registered: 12-2004
Posted From: 12.46.64.18

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

Posted on Wednesday, March 24, 2010 - 6:33 pm:    Edit Post Delete Post View Post/Check IP

manaki SQL teleedu kaani..
oka raayi veyyamante vesta bemmam mams
Insanity is the inability of the mind to adjust to reality!
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:27 pm:    Edit Post Delete Post View Post/Check IP

isthale cheppandehe..
Top of pagePrevious messageNext messageBottom of page Link to this message

Pda
Bewarse Legend
Username: Pda

Post Number: 31955
Registered: 06-2006
Posted From: 74.110.17.126

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

Posted on Wednesday, March 24, 2010 - 6:25 pm:    Edit Post Delete Post View Post/Check IP

10$ aa nithonanda swamy.. dakshina adugutunnava.. oka ganta billing naku itte nenu chepthaa
Tough times never last but tough people do.
Top of pagePrevious messageNext messageBottom of page Link to this message

Nitho
Celebrity Bewarse
Username: Nitho

Post Number: 7906
Registered: 12-2004
Posted From: 69.136.252.78

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

Posted on Wednesday, March 24, 2010 - 6:21 pm:    Edit Post Delete Post View Post/Check IP

okka 10$ cost avvudhi , na acount ni transfer cheyyi..chebutha..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

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

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

Posted on Wednesday, March 24, 2010 - 6:08 pm:    Edit Post Delete Post View Post/Check IP

oka table lo rendu column values Y or P undochu. ee rendu columns lo edaina kaani value P unte inka aa account query lo raakodadu.
aa account unna rows
more than 1 undochu. example ila..

account ship_to bill_to
1 P Y
1 Y P
1 Y Y

ipudu oka row lo P value ledu..kani same account ki paina edo oka row lo value P undi kabatti ee account raakodadu query lo..ela?

ela...

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