mastermind455
ISP
Hi all
I use the SQL Statement below to query a customer database
sql="SELECT COUNT(TLD) AS Anzahl FROM [Kunden] WHERE [Kunden].[TLD] IS NOT NULL UNION SELECT * FROM [SELECT count(*) AS Anzahl,TLD From [Kunden] WHERE TLD IS NOT NULL GROUP BY TLD] AS Subquery ORDER BY Anzahl DESC"
Now the following Error appears in the browser:
Falsche Syntax in der Nähe von ']'.
(wrong syntax near to ]
whats wrong?
thanks for your help
best regards
E.Altherr
I use the SQL Statement below to query a customer database
sql="SELECT COUNT(TLD) AS Anzahl FROM [Kunden] WHERE [Kunden].[TLD] IS NOT NULL UNION SELECT * FROM [SELECT count(*) AS Anzahl,TLD From [Kunden] WHERE TLD IS NOT NULL GROUP BY TLD] AS Subquery ORDER BY Anzahl DESC"
Now the following Error appears in the browser:
Falsche Syntax in der Nähe von ']'.
(wrong syntax near to ]
whats wrong?
thanks for your help
best regards
E.Altherr