Find Jobs
Hire Freelancers

SQL Queries to calculate dates

$10-30 USD

Fullført
Lagt ut omtrent ett år siden

$10-30 USD

Betalt ved levering
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.
Prosjekt-ID: 36434006

Om prosjektet

5 forslag
Eksternt prosjekt
Aktiv ett år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
$0 USD om 1 dag
4,9 (66 omtaler)
6,8
6,8
5 frilansere byr i gjennomsnitt $28 USD for denne jobben
Brukeravatar
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 om 1 dag
5,0 (2 omtaler)
2,9
2,9

Om klienten

SPAINs flagg
Madrid, Spain
5,0
10
Betalingsmetode bekreftet
Medlem siden mar. 18, 2023

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.