Click here to Skip to main content
13,736,882 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Imgur: The magic of the Internet[^]

The Query is on the link image

select 
	dbo.Alteracoes.Data,			
	dbo.Funcionarios.numero as no,			
	dbo.Funcionarios.nome,				
	dbo.Alteracoes.Falta as faltas,
	dbo.Alteracoes.Coluna2 as horasextras 
	
	
from 
	dbo.Alteracoes 
	inner join dbo.Funcionarios on dbo.Alteracoes.IDFuncionario=dbo.Funcionarios.IDFuncionario 
	inner join dbo.Departamentos on dbo.Funcionarios.IDDepartamento = dbo.Departamentos.IDDepartamento 
WHERE 
	dbo.Alteracoes.Data > '2017-11-01 00:00:00.000' and dbo.Alteracoes.Data<'2017-12-14 00:00:00.000' 
ORDER BY 
	dbo.Funcionarios.IDDepartamento


What I have tried:

<a href="https://imgur.com/a/9HfKX">Imgur: The magic of the Internet</a>[<a href="https://imgur.com/a/9HfKX" target="_blank" title="New Window">^</a>]

The Query is on the link image


select 
	dbo.Alteracoes.Data,			
	dbo.Funcionarios.numero as no,			
	dbo.Funcionarios.nome,				
	dbo.Alteracoes.Falta as faltas,
	dbo.Alteracoes.Coluna2 as horasextras 
	
	
from 
	dbo.Alteracoes 
	inner join dbo.Funcionarios on dbo.Alteracoes.IDFuncionario=dbo.Funcionarios.IDFuncionario 
	inner join dbo.Departamentos on dbo.Funcionarios.IDDepartamento = dbo.Departamentos.IDDepartamento 
WHERE 
	dbo.Alteracoes.Data > '2017-11-01 00:00:00.000' and dbo.Alteracoes.Data<'2017-12-14 00:00:00.000' 
ORDER BY 
	dbo.Funcionarios.IDDepartamento
Posted 3-Jan-18 2:04am
Updated 3-Jan-18 4:08am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 3 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100