Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DROP AGGREGATE LAczZnakiA
- GO
- DROP AGGREGATE LiczZnakiA
- GO
- DROP AGGREGATE GeoAve
- GO
- DROP ASSEMBLY GeoAveA
- GO
- CREATE ASSEMBLY GeoAveA
- FROM 'C:\e740\repos\Funkcje\FunkcjeAgregujace\FunkcjeAgregujace\bin\Debug\FunkcjeAgregujace.dll'
- WITH PERMISSION_SET = SAFE;
- GO
- CREATE AGGREGATE GeoAve(@s FLOAT)
- RETURNS FLOAT
- EXTERNAL NAME GeoAveA.GEOAVE;
- GO
- CREATE AGGREGATE LiczZnakiA(@s nvarchar(MAX))
- RETURNS INT
- EXTERNAL NAME GeoAveA.LiczZnaki;
- GO
- CREATE AGGREGATE LaczZnakiA(@s nvarchar(MAX))
- RETURNS nvarchar(255)
- EXTERNAL NAME GeoAveA.LaczZnaki;
- GO
- SELECT IdDzialu, dbo.LiczZnakiA(Imie)
- FROM Osoby
- GROUP BY IdDzialu
- SELECT IdDzialu, dbo.LaczZnakiA(Imie)
- FROM Osoby
- GROUP BY IdDzialu
Add Comment
Please, Sign In to add comment