ShawnMolloy
MIS
Why does this query not work?
select A.*, c.count(*) views, B.Username from video a
inner join user b on a.userid = b.userid
inner join video_view c on a.videoid = c.videoid
It complains:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '*'.
I also tried c.count(videoid) and count(c.videoid)... neither worked.
Thanks,
Shawn Molloy
Seattle, WA
select A.*, c.count(*) views, B.Username from video a
inner join user b on a.userid = b.userid
inner join video_view c on a.videoid = c.videoid
It complains:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '*'.
I also tried c.count(videoid) and count(c.videoid)... neither worked.
Thanks,
Shawn Molloy
Seattle, WA