in reply to Querying Meta Data
I use this SQL query:
Of course, the query can be built dinamically and should be adapted to your needs. I'm not an SQL expert, so I welcome any opinion on this approach.select n.id from nodes n, metadata m where n.id=m.id and ((m.name='color' and m.value='red') or (m.name='name' and m.value='george')) group by n.id having count(n.id)=2;
Ciao, Valerio
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Querying Meta Data
by eric256 (Parson) on Jul 24, 2003 at 23:18 UTC | |
by mpeppler (Vicar) on Jul 25, 2003 at 18:41 UTC | |
by valdez (Monsignor) on Jul 31, 2003 at 09:12 UTC |