Find Jobs
Hire Freelancers

SQL Queries to calculate dates

$10-30 USD

Tamamlandı
İlan edilme: yaklaşık 1 yıl önce

$10-30 USD

Teslimde ödenir
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.
Proje No: 36434006

Proje hakkında

5 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 1 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
$0 USD 1 gün içinde
4,9 (66 değerlendirme)
6,8
6,8
5 freelancer bu proje için ortalama $28 USD teklif veriyor
Kullanıcı Avatarı
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 1 gün içinde
5,0 (2 değerlendirme)
2,9
2,9

Müşteri hakkında

   SPAIN bayrağı
Madrid, Spain
5,0
10
Ödeme yöntemi onaylandı
Mar 18, 2023 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.