You are here: Re: Query question « MsSQL Server « IT news, forums, messages
Re: Query question

Posted by Yannick Turgeon on 10/02/83 11:33

Ok. Thanks to both of you.

I think something like:

SELECT a.data
FROM #Test a
WHERE a.type = 'A'
GROUP BY a.type
HAVING pid = MAX(pid)

or even better:

SELECT a.data
FROM #Test a
WHERE a.type = 'A'
AND pid = MAX(pid)

would be a good functionnality (with MAX or any other aggregate
function) to add to transact/SQL or to SQL standard.

Yannick

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация