Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

query help

$
0
0

I have written the following code:

SELECT a.name

FROM Artist a, Author au, Arts o

WHERE a.aid=au.author AND au.art=o.oid AND COUNT (o.type)=2

GROUP BY a.name ; 

But when i try to run it it shows that i have a syntax mistake with COUNT() commant..

Can you please help me? What is going wrong?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>