Hallo Vera,

> 'Median' wird als Funktionssname nicht erkannt. 
> 
> �hnliche Funtkionen wie max, min, count funktionieren einwandfrei. 
> Aggregate aber zum Beispiel auch nicht. 

Median ist keine Aggregat-Funktion. Median geh�rt zu den
Analysis-Services... Check die Doku - das sql server books online... Ist
beim sql server dabei... Bzw. Auf der CD..

Um ein Median zu simulieren k�nntest Du sowas machen(ungetestet):

Select top 1 t1.spalte
from tabelle t1 inner join tabelle t2 on t2.spalte<t1.spalte
Group by t1.spalte
Having count(t2.spalte)=(select ceiling(count(*)/2) from tabelle)


Gruss,

Claudius (auch aus KA)

_______________________________________________
Database.asp mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/database.asp

Antwort per Email an