IF Statement Syntax

  • I need help. There is a syntax problem with code below.

    If (select CPUTM from [dbo].[System_Management_Facility] where CPUTM > '0:00:55.38')

    THEN PRINT 'GOOD'

  • Try this:

    If exists

    (

    select CPUTM

    from [dbo].[System_Management_Facility]

    where CPUTM > '0:00:55.38'

    ) PRINT 'GOOD'

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

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