Another SQL help mamalu   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 May 08, 2006 � Another SQL help mamalu � Previous Next �

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

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3616
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:38 pm:   Edit PostDelete PostView Post/Check IP

ala vunte danni star join antaru.. star schema anna mata...

ila rayali appudu query

SELECT
MOD.quarter,
SUM(fa.units_mes)
FROM
FACT_ACCOUNT1 fa,
MONTH_DIM MOD,
REGION_DIM rd,
MODEL_DIM md
WHERE
fa.MONTH_DIM=MOD.month_id AND
fa.REGION_ID=RD.REGION_ID AND
fa.MODEL_ID=md.MODEL_ID AND
LOWER(rd.area) LIKE 'benelux' AND
LOWER(md.TYPE) like 's series sedan'
GROUP BY
MOD.quarter
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12477
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 1:36 pm:   Edit PostDelete PostView Post/Check IP

indaka nenu ichinattu Model_dim,region_dim.month_dim anni okkate type mama vatiki fact_account lo reference untadi ok na
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19924
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 1:35 pm:   Edit PostDelete PostView Post/Check IP

from clause lo vunna anni tables ni join cheyyali.. lekapohey Katrina join ayyii ekkuvavaue vasthayii


Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3615
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:33 pm:   Edit PostDelete PostView Post/Check IP

asalu relation enti among tables..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3614
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:32 pm:   Edit PostDelete PostView Post/Check IP

SELECT
MOD.quarter,
SUM(fa.units_mes)
FROM
FACT_ACCOUNT1 fa,
MONTH_DIM MOD,
REGION_DIM rd,
MODEL_DIM md
WHERE
fa.MONTH_DIM=MOD.month_id AND
LOWER(rd.area) LIKE 'benelux' AND
LOWER(md.TYPE) like 's series sedan'
GROUP BY
MOD.quarter


from clause lo vunna anni tables ni join cheyyali.. lekapohey cartesian join ayyii ekkuvavaue vasthayii
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12474
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 1:28 pm:   Edit PostDelete PostView Post/Check IP

Ante
AND LOWER(rd.area) LIKE 'benelux' AND LOWER(md.TYPE) like 's series sedan'

idi teesesthe inka thakkuva values vasthunnayiy kani idi unte chala ekkuva vasthunnayyi em thappu undi query lo
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12473
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 1:27 pm:   Edit PostDelete PostView Post/Check IP

Gosi mama neeku kooda thanks aina mee cinema poindi ga komchem time padathadi le
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12472
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 1:26 pm:   Edit PostDelete PostView Post/Check IP

SELECT MOD.quarter,SUM(fa.units_mes) FROM FACT_ACCOUNT1 fa, MONTH_DIM MOD, REGION_DIM rd, MODEL_DIM md WHERE fa.MONTH_DIM=MOD.month_id AND LOWER(rd.area) LIKE 'benelux' AND LOWER(md.TYPE) like 's series sedan' GROUP BY MOD.quarter

Idi choodu nayakudu mama indulo first and taruvatha unnavi teesesthe thakkuva value vasthundi output ila unte ekkuva avsthunbdi emanna repeat avuthunnayyi antava SUM ayyethappudu
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3612
Registered: 05-2005
Posted From: 136.182.2.222
Posted on Thursday, May 04, 2006 - 1:21 pm:   Edit PostDelete PostView Post/Check IP

emdundile mama ivanni chinnave kada... mana goppadanam yemi ledu... rasthu vuntam gada SQL queires DWH lo.. inka anthey
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19918
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 1:14 pm:   Edit PostDelete PostView Post/Check IP

naaku requirement arthamayyesarike ekkuva time paduthundhi..arthamayyaka thantaalu padi raasthaa..kaani nuvvasalu req elaa unna thaata theesthunnavgaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3610
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:13 pm:   Edit PostDelete PostView Post/Check IP

Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19917
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 1:11 pm:   Edit PostDelete PostView Post/Check IP

nayak maama saana fastgaa unnavgaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19916
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 1:10 pm:   Edit PostDelete PostView Post/Check IP

ELECT SUM(fa.units_mes)
FROM FACT_ACCOUNT1 fa,
Region_dim Rd
WHERE fa.reg_dim = RA.dim
and upper(rd.continenet) like ('AMERICAS')
GROUP BY fa.UNITS_MES

idhi try chesi choodu maama...kaani rd lo continet ekkada undi column
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3609
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:09 pm:   Edit PostDelete PostView Post/Check IP

eppudu try to join tables mama .. kudaraka pothey ala sub querys.. DWH lo workingaaa ippudu good mama
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12471
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 1:07 pm:   Edit PostDelete PostView Post/Check IP

Nayakudu mama Kummesavu
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3608
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:03 pm:   Edit PostDelete PostView Post/Check IP

idi only area Asia ki.. anni areas kavalante aa condition theseyyi from where clause..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3607
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 1:02 pm:   Edit PostDelete PostView Post/Check IP

SELECT dim.area, SUM(fa.units_mes) FROM FACT_ACCOUNT1 fa, REGION_DIM dim

WHERE
fa.REGION_DIM=dim.REG_ID AND
dim.AREA like 'Asia'

group by
dim.area
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12470
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 12:58 pm:   Edit PostDelete PostView Post/Check IP

Ante ela ante ippudu Asia lo unna anni Countries ki sambandinchina UNITS ni add chesi adi output laga ravali mama ela cheyyali urgent baga
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12469
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 12:57 pm:   Edit PostDelete PostView Post/Check IP

Region_dim

reg_id country area world
1 Ind Asia World
2 USA America World
3 SL Asia World
4 Ban Asia World
5 SA Ameirca World
6 Africa Africa World

fact_table

id region_dim units_mes
1 1 10
2 1 20
3 2 30
4 3 40
5 4 50
6 4 60
7 5 70
8 6 80
...

SELECT SUM(fa.units_mes) FROM FACT_ACCOUNT1 fa WHERE fa.REGION_DIM=(SELECT rd.region_id FROM REGION_DIM rd WHERE LOWER(rd.continent)='americas') GROUP BY fa.UNITS_MES


Idi thappu ani telusu kani naku ela rayalo ardham katalla
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19914
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 12:25 pm:   Edit PostDelete PostView Post/Check IP

paigaa Nayak maama mention chesinattu select lo aggeragate unte Ex: sum( ),

adhi groupby lo pettakoodadhu..migathaavanni(nonaggregate) vanni pettukovaali
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12466
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 12:25 pm:   Edit PostDelete PostView Post/Check IP

Thanks
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19913
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 12:23 pm:   Edit PostDelete PostView Post/Check IP

Nayakudu and Gochi mamas..
Naku oka Doubt GroupBy anedi Select taruvatha vade anni columns ki vadala enti complusory ga komchem detail ga chepthara 1 hr nunchi kottukuntunna ikakd


maama...querylo nuvvemanna aggregate functions use chesthey chacchinattu anni groupby lo pettukovaali...

like

select a.apple,
b.banana,
sum(c.chocolate)

ani pedthey anni group by ettukovaali...sum() or other aggregate lekapothe akkarledhu..

inko scenelo querylo kooda aggergate function undanuko..like having(sum(chocolate) = 0 or having count() etc..

appudu kooda groupby lo anni pettali..lekapothe group by ni lite theesukovacchu
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3600
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 12:23 pm:   Edit PostDelete PostView Post/Check IP

ounu mama... aa mudu combined ga repeat aithey data isthundi lekapothey ivvadu...
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15404
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 12:19 pm:   Edit PostDelete PostView Post/Check IP

mamalu groupby lo avanni peduthunte data emi ivvatam ledu mama, akkada duplicate unnadi okka user_name mathrame ga, andukani ravatam leda data??
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3599
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 12:16 pm:   Edit PostDelete PostView Post/Check IP

gorup by lo select lo vunna all non-aggregate columns ni pettali...
Top of pagePrevious messageNext messageBottom of page Link to this message

Sinna
Bewarse ke Bewarse!
Username: Sinna

Post Number: 12465
Registered: 04-2005
Posted From: 68.229.151.18
Posted on Thursday, May 04, 2006 - 12:11 pm:   Edit PostDelete PostView Post/Check IP

Nayakudu and Gochi mamas..
Naku oka Doubt GroupBy anedi Select taruvatha vade anni columns ki vadala enti complusory ga komchem detail ga chepthara 1 hr nunchi kottukuntunna ikakda
Manchi ki Manchi Punch ki Punch that is Nandamuri NataSimha Balayya
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19912
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 12:07 pm:   Edit PostDelete PostView Post/Check IP

b.first_name, b.last_name ee rendu kooda groupbylo add sesi try seyyi maama....


select a.user_name, b.first_name, b.last_name from a, b
where ....
having count(user_name) > 1
group by a.user_name,
b.first_name,
b.last_name
Top of pagePrevious messageNext messageBottom of page Link to this message

Pokiri1
Kurra Bewarse
Username: Pokiri1

Post Number: 655
Registered: 03-2006
Posted From: 152.123.2.230
Posted on Thursday, May 04, 2006 - 12:04 pm:   Edit PostDelete PostView Post/Check IP

nee select statement lo count function ledu andukani neeku a error vachindi
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3598
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 11:58 am:   Edit PostDelete PostView Post/Check IP

enti mama mee cinema ki ippudu yem certificate ichharu

U/A na leka A na edo godava anta gada mee DB lo chusa evaru aa pedda hero ila cheyisthundi
Top of pagePrevious messageNext messageBottom of page Link to this message

Prasanth
Bewarse ke Bewarse!
Username: Prasanth

Post Number: 21611
Registered: 03-2004
Posted From: 203.200.218.2
Posted on Thursday, May 04, 2006 - 11:54 am:   Edit PostDelete PostView Post/Check IP

:-O :-O :-O

evalu seppoddu..:-O
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15403
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 11:52 am:   Edit PostDelete PostView Post/Check IP

inkoka question mamalu.

select a.user_name, b.first_name, b.last_name from a, b
where ....
having count(user_name) > 1
group by a.user_name

ante not a group by expression antadenti maam??
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15399
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 11:08 am:   Edit PostDelete PostView Post/Check IP

1 ki meeting gochi mama. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Prasanth
Bewarse ke Bewarse!
Username: Prasanth

Post Number: 21601
Registered: 03-2004
Posted From: 203.200.218.2
Posted on Thursday, May 04, 2006 - 11:06 am:   Edit PostDelete PostView Post/Check IP

nee enka..aa hemantu kuda mandu taagadu..

party ante mandu okatenaa mee US bhaashalo..

vindu...inkaa kudirite pondu kuudaa adugu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19905
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 11:05 am:   Edit PostDelete PostView Post/Check IP

nenu mandu thaaganugaa...
Top of pagePrevious messageNext messageBottom of page Link to this message

Prasanth
Bewarse ke Bewarse!
Username: Prasanth

Post Number: 21600
Registered: 03-2004
Posted From: 203.200.218.2
Posted on Thursday, May 04, 2006 - 11:04 am:   Edit PostDelete PostView Post/Check IP

mundu party adugehe...
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19903
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 11:02 am:   Edit PostDelete PostView Post/Check IP

andarini meetingki pilichi pokiri songs inipinchesaava..
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15397
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:53 am:   Edit PostDelete PostView Post/Check IP

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

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19901
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 10:33 am:   Edit PostDelete PostView Post/Check IP

hammayya..ivaaltiki gandam gattekkindanamaata hemanthaa
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15396
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:29 am:   Edit PostDelete PostView Post/Check IP

vaake oka 28 mandi vacharu. kiki. chala chala thanks mama, inka meeting ki pilavochu aallani. kiki.
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15395
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:28 am:   Edit PostDelete PostView Post/Check IP

chi intha silly vi aduguthunna enti. :-( eligindi aagu. kiki.
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15394
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:27 am:   Edit PostDelete PostView Post/Check IP

andulo duplicates levu mama, kaani ippudu rasina query lo duplicate usernames unnayi ga, only aa duplicate rows ni ela thesukuravali, daniki emani raayali. ippudu rasina query a anuko. ippudu andulo unna duplicate ela thiyyyali bayataki??
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3589
Registered: 05-2005
Posted From: 129.188.33.222
Posted on Thursday, May 04, 2006 - 10:26 am:   Edit PostDelete PostView Post/Check IP

alage

select substr(first_name,1,1), last_name, count(*) from cted
group by substr(first_name,1,1), last_name
having count(*) > 1 kuda chudu
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3588
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:24 am:   Edit PostDelete PostView Post/Check IP

select user_name, count(*) from fu
group by user_name
having count(*) > 1
execute chesi chudu emaina duplicates vunnayemo
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15392
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:23 am:   Edit PostDelete PostView Post/Check IP

aa extra rows sangathi ardam ayyindi mama. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15391
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:23 am:   Edit PostDelete PostView Post/Check IP

mama nuvvu cheppindi pani cheyyatam laa. kani idi pani chesthundi.

UPPER(SUBSTR(fu.user_name, 2) = UPPER(cted.last_name(+))
AND
UPPER(SUBSTR(fu.user_name, 1,1)) = UPPER(SUBSTR(cted.first_name(+),1,1)

raayocha ilaa??
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3586
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:22 am:   Edit PostDelete PostView Post/Check IP

iddari employyes ki same perlu vudochu gada anduke extra rows vasthunnayi
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15390
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:21 am:   Edit PostDelete PostView Post/Check IP

1st letter 1st name loni 1st letter mama, 2nd nunchi last name mama. :-)

aagu nuvvu ichindi try chesthanu. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3585
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:20 am:   Edit PostDelete PostView Post/Check IP

UPPER(SUBSTR(fu.user_name, 2)) enduku 2nd letter nunchi thesthunnavu neduku
Top of pagePrevious messageNext messageBottom of page Link to this message

Prasanth
Bewarse ke Bewarse!
Username: Prasanth

Post Number: 21598
Registered: 03-2004
Posted From: 203.200.218.2
Posted on Thursday, May 04, 2006 - 10:17 am:   Edit PostDelete PostView Post/Check IP

utthi thanks cheppadam kaadhu..

aaliddariki PARTY ivvu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3584
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:16 am:   Edit PostDelete PostView Post/Check IP

WHERE
(FU.END_DATE IS NULL OR
fu.end_date >= TRUNC(SYSDATE)
)
AND
UPPER(SUBSTR(fu.user_name, 2) = UPPER(cted.last_name)(+)
AND
UPPER(SUBSTR(fu.user_name, 1,1)) = UPPER(SUBSTR(cted.first_name,1,1)(+)

idi try cheyyi mama vachhiddi
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15389
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:15 am:   Edit PostDelete PostView Post/Check IP

yeh chesa mama, deniki ela cheyyalo cheppu mama. plz.

got it mama. :-) ardam ayyindi., chass denemma ala vasthayi ani thelsi koda deniki ekkuva vachayi anukunta enti thingaramelani. chi chi. Thanks mamalu.
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3583
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:13 am:   Edit PostDelete PostView Post/Check IP

gosi mama cheppadu gada... alage cheyyi

extra rows enduku vasthunnayi ante kuda gosi mama cheppinatle... first letter valla
cheyyi dati poyindi manam yem cheyyalemu
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15388
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:13 am:   Edit PostDelete PostView Post/Check IP

a and b ante aa rendu query lu ani.
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15387
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:13 am:   Edit PostDelete PostView Post/Check IP

sare deniki anna cheppandi.

2 query lu rasanu. rendu user_name ni return chesthunayi. ippudu a lo undi b lo leni user_name ni return chese query ela rayali. naa daggara 2 qurey lu unnayi kani tables kadu!!!!!!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15386
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:10 am:   Edit PostDelete PostView Post/Check IP

aa employee id, ee table lo unna employee id okati kadu mama. :-( veru veru.
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15383
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:09 am:   Edit PostDelete PostView Post/Check IP

user_id veru employee_id veru ga unnayi. :-( sare aa query ki emi cheyyalo cheppu nayak mama.
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19900
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 10:08 am:   Edit PostDelete PostView Post/Check IP

mari aaa user)id,employee_id rendu unna table emanna unte daanni theesakocchi join cheyyi..
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15382
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:08 am:   Edit PostDelete PostView Post/Check IP

undi mama, kani adi primary kadu, konnitiki null sachindi. :-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19899
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 10:08 am:   Edit PostDelete PostView Post/Check IP

Nayak maama..
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15381
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:07 am:   Edit PostDelete PostView Post/Check IP

user_id undi mama, kaani aa id nenu join cheyyalsina table lo ledu. :-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19898
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 10:07 am:   Edit PostDelete PostView Post/Check IP

ainaa emplyee ID ledhaa FU table lo..
Top of pagePrevious messageNext messageBottom of page Link to this message

Nayakudu
Vooriki Bewarse
Username: Nayakudu

Post Number: 3582
Registered: 05-2005
Posted From: 136.182.2.221
Posted on Thursday, May 04, 2006 - 10:06 am:   Edit PostDelete PostView Post/Check IP

babu hemanth oka primary key create chesi thagaladu mama... users ni alaga maintain chesedi darunam ga... user id ani field create sheci user id anna ivvu prathi employee ki
lekpothey sequence generate dnumber create cheyii rendu tables lo...
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15380
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 10:03 am:   Edit PostDelete PostView Post/Check IP

thelsu mama, ala vasthundi, ippudu avi manual ga elimate cheyyali, anthakanna option ledu. :-) suppose username CCameron ani undi anuko employees ila undochu Connie Cameron Capel Cameron, rendu rows vasthayi oka username, avi fix cheyyali aa next. mundu assala partial data ravali mama. :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Bob
Vooriki Bewarse
Username: Bob

Post Number: 3311
Registered: 03-2005
Posted From: 64.126.29.9
Posted on Thursday, May 04, 2006 - 10:02 am:   Edit PostDelete PostView Post/Check IP

nayukudu mama
VEERABHADRA
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19896
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 10:01 am:   Edit PostDelete PostView Post/Check IP

maama...alaa SUBSTR pedithe data thappu vasthundemo...
ilaa unnayanuko last and first names..appudu 1st letters in both last name and first name match avuthaayi..so result thappu vasthundemo..daaniki artham kaaadhu join elaa cheyyalo

Jakka Hemanth (J,H)
Janugula Hanuman (J,H)
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15377
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:49 am:   Edit PostDelete PostView Post/Check IP

join chesthaniki inkem levu mama, unnavi ive. substr ante substring function maam

ippudu fu table loni username ante entane username loni 1st letter cted table loni 1st name loni 1st letter annamata. fu.username loni remaining name cted table loni last name annamata.

ippudu aa condition deniki pettanu ante avi ala equal ayina valla names paina email id kosam thesthunna, equal lekapothe ante fu.username anevadu cted lo lekapothe just fu table loni row ne thecheyyali annamata.
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19893
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 9:45 am:   Edit PostDelete PostView Post/Check IP

ee rendu tables join cheyyataaniki inkemi levaa maama fields..
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19892
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 9:44 am:   Edit PostDelete PostView Post/Check IP

asalu FU and CTED tables ilaa join chesaavaa... naakartham kaaledhu

asalu primary key enti..

fu.user_name = cted.last_name
fu.user_name = cted.first_name

indulo SUBSTR ante enti...

paigaa ee rendu joins satisfy avvalaa....lekapothe okkadaaniki outer pettinaa chaala...
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15373
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:27 am:   Edit PostDelete PostView Post/Check IP

cted.last_name(+)
and cted.first_name(+) ila petta mama outer join ento vachayi kani rows extra vasthunnayi. :-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15372
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:27 am:   Edit PostDelete PostView Post/Check IP

idi mama.

AND (UPPER(SUBSTR(fu.user_name, 2)) = UPPER(cted.last_name)
AND UPPER(SUBSTR(fu.user_name, 1,1)) = UPPER(SUBSTR(cted.first_name,1,1))
Top of pagePrevious messageNext messageBottom of page Link to this message

Gochi
Bewarse ke Bewarse!
Username: Gochi

Post Number: 19890
Registered: 07-2004
Posted From: 162.136.192.1
Posted on Thursday, May 04, 2006 - 9:16 am:   Edit PostDelete PostView Post/Check IP

WHERE ( FU.END_DATE IS NULL OR fu.end_date >= TRUNC(SYSDATE) )
AND (UPPER(SUBSTR(fu.user_name, 2)) = UPPER(cted.last_name)
AND UPPER(SUBSTR(fu.user_name, 1,1)) = UPPER(SUBSTR(cted.first_name,1,1))
)

indulo second condition annave...edi adhi maama...
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15371
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:11 am:   Edit PostDelete PostView Post/Check IP

naa req entante fu table ni employees 1st where condition loni vaallantha raavali, at the same 2nd where condition denikante adi satisfy ayina vaalla 1st name, last_name employee id thesthaniki. 2nd condition satisfy avvakapoyina aa rows raavali. ela mamalu. ardam ayyinda nenu adigindi??
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15370
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:09 am:   Edit PostDelete PostView Post/Check IP

naaku kavalsindi entante aa 2nd where condition satisfy avvakapoyina paina unna 1st condition lonu fu table loni details raavali mamalu?? 2nd where condition ni ela marchali??
Top of pagePrevious messageNext messageBottom of page Link to this message

Hemanth
Bewarse ke Bewarse!
Username: Hemanth

Post Number: 15369
Registered: 03-2004
Posted From: 65.196.167.82
Posted on Thursday, May 04, 2006 - 9:07 am:   Edit PostDelete PostView Post/Check IP

naa query idi.

SELECT DISTINCT CTED.EMPLOYEE_ID, fu.user_name, NVL (cted.email_address,
CTED.first_name || '_' || CTED.last_name || '@' || 'xxxx.com'
) email_address, cted.payroll_company_id, FU.START_DATE, FU.END_DATE FROM fnd_user fu, xxx_tande_employees_data cted
WHERE ( FU.END_DATE IS NULL OR fu.end_date >= TRUNC(SYSDATE) )
AND (UPPER(SUBSTR(fu.user_name, 2)) = UPPER(cted.last_name)
AND UPPER(SUBSTR(fu.user_name, 1,1)) = UPPER(SUBSTR(cted.first_name,1,1))
)
ORDER BY fu.user_name