CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Join syntax

Print topic Send  topic

Author Message
roeya


Posts: 181
Posted: 12/05/2005, 1:14 PM

Can I change the syntax of table joining from
SELECT *
FROM (cities LEFT JOIN city_aliases ON
cities.id = city_aliases.id) LEFT JOIN city_phones ON
cities.id = city_phones.city_id

To
SELECT *
FROM
cities
LEFT JOIN city_aliases ON cities.id = city_aliases.id
LEFT JOIN city_phones ON cities.id = city_phones.city_id

The first sysntax is not compatible with my database
the second is OK,

I know I can do custom SQL but it takes more time to create and debug and has less flexible sorting
_________________
http://www.infoneto.com/
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/05/2005, 9:52 PM

If I have a complex query to create I usually either write it down (one or more times) and or create it within the database itself (database design tool) in order to help me determine if it is allowed. From there I then cut and paste or I recreate the query using the query design tool in CCS.

Sometimes it is worth the effort to recreate the query outside of CCS before you actually use it inside CCS.

Just a thought.
View profile  Send private message
roeya


Posts: 181
Posted: 12/05/2005, 11:43 PM

I am not talking about complex query I am talking about simple master table query with 3-4 tables that should be joined.

Anyway I checked CCS installation and found that every database type has joinSyntax, joinType definitions, my is configured as
joinSyntax="JOIN"
joinType="Simple"
however it behaves the same as joinType="Default"
maybe someone from yessoftware can check it ? I have already contacted support


_________________
http://www.infoneto.com/
View profile  Send private message
roeya


Posts: 181
Posted: 12/06/2005, 12:53 PM

There is some work around for the join problem - view
define the join query as view , after that you can use the view like a table.

The only problem is that SQLite decide that all the fields are numeric, so you must manually change the type of every field...

P.S.
The support team is working on my request.
_________________
http://www.infoneto.com/
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.

MS Access to Web

Convert MS Access to Web.
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.