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

  • Home
  • SEARCH
  • 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 9142463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:47:19+00:00 2026-06-17T09:47:19+00:00

The following code: SELECT * FROM portal.workflow AS w INNER JOIN portal.workflow_type AS wt

  • 0

The following code:

SELECT  *
FROM    portal.workflow AS w
        INNER JOIN portal.workflow_type AS wt
            ON w.workflow_type_id = wt.workflow_type_id
WHERE   wt.doc_type IN ('CentreEV', 'Expenditure Voucher')
        AND w.varchar_1 NOT IN (    select f1.BAT_NAME as 'DocumentFile'
                                    from openquery(QICRE_F1, 'select * 
                                                            from dbo.IO_GLF_BAT_CTL_VW 
                                                            where bat_stat = ''S'' ') f1
                                    where f1.USAGE_STAT = 'A'   ) 

Is throwing the following error:

Msg 468, Level 16, State 9, Line 1 Cannot resolve the collation
conflict between “Latin1_General_CI_AS” and “Latin1_General_CS_AS” in
the equal to operation.

I’ve tried to fix this with the following, but I’m receiving a syntax error. I’m at a loss (even after looking at documention) how this should be done in this instance:

SELECT  *
FROM    portal.workflow AS w
        INNER JOIN portal.workflow_type AS wt
            ON w.workflow_type_id = wt.workflow_type_id
WHERE   wt.doc_type IN ('CentreEV', 'Expenditure Voucher')
        AND COLLATE Latin1_General_CI_AS w.varchar_1 NOT IN 
                                (   select f1.BAT_NAME as 'DocumentFile'
                                    from openquery(QICRE_F1, 'select * 
                                                            from dbo.IO_GLF_BAT_CTL_VW 
                                                            where bat_stat = ''S'' ') f1
                                    where f1.USAGE_STAT = 'A'   ) 
  • 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-17T09:47:21+00:00Added an answer on June 17, 2026 at 9:47 am

    Possibly 2 issues with your query. Try something like this

    ...
    WHERE ...
       AND w.varchar_1 COLLATE Latin1_General_CI_AS IN  
    ...
    

    You may need to add that same syntax to your openquery command. This is where I’m not sure if it will work as you may need to use the linkedserver.database.schema.table syntax — just need to test it. But something like this:

    from openquery(QICRE_F1, 'select bat_name COLLATE Latin1_General_CI_AS  
       from dbo.IO_GLF_BAT_CTL_VW 
       where bat_stat = ''S'' ') f1
    

    Good luck.

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

Sidebar

Related Questions

I have following MySQL Code: SELECT * FROM b_movies, b_mov_rol_celeb, b_starcast LEFT JOIN bb_celebs
Assuming that I have the following T-SQL code: SELECT * FROM Foo f INNER
I wrote the following code to select text from database,but when i echo the
I have the following code: function isValidAuthor($authorID){ $query = SELECT * FROM jos_users WHERE
I normally use the following code in SQL Server: IF EXISTS (SELECT * FROM
I am trying to code the following query using Zend_Db api's: select * from
I Have following code with LINQ var q = (from web in DataContext.Webs select
I'm running the following code to get a random entry from a dictionary: SELECT
How should I understand $(select option:selected) in the following code ? (taken from here
I have the following code $result = $handle->select()->from('store_details') ->where('store_details.store_id=?', $id) ->columns('store_details.store_name'); //->query(ZEND_DB::FETCH_OBJ); However, when

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.