CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 compare data of two grids

Print topic Send  topic

Author Message
viktor
Posted: 04/08/2005, 7:22 AM

Is it possible to "compare" data of two grids?

i.e. we have "Grid1" and "Grid2".

Grid 1 shows field1_id - 1,2,3,4,7,8,9
Grid 2 shows field2_id - 1,2,3,4,5,6,7,8,9

How to make Grid 2 not to show what is in Grid 2. That is - 6, 7 only.

These two grids are based on two different tables. But since table 2 for Grid 2 has field2_id as "duplicatable" I can not put them both in a query. I have tried already DISTINCTROW etc in MySQL - no luck

Maybe there is a simple way of doing it in CCS in the very Grid?

Thanks for assistance!

Viktor


mrachow


Posts: 509
Posted: 04/10/2005, 3:32 AM

Hi victor,

I would suggest to filter by SQL.
Quote :
But since table 2 for Grid 2 has field2_id as "duplicatable" I can not put them both in a query
.
You should always be able to precede ec´very column by table name.
If you use Studios Data Source dialog it will be done automatically for columns occuring in more than one table.
A potential problem I see is that only the newest versions of MySQL are supporting subqueries and I think they are needed here.

_________________
Best regards,
Michael
View profile  Send private message
viktor
Posted: 04/19/2005, 4:34 AM

Here is a good source for rewriting subqueries for earlier versions of mysql
viktor
Posted: 04/19/2005, 5:04 AM

Here is a good source for rewriting subqueries for earlier versions of mysql
http://dev.mysql.com/doc/mysql/en/rewriting-subqueries.html

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.