SQL Or GQL?
On 12/01/2008, sarp <[EMAIL PROTECTED]> wrote:
>
> Is it possible to order by a property belonging to a reference
> property in GQL queries?
>
> For example:
> class Employee(db.Model):
> belongsto = db.ReferenceProperty(Company)
>
> class Company(db.Model):
> name = db.TextProperty()
>
> I want to do
> db.GqlQuery("SELECT * FROM Employee ORDER BY belongsto.name")
>
> Thanks,
> Sarp
>
> >
>
--
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---