Find Jobs
Hire Freelancers

Get data from a complex table in SQL-server

$30-250 USD

Selesai
Disiarkan hampir 11 tahun yang lalu

$30-250 USD

Dibayar semasa penghantaran
You need to extract a value from a table. You have some input to find the correct row and then your SQL-proc-code needs to return a value of this row. I have a code today, but the way to get the correct value has changed. You can probably still use a lot from the old code. I have attached the design of the table (picture), an excel-sheet with the content of the table and the proc. which is not working properly. You must NOT fix the code because it is working in the wrong way. You need to start from scratch, but you can copy a lot from the code and the code might make you understand better. The difference between the code and how I want it is this: I used to weight a part of the time before and after a time-period. The simpler way which I want now is to take Starttime + 1/2 of duration time and find the value of this specific time (which should be between time1 and time2). So if starttime is 19:10:00 and duration is 00:30:00 then find the price of 19:25:00. Meaning which row has 19:25:00 between time1 and time2? Some facts: - The table has channel, month (comma separated), time1 and time2 and price. - Time1 and time2 are "boarder" times meaning you need to check >=Time1 and <=Time2 - I need price out - Input to proc is: Date, Channel, Start-time and duration (coming from another table in the system and triggered when the record in that table is saved) - You need to use date to get the correct month (by splitting month) - You need to use channel to find the correct channel (of course) - You need to use Start-time and duration to find the correct price in this way: -Starttime + 1/2 x the duration should be between time1 and time2. Your code should replace the old code. So you need to look at the code to see what information you can expect in and which information you should output. Date, Starttime and duration are all defined in the table as datetime-data type.
ID Projek: 4633595

Tentang projek

4 cadangan
Projek jarak jauh
Aktif 11 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
Hi, I have lots of experience with MSSQL code and i would like to help you with this. Thanks, Emilian.
$111 USD dalam 1 hari
5.0 (1 ulasan)
0.7
0.7
4 pekerja bebas membida secara purata $100 USD untuk pekerjaan ini
Avatar Pengguna
i'm interested to work on this project.
$155 USD dalam 3 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
Hi, I am interested in the project. Thank you.
$80 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
hi, I have proficient skills in SQL. I am interested to do this work.
$55 USD dalam 2 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
I'm ready to work in this project.
$77 USD dalam 3 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera NORWAY
OSLO, Norway
5.0
57
Kaedah pembayaran disahkan
Ahli sejak Mac 7, 2009

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.