Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Message #8630
Message
From
23/04/2003 15:23:34
 
 
To
23/04/2003 14:43:08
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00780751
Message ID:
00780781
Views:
8
Do any of these apply?

http://support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&withinResults=&QuerySource=gASr_Query&Product=sql&Queryc=8630&Query=8630&KeywordType=ANY&maxResults=25&Titles=false&numDays=

-Mike

>Dear friends,
>
>i have the follow SQL Code:
>
>SELECT *
>FROM
>(
> SELECT DtOcorrencias.DtGroup, CodCategorias.CodCategoria
> FROM
> (
> SELECT
> DateADD(ww,DatePart(ww,O01.DtOcorrencia)-1,'01/01/' + Cast(Year(O01.DtOcorrencia) AS varchar)) AS DtGroup
> FROM Ocorrencias O01
> WHERE
> O01.DtOcorrencia BETWEEN '02/15/2003' AND '04/17/2004'
> GROUP BY
> DateADD(ww,DatePart(ww,O01.DtOcorrencia)-1,'01/01/' + Cast(Year(O01.DtOcorrencia) AS varchar))
> ) DtOcorrencias,
> (
> SELECT
> O02.CodCategoria
> FROM Ocorrencias O02
> WHERE
> O02.DtOcorrencia BETWEEN '02/15/2003' AND '04/17/2004'
> GROUP BY
> O02.CodCategoria
> ) CodCategorias
>) CrossTab
>LEFT OUTER JOIN Ocorrencias
>ON
>DateADD(ww,DatePart(ww,Ocorrencias.DtOcorrencia)-1,'01/01/' + Cast(Year(Ocorrencias.DtOcorrencia) AS varchar)) = CrossTab.DtGroup
>AND Ocorrencias.CodCategoria = CrossTab.CodCategoria
>
>but when i run it i receive a error message # 8630.
>
>What´s wrong?
>
>thanks
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform