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

Bewarse TalkArchives - 2007Cine Talk - Reviews, Gossips, Insider Info etc.Archive through October 06, 2007 � SQL query help Previous Next

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

Symbol_of_king
Kurra Bewarse
Username: Symbol_of_king

Post Number: 1260
Registered: 12-2005
Posted From: 198.182.163.125

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

Posted on Monday, October 01, 2007 - 4:29 pm:Edit PostDelete PostView Post/Check IP

select statename from table t1 where stateid=(select min(stateid) from table t1 where cond)

i dont think this is that simple....inka edo vundi vuntundi question ????
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

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

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

Posted on Monday, October 01, 2007 - 4:24 pm:Edit PostDelete PostView Post/Check IP

stateid select cheyyalsina avasaram ledu. kaani statename display cheyyali but statename ni min of stateid unnade kavali naku.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

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

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

Posted on Monday, October 01, 2007 - 4:23 pm:Edit PostDelete PostView Post/Check IP

statename and stateid rendu columns different untayi. migilina columsn anni same. ippudu stateid lo min unna row mathrame thesukovali, kani statename display cheyyali aa thesukunna stateid danidi.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Symbol_of_king
Kurra Bewarse
Username: Symbol_of_king

Post Number: 1259
Registered: 12-2005
Posted From: 198.182.163.125

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

Posted on Monday, October 01, 2007 - 4:07 pm:Edit PostDelete PostView Post/Check IP

nuvvu specify chesina 2 values vunna column kakundaa query lo retrieve chesina migtha columns annitiloo...2 rows lo same values vunte nee work avuthundi ee query ani naa feeling
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

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

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

Posted on Monday, October 01, 2007 - 4:05 pm:Edit PostDelete PostView Post/Check IP

work avvatam ledu mama :-(
Top of pagePrevious messageNext messageBottom of pageLink to this message

Symbol_of_king
Kurra Bewarse
Username: Symbol_of_king

Post Number: 1258
Registered: 12-2005
Posted From: 198.182.163.125

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

Posted on Monday, October 01, 2007 - 4:04 pm:Edit PostDelete PostView Post/Check IP

<<<<sel a, min(b) from t1 join t2 t1.x1 = t2.x2
group by a>>>>

deniki output hemu adiginattu vastundaa???


'b' tapithe migatha columns in all the rows equal aythe nee correct answer vastundi anukunta kada????
Top of pagePrevious messageNext messageBottom of pageLink to this message

Pda
Celebrity Bewarse
Username: Pda

Post Number: 15420
Registered: 06-2006
Posted From: 129.138.18.85

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

Posted on Monday, October 01, 2007 - 3:42 pm:Edit PostDelete PostView Post/Check IP


Life is a game. So fight for survival and see if you're worth it.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Vemana
Kurra Bewarse
Username: Vemana

Post Number: 1484
Registered: 12-2004
Posted From: 144.42.9.186

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

Posted on Monday, October 01, 2007 - 3:38 pm:Edit PostDelete PostView Post/Check IP

min (column_name) use cheyyi query lo. other columns ki group by add cheyyi like this

sel a, min(b) from t1 join t2 t1.x1 = t2.x2
group by a
Top of pagePrevious messageNext messageBottom of pageLink to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

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

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

Posted on Monday, October 01, 2007 - 3:36 pm:Edit PostDelete PostView Post/Check IP

nenu oka query rasanu. andulo two rows vasthunnayi. oka column value 2 untunnayi. kani naaku aa column value min unna row nee ravali. el arayali condition??