Как выбрать всего несколько часов из от collumns faltas и horasextra
Imgur: магия интернета[^]
Запрос находится на изображении ссылки
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
Что я уже пробовал:
<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