using the group caused some change in the query but i applies several ways to
change the order by clause to one to another
but it keep coming up with 121, or 12 or 1211, the 2 stans for "Commercial"
never seems to be going, i don't know what i am experiencing, behaving in very
unusal manner.
i also forgot one thing..
the sub_id of cities_subdivision is also the foreign key of table
properties_types table and the keys of properties_types, cities,
cities_subdivision are foreign keys of properties table
Dan Bracuk - 26 Nov 2007 04:07 GMT
[q][i]Originally posted by: [b][b]nightwolf666[/b][/b][/i]
using the group caused some change in the query but i applies several ways to
change the order by clause to one to another
but it keep coming up with 121, or 12 or 1211, the 2 stans for "Commercial"
never seems to be going, i don't know what i am experiencing, behaving in very
unusal manner.
i also forgot one thing..
the sub_id of cities_subdivision is also the foreign key of table
properties_types table and the keys of properties_types, cities,
cities_subdivision are foreign keys of properties table[/q]
He said the group attribute of cfoutput. He did not say a group by clause in
your query.
By the way, when you are using a group attribute, you usually have to use an
order by clause on that field in your query.
nightwolf666 - 26 Nov 2007 06:30 GMT
yes, i did group the cfoutput not the query but the query is producing unusual
results, what the query is exactly doing is:
outputing all the results under residential and if the property is under
residential and have same property type of "PLOTS" the it is showing just one
record not the both..
using the same as provided by:
Consider using the 'group' attribute of the cfoutput tag to group your output
by property_type_name or sub_id (whatever contains 'commercial' or
'residential' as data), you will also need to order by property_type_name on
your query.
Azadi - 26 Nov 2007 06:54 GMT
post your query sql
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com