Jump to content
Fórum Script Brasil
  • 0

Como fazer comparação entre duas tabelas filtradas ?


NetFreeX

Question

1 answer to this question

Recommended Posts

  • 0

Não entendi nserie é um campo em comum nas duas tabelas ou é uma string que você quer pesquisar?

Você quer retornar registros unificando pelo campo nserie? SE SIM

SELECT *
FROM (
  SELECT *
  FROM suporte
  WHERE code='91WR2' AND validate='1'
) AS suporte
INNER JOIN (
  SELECT *
  FROM garantia
  WHERE code='91WR2'
  AND model='3'
) as garantia ON suporte.nserie = consulta.nserie

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing


  • Forum Statistics

    • Total Topics
      148680
    • Total Posts
      644501
×
×
  • Create New...