CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Group By and Having

Print topic Send  topic

Author Message
hiraldesai

Posts: 38
Posted: 04/04/2007, 6:17 PM

Hi,

I am using aggregate functions and group by with "Table" as data source with 3-4 "WHERE" URL parameters. There is a need to use "HAVING" for one of the columns and according to the following topic I switched to "SQL" data source.

http://forums.yessoftware.com/posts.php?post_id=44287

This works fine but all the integer parameters are assigned a default value of 0 in the SQL view. And this value is mandatory for integer parameters. This means that when a given parameter is not supplied in the URL, it takes 0 as it's value and the query returns incorrect results. Ideally, when using "Table" datasource, if a parameter is not supplied, the expression is not evaluated.

I am sure there is a fix to this, I have tried looking for it in CodeCharge help without any success.

Any help would be greatly appreciated.

Regards,
Hiral


_________________
-------
Hiral
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.