MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 23rd, 2004, 08:39 AM
raviKumar001 raviKumar001 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 raviKumar001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile UNION ALL in Crystal Reports 8.5 - Pls Help

Hi,

I need to use UNION ALL in CRystak 8.5 between 2 tables. I need to select 3 columns in total from both the tables. one of them is same in both the tables, other 2 are different and will have to come one from each table.

I could use UNION ALL for common fields, but when I select the extra fields,it gives me error. I could run the run on SQL server without any problem.

Table A :-

Co_No Xy_Nm

------------- -------------------------

204 DAVID

204 W

204 KELLY

(3 row(s) affected)


Table B:-

Co_No Yz_Nm

---------- -------
204 BARRY

(1 row(s) affected)



SQL Query:--

SELECT
A."Co_No", "-" Yz_Nm, A."Xy_Nm"
FROM
A UNION ALL SELECT B."Co_No", B."Yz_Nm", "-" Xy_Nm FROM B



OUTPUT WHEN RUN ON SQL SERVER:-


Co_No Xy_Nm Yz_Nm
------ ------ ---------
204 DAVID -

204 W -

204 KELLY -

204 - BARRY




But This query does not run on Crystal "Show SQL Query". Its not allowing me to select additional rows. Whats the alternate way?? Can somebody suggest me. Appreciate your help in this. Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > UNION ALL in Crystal Reports 8.5 - Pls Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway