Find Jobs
Hire Freelancers

SQL Queries to calculate dates

$10-30 USD

Concluído
Publicado há aproximadamente 1 ano

$10-30 USD

Pago na entrega
Validate and change the start dates in startdate column of tblSchedule_Tasks by querying the enddate of the predecessor task. If the predecessor is 0 the start date remains the same. If the predecessor is 20 for example, you will need a sub query taskNumber = 20 EndDate and change the start date to the taskNumber 20 enddate + 1 day. Each start date needs to be validated against tblHoliday:HolidayDates If the start date is a Saturday add two days to make if Monday If the start date is Sunday add one day to make it Monday. complete sql query that calculates enddate from Startdate + duration. Omitting weekend days and dates from tblHolidays. The query must start with the actual start date then add the duration. For example, if the start date is Monday with a duration of of 1 day the end date is Monday. If the start date is Monday with a duration of 2 days the enddate is Tuesday. You need to test the query for calculated end dates of Friday (there seems to be issues landing on Friday). Need testing for duration of up to 35 days ... skipping multiple weekends and multi day holidays. I have sql table 'tblSchedule_Tasks.' I need to add start date to duration. The calculated enddate needs to skip weekends and a handful of dates in 'tblHoldays.' One wrinkle is that the dateadd function counts day #1 on the date following the Startdate. I need it to start the count on the actual start date. IE, StartDate April 19,2023 with a 2 day duration needs a end date of April 20, 2023. Also the query needs to begin with a startdate validated to a prececessor task. I would like to send you the tables in ssms format. After the queries are written I can take it from there. this is a common business use case in a scheduling program. Are you familiar with working with dates in tsql? i exported the two table using generate script in ssms. For simplicity use scheduleID = 20063 in tblSchedule_Tasks. there are several dummy jobs in the table.
ID do Projeto: 36434006

Sobre o projeto

5 propostas
Projeto remoto
Ativo há 1 ano

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
$0 USD em 1 dia
4,9 (66 avaliações)
6,8
6,8
5 freelancers estão ofertando em média $28 USD for esse trabalho
Avatar do Usuário
Hello Friend! Having gone through deeply in your requirements like SQL Queries specifications. We conclude that we can do this easily. And we will do it as your requirements. And you will be happy to see our work. And we assure you that you will give us bonus at the end after seeing our work. Thank you. With best wishes, Ahianushashim Technologies
$20 USD em 1 dia
5,0 (2 avaliações)
2,9
2,9

Sobre o cliente

Bandeira do(a) SPAIN
Madrid, Spain
5,0
10
Método de pagamento verificado
Membro desde mar. 18, 2023

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.