deals2buy Posted November 7, 2012 Author Report Posted November 7, 2012 [quote name='Jeedeelu' timestamp='1352315382' post='1302759107'] ne vuddesam lo active define cheyyi... neeku thelusthe exact ga ah sign vaduko...where clause lo.. do inner join with ur result table to table 3... [/quote] active ante oka tablet ki expiry date palaana data untundi kadaa.. adi ivaalti date kante ekkuva unte adi esukovachu - which mean its active ani (idi example ) inner join chesta..repu deploy ayyaka emaina teda kodithe mimmalni andarini sampestha
Vaampire Posted November 7, 2012 Report Posted November 7, 2012 [quote name='deals2buy' timestamp='1352315157' post='1302759083'] Table 3 reference lekka vayya..child tables lo kotha ids evadaina insert cheste appudu paristhiti endi ani asking..so avi kuda pull cheyyalana leda ani and filter lo > use cheyyali vayya..active antunte malli inactive chupistaru endi vayya? [/quote] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]select * from resultset where customerId [b]not in[/b] (select customer id where date < getdate())[/background][/size][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]nee jaffa. idhi pani chesthundi.[/background][/size][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]nenu not in use chesa choodu. not in eliminate chesthundi[/background][/size][/font][/color]
deals2buy Posted November 7, 2012 Author Report Posted November 7, 2012 [quote name='Vaampire' timestamp='1352317000' post='1302759298'] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]select * from resultset where customerId [b]not in[/b] (select customer id where date < getdate())[/background][/size][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]nee jaffa. idhi pani chesthundi.[/background][/size][/font][/color] [color=#282828][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]nenu not in use chesa choodu. not in eliminate chesthundi[/background][/size][/font][/color] [/quote] vayya sarigga chudaledu..aina enduku mundu negative ga check cheyyadam...postive ga check cheyyochu ga
chicago Posted November 7, 2012 Report Posted November 7, 2012 insuuficient data ...try to provide columns from reuslts set
deals2buy Posted November 7, 2012 Author Report Posted November 7, 2012 [quote name='m8espartan' timestamp='1352318670' post='1302759528'] insuuficient data ...try to provide columns from reuslts set [/quote] enduku insufficient vayya? paina answers ichinollatha piccholla? result set lo oka column ne pull chestunna..adi table 3 tho joining anna..daani columns provide chesanu..inkem kaavali neeku?
chicago Posted November 7, 2012 Report Posted November 7, 2012 first post lo sariga ledhu vayya....first page chadhuvuthay idea vachindhi...neeku active customerkavali maku ela telusthayi first table customer details undi second table calender table ayi joined on custoemrid filter condition lo active undey date esthay ok...malli resultset with table 3 anavu kadha dantlo 4 columns unayi simple ga customer id tho inner join chetshay active ga unadhi vasthundhi with date filter condition....ardmau kakuntay painollu cheppindhi cheyyi swary...
deals2buy Posted November 7, 2012 Author Report Posted November 7, 2012 [quote name='m8espartan' timestamp='1352319565' post='1302759653'] first post lo sariga ledhu vayya....first page chadhuvuthay idea vachindhi...neeku active customerkavali maku ela telusthayi first table customer details undi second table calender table ayi joined on custoemrid filter condition lo active undey date esthay ok...malli resultset with table 3 anavu kadha dantlo 4 columns unayi simple ga customer id tho inner join chetshay active ga unadhi vasthundhi with date filter condition....ardmau kakuntay painollu cheppindhi cheyyi swary... [/quote] ardhmaiindi mama..ippudu naaku inko doubt vachindi join use cheyyala leka result set ni table 3 tho compare cheyyala like select * from resulset where customer_id in (select customer_id from table3 where date > @date) ani so which one will be best option?
chicago Posted November 7, 2012 Report Posted November 7, 2012 [quote name='deals2buy' timestamp='1352319739' post='1302759679'] ardhmaiindi mama..ippudu naaku inko doubt vachindi join use cheyyala leka result set ni table 3 tho compare cheyyala like select * from resulset where customer_id in (select customer_id from table3 where date > @date) ani so which one will be best option? [/quote] i guess it will give you exact solution what you required ...join badhulu sub query use chesthunavu antay difference ...but joins are effective and faster compared to subquery..
deals2buy Posted November 7, 2012 Author Report Posted November 7, 2012 [quote name='m8espartan' timestamp='1352323203' post='1302760071'] i guess it will give you exact solution what you required ...join badhulu sub query use chesthunavu antay difference ...but joins are effective and faster compared to subquery.. [/quote] ya ikkada ade problem...anduke subquery use cheyyalante bhayam ga undi...report lo open chesinappudu gantalu gantalu run aithe malli prob kadaa anduke...anyways thanks for the reply
Recommended Posts