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 8358311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:45:18+00:00 2026-06-09T10:45:18+00:00

I am running below select statement and 100% certain that the 2nd line is

  • 0

I am running below select statement and 100% certain that the 2nd line is causing the issue since the subquery runs fine.

Is Where (first,second) IN a valid statement?

The reason I am doing this query is that I will then replace the first select with a delete, so I just want to make sure I am getting the set I want.

select * from edit_proj_isbn e
where (e.record_id, e.proj_isbn)
IN
(
    select t_r.record_id, t_r.proj_isbn from editorial e,
    (
        select ed.record_id as record_id, substring(d.file_name, 1, 13) as epubisbn, epi.proj_isbn as proj_isbn, ed.asset_subtype as asset_subtype
        from editorial ed join doc_renditions d on ed.record_id = d.record_id join edit_proj_isbn epi on ed.record_id =  epi.record_id 
        where (ed.asset_subtype like 'epub' or ed.asset_subtype like 'updf' )
        and substring(d.file_name, 1, 13) not like epi.proj_isbn
    ) AS t_r
    where t_r.record_id=e.record_id
)

I get below error, with the 2nd line highlighted:

Msg 4145, Level 15, State 1, Line 2
An expression of non-boolean type specified in a context where a condition is expected, near ‘,’.

Thanks,
Bruce

  • 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-09T10:45:19+00:00Added an answer on June 9, 2026 at 10:45 am

    Is Where (first,second) IN a valid statement?

    No it is not a valid statement. You need a separate WHERE clause for each of those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Upon running the below SQL statement (which works perfectly) I've found that all tables
I have a query that's running slow (in a loop of about 100 it
Running the below select on a MySql table containing 1500000 rows will take approximately
I am running the simple query below select '''' + event_number + '''' +','
Below is my shell script that is working fine. #!/bin/bash DATE_YEST_FORMAT2=`perl -e 'use POSIX
I am running below code as root and using python2.6.1, platform is linux >>>
I am running the query below in Sybase application which works great but the
Hello friends i am running code given below which contains the setLogTimeEntery function and
I receive the error below when running the following function. The catch says the
I get the following error when running the code below: invalid byte sequence in

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.