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

 PHP - Codecharge - complex query

Print topic Send  topic

Author Message
Riojan
Posted: 04/12/2005, 6:30 AM

I'm a newbie in both php and codecharge. I'm using PHP and Postgresql + Apache. I've a table that include the following fields:

emp_id, date_contract, category, duration.

Where emp_id is the employee internal code, date is the beggining date of the contract, category is the function of the employee (teacher degree1, teacher degree2, teacher degree3...), duration is the number of days of that contract. The emp_id+date are the primary key. This table represents the carreer evolution of each employee in the enterprise. How would i know (and implement in codecharge or php):

1) last category of each employee (the present one)
2) end date of the contract (date_contract + duration)

Thanks in advance for your attention
Nicole

Posts: 586
Posted: 04/13/2005, 1:56 AM

Riojan,
I’m not an expert in PostgreSQL but I suppose that you can build queries using Postgre date/time functions which return data you mentioned

_________________
Regards,
Nicole
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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