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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:34:02+00:00 2026-05-13T10:34:02+00:00

I want to filter records on ‘Email’ my query is like this. SELECT *

  • 0

I want to filter records on ‘Email’ my query is like this.

SELECT * FROM #temp WHERE email NOT IN (SELECT email FROM Customer)

It gives me following error

Cannot resolve the collation conflict
between “SQL_Latin1_General_CP1_CI_AS”
and “Latin1_General_CI_AS” in the
equal to operation.

I can use collate if there is equal operator (=) instead of IN. But using Collate here gives me syntax error.

SELECT * FROM #temp WHERE email NOT IN
(SELECT email FROM Customer) collate
SQL_Latin1_General_CP1_CI_AS

How can I resolve this. I can’t drop and re create tables because it is live db.

Data in #temp table is from SQL Server 2000 and Customer table is in SQL Server 2005

Thanks.

  • 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-05-13T10:34:02+00:00Added an answer on May 13, 2026 at 10:34 am
    ...
    NOT IN (SELECT email COLLATE SQL_Latin1_General_CP1_CI_AS AS email FROM Customer)
    

    The collate bit follows the column name, basically.

    Or this (it depends on which one you want):

    SELECT * FROM #temp WHERE email collate SQL_Latin1_General_CP1_CI_AS NOT IN (SELECT email FROM Customer) 
    

    Finally, if your DB is SQL_Latin1_General_CP1_CI_AS, one option is to use ...COLLATE Database_Default... to coerce to a default setting.

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

Sidebar

Related Questions

I want to filter out certain lines from stack traces using log4j (like net.sf.cglib.*
I want to filter out duplicate customer names from a database. A single customer
I want to filter records from given file based on some criteria,i want my
I want to filter a list of entities that I am fetching from a
I want to filter multiple values from an event in jQuery. At the moment
I want to filter all requests to my jersey servlet so I do this:
I want to filter rows from a data.frame based on a logical condition. Let's
I want to filter records on the basis of month. Requirement is in month
I want to filter my results to take only the X amount of records.
I read filter and exclude from django documentation but I want to know that

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.