Jump to content

Listar tudo menos certas opções numa sql


tiko165

Recommended Posts

Numa tabela tenho vários dados, e queria exibir tudo menos certos dados dessa tabela.

Na tabela ter por exemplo:

id, categoria, sub_categoria
1, ferramentas, no_sub
2, ferramentas, fita-metrica
3, ferramentas, chave-fendas
4, móveis, no_sub
5, móveis, madeira
6, garrafa, no_sub
7, caneta, no_sub
8, ferramentas, alicate

E neste exemplo de tabela, queria exibir todos os dados, menos os das "sub_categorias" que se referem com "no_sub".

Fiz-me entender o que pretendia?? Qualquer coisa tento-me explicar melhor :s

collectioneuro300px.png
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.