Jump to content

Microsoft Access,SQL thelisina vallu unnara............Koncham urgent


Recommended Posts

Posted

[quote author=manoghna link=topic=151095.msg1762967#msg1762967 date=1296765947]
details table lo PIDM column containing a primary key...it should maintain uniqness mari a column lo values repeat avthunnai annaru enti naku ardham kaledhu..a table lo values miru sample ga insert chesukunava leka already database lo vunaya?
[/quote]

good question and  iamme answer cheyyi please

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

  • iamme

    16

  • manoghna

    13

  • vaasu

    11

  • ramu

    7

Top Posters In This Topic

Posted

[quote author=nandamuribidda link=topic=151095.msg1762941#msg1762941 date=1296765703]
i couldn't understand your problem correctly but the first thing that stuck my mind is 2 tables same metadata naa kadaa
if so union all kotti then could you post the answer

if not full outer join chesi results post cheyyi then i can try for some answer
[/quote]hmm i think he might used union all andhuke with out uniqness he was getting repatitive values....as far as i know union all use cheyakudadhu ikada...may be na assumption worng kooda avochu..

Posted

second query ki answer

=ny ni alane unchu
<>ny ni koncham marchu

where School_STATE_CODE<>ny and PIDM not in (select PIDM from tablename where School_STATE_CODE='ny')

Posted

[quote author=manoghna link=topic=151095.msg1762993#msg1762993 date=1296766194]
hmm i think he might used union all andhuke with out uniqness he was getting repatitive values....as far as i know union all use cheyakudadhu ikada...may be na assumption worng kooda avochu..
[/quote]

just union all vadithe he should'nt miss the 65-ny63-ny right he should have got what ever he has

Posted

[quote author=manoghna link=topic=151095.msg1762967#msg1762967 date=1296765947]
details table lo PIDM column containing a primary key...it should maintain uniqness mari a column lo values repeat avthunnai annaru enti naku ardham kaledhu..a table lo values miru sample ga insert chesukunava leka already database lo vunaya?
[/quote]
a primary key can be a collection of more than one columns.
if 2 columns are attached to primary key, then it will allow duplicate values for one column.  sHa_high5ing sHa_high5ing

Posted

Its not a union Query...




PIDM anedi vere table lo primary key......AA 3 tables ni link chesi i created a query and make table chesanu result ni.....
So PIDM is not Primary in this...Infact ee Result table lo Primary keys ae levu it is just using the fields in other tables....
but ippudu naku em kavalante....I want this table to be having unique PIDMS......

Wat i tried was :
                                  Result table untundi kada....aa table ki i went to the indexes and tried to make it unique but already dantlo duplicates undatam valla.....it was raising some error...

I dint get how to do it.....


any more question???

Posted

[quote author=nandamuribidda link=topic=151095.msg1762976#msg1762976 date=1296766044]
good question and  iamme answer cheyyi please
[/quote]

Already database lo unnay..I dint insert any...Im automating it...So i wnt insert also

Posted

[quote author=manoghna link=topic=151095.msg1762912#msg1762912 date=1296765446]
vaka sari details,shrd,sbgi .....e tables lo vunna columns names ikada post cheyandi miku kudirithe.....
[/quote]

MAnaki main ga kavalsina Columns ive...Apart from these....SHRD table lo GRAD_DATE  and ACTIVITY _DATE ani untay...but maa Vallu sarigga maintainc heyaledu database....champesthunnaru....

Posted

[quote author=Alexander link=topic=151095.msg1763037#msg1763037 date=1296766632]
a primary key can be a collection of more than one columns.
if 2 columns are attached to primary key, then it will allow duplicate values for one column.  sHa_high5ing sHa_high5ing
[/quote]so apudu danini composite key antam kadha...ala aina sare duplicate allow cheyavu kadha...primary key allows to identify each row uniquely mari duplicates allow chesthundha... sSa_j@il

Posted


first quesry answer

select distinct PIDM,AGE,school,School_STATE_CODE
from (write ur query here)


but this result will not have SBGI.
we cant run this if u want SBGI to be there in the final result
Posted

[quote author=manoghna link=topic=151095.msg1763121#msg1763121 date=1296767505]
so apudu danini composite key antam kadha...ala aina sare duplicate allow cheyavu kadha...primary key allows to identify each row uniquely mari duplicates allow chesthundha... sSa_j@il
[/quote]
if a primary key is attached to 2 columns say column1, column2

column1 column2
1            1
1              2
1              3


the above rows can be inserted into table.
[color=red]if 2 columns are attached to primary key, then it will allow duplicate values for one column[/color]

Posted

[quote author=iamme link=topic=151095.msg1763070#msg1763070 date=1296767004]
Its not a union Query...




PIDM anedi vere table lo primary key......AA 3 tables ni link chesi i created a query and make table chesanu result ni.....
So PIDM is not Primary in this...Infact ee Result table lo Primary keys ae levu it is just using the fields in other tables....
but ippudu naku em kavalante....I want this table to be having unique PIDMS......

Wat i tried was :
                                  [b]Result table untundi kada....aa table ki i went to the indexes and tried [/b] to make it unique but already dantlo duplicates undatam valla.....it was raising some error...

I dint get how to do it.....


any more question???
[/quote]result table ki asalu index endhuku create chesaru?defent ga error vasthadhi bcoz index endhuku create chestham ante performance kosam kadha...if you want to get the data from the table which contains lot of rows..we create indexes..so that u get that data quickly..

Posted

[quote author=manoghna link=topic=151095.msg1762912#msg1762912 date=1296765446]
vaka sari details,shrd,sbgi .....e tables lo vunna columns names ikada post cheyandi miku kudirithe.....
[/quote] ee name.. one of classmates dhi....  sCo_hmmthink sCo_hmmthink sCo_hmmthink

Posted

[quote author=Alexander link=topic=151095.msg1763150#msg1763150 date=1296767693]
if a primary key is attached to 2 columns say column1, column2

column1 column2
1            1
1              2
1              3


the above rows can be inserted into table.
[color=red]if 2 columns are attached to primary key, then it will allow duplicate values for one column[/color]
[/quote]ho ok kani inka doudts vasthunnai can i ask you and clarify my doudt  sSc_hiding2

Posted

orei babu...kodhiga time pattina...clear ga nee base tables... neeku kavalasina result table (sample)/...nee question ikkada veyyi.... tvaraga pani ayidhi ... ila guess lu kotte pani taggidhi....result vachidhi....  sHa_fr1ends sHa_fr1ends

×
×
  • Create New...