Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Spectra-Talk
Cold Fusion Spectra - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Spectra :
product's home
product's list home
 
  Archived TallyList / Spectra-Talk: 
Subject: RE: <cfa_ContentObjectFind> and SQL-Style Search
Peter Farland (13p/+0r)     Posted: Monday 07 May 2001
This post: 29 views, +0 rating

Um, did anyone notice that the SQL appears to be both superfluous and incorrect?

select distinct p.objectid from properties p, properties r, properties s where p.objectid = r.objectid and p.objectid = t.objectid and t.propertyname = 'char_fname' and t.chardata = 'Tiger' and s.propertyname ='char_lname' and s.chardata = 'Woods'

....Should be something simpler like...

select distinct p.objectid from properties p, properties r where p.objectid = r.objectid and p.propertyname = 'char_fname' and p.chardata = 'Tiger' and r.propertyname ='char_lname' and r.chardata = 'Woods'

Also, you can easily also join on the types and objects tables to find properties from objects of a certain type.

-----Original Message----- From: Raymond Camden [mailto:jedimaster@macromedia.com] Sent: Monday, May 07, 2001 8:54 AM To: Spectra-Talk Subject: RE: <cfa_ContentObjectFind> and SQL-Style Search

Eh? As far as I know 1.5 supports this. You simply used the propertiesCriteria="ALL" property.

======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email : jedimaster@macromedia.com ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message----- > From: Michael Collins [mailto:mcollins@macromedia.com] > Sent: Friday, May 04, 2001 9:06 PM > To: Spectra-Talk > Subject: RE: <cfa_ContentObjectFind> and SQL-Style Search > > > Zhiyuan, > > To do what you are asking you will need to do a Self Join using SQL. > Cfa_cof does not support an "and" condition using 2 properties. > > Check out http://www.allaire.com/Handlers/index.cfm?ID=16106&Method=Full > for complete details. > > HTH > > > -----Original Message----- > From: Zhiyuan Ma [mailto:zma@svmedia.com] > Sent: Friday, May 04, 2001 4:19 PM > To: Spectra-Talk > Subject: <cfa_ContentObjectFind> and SQL-Style Search > > > > To search content objects on a given content object type with two > properties > as searchable, one property is defined as chardata and another property is > defined as integerdata, which way is more efficiency - use > <cfa_ContentObjectFind> or do a SQL-Style search such as <Select objectid > from properties where chardata is 'XYZ' and integerdata=123>? > > Thanks, > > Zhiyuan > > ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~ > SVMedia > 940 South Avenue West > Suite D > Westfield, NJ 07090 > > ph 908.789.4200 > fax 908.789.4266 > http://www.svmedia.com/ > > Strategic Internet Business Solutions > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.


Similar Subject Line Posts (+/- two weeks of this post)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001   (41 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001   (28 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001   (27 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001   (36 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001 (this post)   (29 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  07 May 2001   (35 v/ +0 r)
RE: <cfa_ContentObjectFind> and SQL-Style Search  04 May 2001   (48 v/ +0 r)
<cfa_ContentObjectFind> and SQL-Style Search  04 May 2001   (28 v/ +0 r)
 

Send a reply to the Spectra-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000