| Perhaps there is a better way with EOModeler. For one example, I would like to put lowercase() around some of the columns being queried in order to be case-insensitive. Can EOModeler do that? I guess I am not impressed with EOModeler's sql. Another case... I have a table that looks like this: id name parent_id This table represents a tree. I want to query based on the name of a node, and the parent's name. I create a relationship from the object to its parent (linking parent_id to id), and I tried to create a query based on name and parent.name. The sql it wants to use is: SELECT name, id, location_id, parent_id FROM table WHERE (name = ? AND name = ?) AND parent_id = id Which clearly won't work. The sql I would elect to use is: select * from table where name=? and parent_id=(select id from table where name=?) On Apr 10, 2006, at 4:24 PM, Chuck Hill wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
