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 - 2011 * Cine Talk - Reviews, Gossips, Insider Info etc. * Archive through March 14, 2011 * SQl Help < Previous Next >

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

420
Bewarse Legend
Username: 420

Post Number: 10940
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 12:05 pm:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:

biryani adigina kochen ki answer try chesa kani naaku anthaga ardam kaala ela cheyyalo




Bemmi .. why fear . when I am here ..

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

Sachinfan
Celebrity Bewarse
Username: Sachinfan

Post Number: 9288
Registered: 10-2010
Posted From: 66.151.103.9

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

Posted on Friday, March 11, 2011 - 11:22 am:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:


iyala pivot anedi okati vuntadhi ani telsukunna...CLIPART--banana
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 15134
Registered: 06-2004
Posted From: 72.129.47.227

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

Posted on Friday, March 11, 2011 - 11:21 am:    Edit Post Delete Post View Post/Check IP


Sachinfan:

SQL taadu anagane bemmam annai ee anukunetodini innalluMOVIEART--bemmi.adi




biryani adigina kochen ki answer try chesa kani naaku anthaga ardam kaala ela cheyyalo MOVIEART--bemmi.abba
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachinfan
Celebrity Bewarse
Username: Sachinfan

Post Number: 9285
Registered: 10-2010
Posted From: 66.151.103.9

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

Posted on Friday, March 11, 2011 - 11:15 am:    Edit Post Delete Post View Post/Check IP

SQL taadu anagane bemmam annai ee anukunetodini innalluMOVIEART--bemmi.adi
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Bewarse Legend
Username: Ravanabrahma

Post Number: 15133
Registered: 06-2004
Posted From: 72.129.47.227

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

Posted on Friday, March 11, 2011 - 11:14 am:    Edit Post Delete Post View Post/Check IP

nenu trend set chesa ayithe MOVIEART--bemmi.dance3
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachinfan
Celebrity Bewarse
Username: Sachinfan

Post Number: 9281
Registered: 10-2010
Posted From: 66.151.103.9

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

Posted on Friday, March 11, 2011 - 11:08 am:    Edit Post Delete Post View Post/Check IP


Biryani:

MOVIEART--bemmi.angry


baa eti gussa ayitannav?MOVIEART--banthi
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 870
Registered: 10-2010
Posted From: 167.121.100.2

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

Posted on Friday, March 11, 2011 - 10:30 am:    Edit Post Delete Post View Post/Check IP


420:



thnx annaiCLIPART--highfive

Onlymovies:




thanx anani idi kuda try chesi chusthanu
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Bewarse Legend
Username: 420

Post Number: 10939
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 10:29 am:    Edit Post Delete Post View Post/Check IP

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

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 869
Registered: 10-2010
Posted From: 167.121.100.2

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

Posted on Friday, March 11, 2011 - 10:28 am:    Edit Post Delete Post View Post/Check IP


420:



I just used Table 2...but na DB is DB2.

even I used substr and the pivoted
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Bewarse Legend
Username: 420

Post Number: 10938
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 10:22 am:    Edit Post Delete Post View Post/Check IP

Biryani .. Bedar .. you just need to use only Table2 for your Rock and Roll

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

420
Bewarse Legend
Username: 420

Post Number: 10937
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 10:20 am:    Edit Post Delete Post View Post/Check IP

select *
from
(
select C2 , substr(C2,0,2) C1 , 'C' || substr(C2,3,1) Col from Table2
)
PIVOT
(
MIN(C2) for COL in ('C1','C2','C3','C4')
)


this is the one liner code you need .. this works in 11G
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 868
Registered: 10-2010
Posted From: 167.121.100.1

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

Posted on Friday, March 11, 2011 - 10:11 am:    Edit Post Delete Post View Post/Check IP


Sachinfan:


MOVIEART--bemmi.angry
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachinfan
Celebrity Bewarse
Username: Sachinfan

Post Number: 9277
Registered: 10-2010
Posted From: 66.151.103.9

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

Posted on Friday, March 11, 2011 - 10:09 am:    Edit Post Delete Post View Post/Check IP

MOVIEART--bemmi.adi
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 867
Registered: 10-2010
Posted From: 167.121.100.2

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

Posted on Friday, March 11, 2011 - 10:07 am:    Edit Post Delete Post View Post/Check IP

Vachindi second table lo inko column create chesa code vachelaga and then pivot chesaMOVIEART--bemmi.prayer
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 21005
Registered: 01-2009
Posted From: 199.173.226.229

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

Posted on Friday, March 11, 2011 - 9:56 am:    Edit Post Delete Post View Post/Check IP

biryani baa.. check the package that i gave, it might help
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 21004
Registered: 01-2009
Posted From: 199.173.226.229

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

Posted on Friday, March 11, 2011 - 9:56 am:    Edit Post Delete Post View Post/Check IP

sqlString := select column2 from table2 where column2 like 'column1%'

execute immediate sqlString BULK COLLECT INTO lFieldVal;
result = column1;
if lFieldVal.first is not null then
for indx in lFieldVal.first..lFieldVal.last LOOP
result := returnString || lFieldVal(indx);
END LOOP;
END IF;

insert into table3 (column3) values (result);
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 866
Registered: 10-2010
Posted From: 167.121.100.1

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

Posted on Friday, March 11, 2011 - 9:52 am:    Edit Post Delete Post View Post/Check IP


420:



pivot chesthe second table ki ok but first table lo code kuda ravali kada ?
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Bewarse Legend
Username: 420

Post Number: 10936
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 9:51 am:    Edit Post Delete Post View Post/Check IP

Bedars .. its a smple Pivot query one liner , I say .. .
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 21003
Registered: 01-2009
Posted From: 199.173.226.229

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

Posted on Friday, March 11, 2011 - 9:50 am:    Edit Post Delete Post View Post/Check IP


Biryani:

avunu


i think package raasi, create cheyyachanukunta new table
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 865
Registered: 10-2010
Posted From: 167.121.100.1

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

Posted on Friday, March 11, 2011 - 9:47 am:    Edit Post Delete Post View Post/Check IP


Onlymovies:



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

Onlymovies
Bewarse Legend
Username: Onlymovies

Post Number: 21002
Registered: 01-2009
Posted From: 199.173.226.229

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

Posted on Friday, March 11, 2011 - 9:47 am:    Edit Post Delete Post View Post/Check IP


Biryani:

table 1 lo if you have a code 01 then table 2 will have 4 corresponding values 011,012,013 and 014


so you need all the corresponding codes in a single row?
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 864
Registered: 10-2010
Posted From: 167.121.100.1

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

Posted on Friday, March 11, 2011 - 9:45 am:    Edit Post Delete Post View Post/Check IP


420:




annai

table 1 lo if you have a code 01 then table 2 will have 4 corresponding values 011,012,013 and 014

so we need to join table 1 and table 2 such that rows in table 2 corresponding to table 1 needs to be pivoted.

note: table 1 lo codes dont have to be in sequence.

confuse chesana CLIPART--icon_confused
Top of pagePrevious messageNext messageBottom of page Link to this message

Dobbey
Pilla Bewarse
Username: Dobbey

Post Number: 82
Registered: 03-2011
Posted From: 68.229.32.103

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

Posted on Friday, March 11, 2011 - 9:42 am:    Edit Post Delete Post View Post/Check IP

over partition by,rownum to cheyali baa

stewie raasadu monna oka oracle form lo recent ga

choosi ampittad lee inko ganta lo
Top of pagePrevious messageNext messageBottom of page Link to this message

420
Bewarse Legend
Username: 420

Post Number: 10935
Registered: 12-2006
Posted From: 82.157.134.169

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

Posted on Friday, March 11, 2011 - 9:38 am:    Edit Post Delete Post View Post/Check IP

bedar your question is mixed .. are you looking for a pure cartesian product or a Pivot result .. can you be more specific on the columns in the result ..

then the answer is very very simpulu .
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

Biryani
Kurra Bewarse
Username: Biryani

Post Number: 863
Registered: 10-2010
Posted From: 167.121.100.1

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

Posted on Friday, March 11, 2011 - 9:23 am:    Edit Post Delete Post View Post/Check IP

Naku rendu tables vunnayi
Table 1
01
02
.
.
99

Table2
011
012
013
014
021
022
023
024
.
.
.
991
992
993
994

ippudu I want to join these tables resulting the third table

Table 3
01 011 012 013 014
02 021 022 023 024
.
.
.
99 991 992 993 994

ila ravali ela join cheyyali kastha cheppandi

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