Need help

  • ;WITH xmlnamespaces (default 'http://schema.cvent.com/surveys/XMLSchema.xsd')

    SELECT count(*) FROM dbo.EVENT_ANSWER

    WHERE answer_detail.value('fn:count(/ANSWERS/Answer/@answ_text)', 'int')

    getting below error

    Msg 4145, Level 15, State 1, Line 3

    An expression of non-boolean type specified in a context where a condition is expected, near ')'.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Bhuvnesh

    Looks like you've left a "=" or a "LIKE" or some such out of your WHERE clause.

    John

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply