EdiSimoes Posted May 22, 2012 at 12:02 PM Report #457363 Posted May 22, 2012 at 12:02 PM (edited) Preciso de uma ajuda nessa query, tenho que selecionar os registros de uma tabela com uma condição de outra tabela, se alguem poder me ajudar. " SELECT ([Movimento].[Frente]) AS Frente " & _ "FROM ([Movimento]) " & _ "INNER JOIN [Abert_Movimento] " & _ "WHERE [Movimento].[Frente] = '01' AND [Abert_Movimento].[codMov] = 1 ORDER BY Saida ASC" Edited May 22, 2012 at 12:43 PM by Caça GeSHi Edi Carlos Simões Estudante de Análise e Desenvolvimento de Sistemas edisimoes@bol.com.br http://www.desenvolvenetma.com.br http://analisedesistemas.bl.ee
Caça Posted May 22, 2012 at 12:44 PM Report #457366 Posted May 22, 2012 at 12:44 PM Falta-te indicar o relacionamento no ON INNER JOIN [Abert_Movimento] ON [Movimento].Campo = [Abert_Movimento].Campo Pedro Martins Não respondo a duvidas por PM
EdiSimoes Posted May 22, 2012 at 02:02 PM Author Report #457385 Posted May 22, 2012 at 02:02 PM (edited) Fiz assim mais deu erro, "SELECT ([Movimento].[NumeroFrota] AS cam, [Movimento].[saida] AS saida)" & _ "FROM ([Movimento])" & _ "INNER JOIN [Abert_Movimento] ON [Movimento].codMov = [Abert_Movimento].codMov" & _ "WHERE [Movimento].[Frente] = '01' AND [Abert_Movimento].[situacao] = 1 ORDER BY Saida ASC" Edited May 22, 2012 at 02:05 PM by Caça GeSHi Edi Carlos Simões Estudante de Análise e Desenvolvimento de Sistemas edisimoes@bol.com.br http://www.desenvolvenetma.com.br http://analisedesistemas.bl.ee
Caça Posted May 22, 2012 at 02:06 PM Report #457388 Posted May 22, 2012 at 02:06 PM (edited) Que erro? Retias os parenteses () Edited May 22, 2012 at 02:06 PM by Caça Pedro Martins Não respondo a duvidas por PM
EdiSimoes Posted May 22, 2012 at 02:58 PM Author Report #457405 Posted May 22, 2012 at 02:58 PM Valeu Caça, deu certinho. Tópico encerrado. Edi Carlos Simões Estudante de Análise e Desenvolvimento de Sistemas edisimoes@bol.com.br http://www.desenvolvenetma.com.br http://analisedesistemas.bl.ee
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now