Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:41:00+00:00 2026-06-17T15:41:00+00:00

The code I have is SELECT dbo.COL_TBL_WAGES.[Job Group], SUM(CASE WHEN RRDD NOT LIKE ‘12%’

  • 0

The code I have is

    SELECT     dbo.COL_TBL_WAGES.[Job Group], SUM(CASE WHEN RRDD NOT LIKE '12%' AND RRDD NOT LIKE '13%' AND RRDD NOT LIKE '16%' AND RRDD NOT LIKE '17%' AND 
                      RRDD NOT LIKE '2706%' AND RRDD NOT LIKE '2707%' AND RRDD NOT LIKE '2331' THEN DUR_IN_HOURS ELSE 0 END) AS SP_DOM_HOURS, SUM(CASE WHEN RRDD NOT LIKE '12%' AND RRDD NOT LIKE '13%' AND RRDD NOT LIKE '16%' AND RRDD NOT LIKE '17%' AND RRDD NOT LIKE '2706%' AND RRDD NOT LIKE '2707%' AND RRDD NOT LIKE '2331%' THEN CAST([2011 Total] AS FLOAT)*CASE WHEN IsNumeric([DUR_IN_HOURS]) =1 THEN CAST([DUR_IN_HOURS] AS FLOAT) ELSE 0 END)) AS SP_DOM_COST
FROM         dbo.COL_v_STD_REP_FullCourseDetail INNER JOIN
                      dbo.COL_TBL_WAGES ON dbo.COL_v_STD_REP_FullCourseDetail.Job_Group_Code = dbo.COL_TBL_WAGES.[Job Group Code] INNER JOIN
                      dbo.COL_TBL_WAGES_INTL ON dbo.COL_TBL_WAGES.[Job Group Code] = dbo.COL_TBL_WAGES_INTL.[Job Group Code]

The errors that arise Incorrect Syntax Near ‘)’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:41:01+00:00Added an answer on June 17, 2026 at 3:41 pm

    You are missing an END on the first CASE:

     SUM(CASE 
            WHEN RRDD NOT LIKE '12%' 
                AND RRDD NOT LIKE '13%' 
                AND RRDD NOT LIKE '16%' 
                AND RRDD NOT LIKE '17%' 
                AND RRDD NOT LIKE '2706%' 
                AND RRDD NOT LIKE '2707%' 
                AND RRDD NOT LIKE '2331%' 
            THEN CAST([2011 Total] AS FLOAT) 
          END -- this is missing
        *
        CASE 
            WHEN IsNumeric([DUR_IN_HOURS]) =1 
            THEN CAST([DUR_IN_HOURS] AS FLOAT) 
            ELSE 0 END) AS SP_DOM_COST
    

    Your full query would be:

    SELECT dbo.COL_TBL_WAGES.[Job Group], 
        SUM(CASE 
                WHEN RRDD NOT LIKE '12%' 
                    AND RRDD NOT LIKE '13%' 
                    AND RRDD NOT LIKE '16%' 
                    AND RRDD NOT LIKE '17%' 
                    AND RRDD NOT LIKE '2706%' 
                    AND RRDD NOT LIKE '2707%' 
                    AND RRDD NOT LIKE '2331' 
                THEN DUR_IN_HOURS 
                ELSE 0 END) AS SP_DOM_HOURS, 
        SUM(CASE 
                WHEN RRDD NOT LIKE '12%' 
                    AND RRDD NOT LIKE '13%' 
                    AND RRDD NOT LIKE '16%' 
                    AND RRDD NOT LIKE '17%' 
                    AND RRDD NOT LIKE '2706%' 
                    AND RRDD NOT LIKE '2707%' 
                    AND RRDD NOT LIKE '2331%' 
                THEN CAST([2011 Total] AS FLOAT) END
            *
            CASE 
                WHEN IsNumeric([DUR_IN_HOURS]) =1 
                THEN CAST([DUR_IN_HOURS] AS FLOAT) 
                ELSE 0 END) AS SP_DOM_COST
    FROM  dbo.COL_v_STD_REP_FullCourseDetail 
    INNER JOIN dbo.COL_TBL_WAGES 
        ON dbo.COL_v_STD_REP_FullCourseDetail.Job_Group_Code = dbo.COL_TBL_WAGES.[Job Group Code] 
    INNER JOIN dbo.COL_TBL_WAGES_INTL 
        ON dbo.COL_TBL_WAGES.[Job Group Code] = dbo.COL_TBL_WAGES_INTL.[Job Group Code]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currenlty have this code SELECT JOB.JobID, A.adID, AR.ARNum FROM dbo.vEvent AS E, dbo.[vAd]
I have code like this: function search_keyword(){ $keyword = $this->db->escape_like_str(trim($_POST['keyword'])); $sql = ( SELECT
I have a stored procedure that uses this select statement: SELECT dbo.VendorProgram.id, dbo.VendorProgram.CODE, dbo.Programs.ProgramName
In my VB.net code i have: cmd.CommandText = SELECT * FROM [strfg].[dbo].[Myfunc] (@MyParam) Dim
I have this code: merge dbo.tblProblems as target using ( select max(problemID), StationName, problemCode,
This is the code I have : $sqlz = SELECT t1.user_id, t2.status, t2.email FROM
I have code below: <select id=testSelect> <option value=1>One</option> <option value=2>Two</option> </select> <asp:Button ID=btnTest runat=server
Can I select a block of code and have IntelliJ wrap it with a
I have this code for a select box which is being displayed by the
I have this code here printf '$request1 = select * from whatever where this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.