Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2013, 05:45 PM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default display null values

Dear all,

I have 3 tables and all the 3 tables are joined and created a command objet in crystal reports

Following are the tables and the command code.

My expected op is mentioned at the last.

Pls help me to create a report.


table a1

empno ename

1 a
2 b
3 c

table a2

empno dob

1 1
2 2
3 3

table a3

dob djoin

1 20130101
1 20130201
1 20130301
2 20140101
2 20140201
2 20140301
3 20150101
3 20150201
3 20150301

SELECT dbo.A1.empno, dbo.A1.ename, dbo.A2.dob, dbo.A3.djoin
FROM dbo.A3 RIGHT OUTER JOIN
dbo.A2 ON dbo.A3.dob = dbo.A2.dob RIGHT OUTER JOIN
dbo.A1 ON dbo.A2.empno = dbo.A1.empno

empno ename dob djoin

1 a 1 20130101
1 a 1 20130201
1 a 1 20130301
2 b 2 20140101
2 b 2 20140201
2 b 2 20140301
3 c 3 20150101
3 c 3 20150201
3 c 3 20150301



ip parameter is djoin
say 20130101 to 20130101
i want the following op

empno empname count
1 a 1
2 b 0
3 c 0

Thanks
Nick





Similar Threads
Thread Thread Starter Forum Replies Last Post
DateTimePicker Save/Display Null Values reyboy VB.NET 5 August 25th, 2007 04:11 AM
Avoid null display ajaidass ADO.NET 2 January 17th, 2007 03:54 PM
display no heading if null oleafo ASP.NET 1.0 and 1.1 Basics 1 January 8th, 2007 06:23 PM
Display all NULL columns hm_naveen Oracle 2 January 5th, 2007 09:50 AM
Null values jmcgranahan BOOK: Access 2003 VBA Programmer's Reference 0 August 29th, 2006 02:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.