Solved

UNION query and image data type

Posted on 2010-11-10
3
684 Views
Last Modified: 2012-05-10
I have a UNION query that defines a view.  One of the columns in the query is a image data type.  When I try to save the view, I get this message:

"The image data cannot be selected as DISTINCT because it is not comparable".  

I understand how image data is not comparable, but where is the DISTINCT coming from?  I am not specifying DISTINCT.  Is there a way around this?
0
Comment
Question by:HLRosenberger
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 34101925
UNION is a implicit DISTINCT.

please use UNION ALL
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 34102214
Thanks!
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 34102216
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question