Jump to content

Ms Sql Server Technology Discussions


9Pardhu

Recommended Posts

I think i understood your requirement now.. use this

select t1.*, t3.*
from Table1 t1
join (select ID, max(inactive_date) as inactive_date from Table2 group by ID) t2 on t2.ID =t1.ID
join Table2 t3 on t3.ID = t2.ID and t3.Inactive_Date = t2.inactive_date and t1.Name = t3.name and t1.State = t3.State

idi chestey only anni match aina data maatramey vastundi.. if this is not what you want.. inka clear ga cheppali ni situation ni...

Link to comment
Share on other sites

[quote name='loveindia' timestamp='1359489194' post='1303196832']

aaa tooch tooch... idi nenu raasinaa query... :(.. endi va darling office loney anukuntey ikkada kuda naa credit kottestunnav... :P ... just kidding.. Thanks baa..

Mr.Karthikeya, nuvvu cheppina requirement ki adey query... neeku result set ela kaavalo adi chupi aitey... raayadaniki try chesta... :)
[/quote]

ninnu elevate chestunna bhayya, but good one more SQl guy Added. keep going

Link to comment
Share on other sites

[quote name='Kaarthikeya' timestamp='1359488798' post='1303196797']

second join daggara date meeda kuda cheyyaalaa? sCo_^Y
ala chesina cheyyakapoina diff em kanipinchaledu naaku sCo_^Y
[/quote]
aah join lekapotey neeku ekkuva data unnapudu prob avtadi, so inactive date meeda cehstunnadu kada choodu oka saari

Link to comment
Share on other sites

[quote name='DARLING...' timestamp='1359489348' post='1303196852']

ninnu elevate chestunna bhayya, but good one more SQl guy Added. keep going
[/quote]

just kidding darling... voorkaney anna.... lets us rawk....

Link to comment
Share on other sites

[quote name='loveindia' timestamp='1359489972' post='1303196907']

just kidding darling... voorkaney anna.... lets us rawk....
[/quote]

oka foto tagliyyi nee display ki puclic etla telustadi nuvvani [img]http://img195.imageshack.us/img195/6559/brahmis.gif[/img]

Link to comment
Share on other sites

Thanks rey Guest, DARLING & Love BABA @3$%

BA ippudu vachi req change chesesindi @3$%

No need to use the above mentioned scenarios anymore @3$%

Link to comment
Share on other sites

[quote name='Kaarthikeya' timestamp='1359492749' post='1303197264']
Thanks rey Guest, DARLING & Love BABA @3$%

BA ippudu vachi req change chesesindi @3$%

No need to use the above mentioned scenarios anymore @3$%
[/quote]
ee gif eyyi aameiki [img]http://gifs.gifbin.com/042012/1335201586_newborn_baby_gives_the_finger.gif[/img]

Link to comment
Share on other sites

[quote name='DARLING...' timestamp='1359487321' post='1303196630']
eskoo naa raaja, dorkindi choodu


SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,*
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( 'tempdb')
AND OBJECT_ID=OBJECT_ID('test')

I Tested it in Local

but will check for 2000 wait.
[/quote]
[img]http://www.manadb.com/Smileys/default/Brahmi.gif[/img] aa blog lo di ethukochava? idi naaku work avvatle saami..anduke ga ikkada adigindi..[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
[quote name='DARLING...' timestamp='1359494319' post='1303197453']
ee gif eyyi aameiki [img]http://gifs.gifbin.com/042012/1335201586_newborn_baby_gives_the_finger.gif[/img]
[/quote][img]http://i56.tinypic.com/2w2r5gm.jpg[/img] appudu gaani naaku client chupinchadu adi [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

Link to comment
Share on other sites

[quote name='Kaarthikeya' timestamp='1359492749' post='1303197264']
Thanks rey Guest, DARLING & Love BABA @3$%

BA ippud[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]u vachi req change chesesindi @3$%

No need to use the above mentioned scenarios anymore @3$%
[/quote]


neeyavva..idedo nuv maaku test pettinattundi...biskit..[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

Link to comment
Share on other sites

[quote name='Kaarthikeya' timestamp='1359494790' post='1303197500']
[img]http://www.manadb.com/Smileys/default/Brahmi.gif[/img] aa blog lo di ethukochava? idi naaku work avvatle saami..anduke ga ikkada adigindi..[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
[img]http://i56.tinypic.com/2w2r5gm.jpg[/img] appudu gaani naaku client chupinchadu adi [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
[/quote]


[img]http://img835.imageshack.us/img835/9213/scryv.jpg[/img]

bhayapeditey ee samajam bhayapedtuney untundi [img]http://lh5.ggpht.com/-At7jmjxaerU/T9VQqYv6hbI/AAAAAAAAGnY/z7RQC2FO38g/s150/Dil%2520Raju.gif[/img]

Link to comment
Share on other sites

[quote name='DARLING...' timestamp='1359495165' post='1303197560']
[img]http://img694.imageshack.us/img694/571/scrrh.jpg[/img]
[/quote]

oori daarlingaaaa.... 2000 lo DMV's levu abayaa..... yeda unnavu nuvvu.. 2008 queries ettukocchi 2000 ki estaavuuu... pinal dave gaani website lo leva endi ivi nuvvu malli estey pscopk mayya ki kopam vastadi...

Link to comment
Share on other sites

[quote name='Guest' timestamp='1359495058' post='1303197542']


neeyavva..idedo nuv maaku test pettinattundi...biskit..[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
[/quote]
nijam ga vayya...last week ee issue raise chesinru..but nenu high priority issues meeda work cheyyadam valla ivaale open chesina idi...chuste bokka lekka undi...sare ani poyi BA ni saava D na...change the req andi [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]
[quote name='DARLING...' timestamp='1359495063' post='1303197543']


[img]http://img835.imageshack.us/img835/9213/scryv.jpg[/img]

bhayapeditey ee samajam bhayapedtuney untundi [img]http://lh5.ggpht.com/-At7jmjxaerU/T9VQqYv6hbI/AAAAAAAAGnY/z7RQC2FO38g/s150/Dil%2520Raju.gif[/img]
[/quote]

endidi SQL Server 2000 ey na? sCo_^Y

FT aithe nenu kuda ennaina chepta [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

Link to comment
Share on other sites

[quote name='loveindia' timestamp='1359495252' post='1303197572']
oori daarlingaaaa.... 2000 lo DMV's levu abayaa..... yeda unnavu nuvvu.. 2008 queries ettukocchi 2000 ki estaavuuu... pinal dave gaani website lo leva endi ivi nuvvu malli estey pscopk mayya ki kopam vastadi...
[/quote]
@gr33d [img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

Link to comment
Share on other sites

×
×
  • Create New...