Jump to content


danbueno

Member Since 24/01/2005
Offline Last Active 08/08/2008, 01:31
-----

Posts I've Made

In Topic: Order! Tá Dificil!

29/02/2008, 04:26

SEM SOLUÇÃO AINDA :S


ALGUEM ME Dá UM HELP!!!!! :ph34r: :ph34r: :unsure: :boxing: :assobio: :rolleyes: :click:

GALERA resolvi o PROBLEMA....

a SOLUÇÃO era fazer uma SUBQUERY pegando a ORDEM dos anunciantes ok....


vlw ae!! vlw :boxing:

In Topic: Order! Tá Dificil!

28/02/2008, 19:51

hmmm entendi o Join... mas tipo... o problema é....

QUERO LISTAR os ANUNCIOS por ORDEM do campo "ORDEM" da tabela ANUNCIANTES...

assim

ANUNCIOS

id id_anuncio id_anunciante titulo ....
#1 232 33 lala
#2 233 52 aaa

ANUNCIANTES

id nome ordem
#33 nana 2
#52 tata 1
#60 lala 1

QUERO o SEGUINTE....

QUANDO EU FAZER QUALQUER TIPO DE BUSCA DE ANUNCIOS listar por ORDEM do campo "ORDEM" dos anunciantes que tiverem anuncios que estou buscando... por ordem DESC.... no caso se fizer uma busca e esses 3 anunciantes tiverem anuncios dentro da minha pesquisa.... vier primeiro os anuncios do anunciante #33 (por estar com ordem maior) e depois os dois outros (campo ordem menor) ... entende ???

ME DÊ UMA LUZ!!!

IPB Skin By Virteq