Find Jobs
Hire Freelancers

Get data from a complex table in SQL-server

$30-250 USD

Terminado
Publicado hace casi 11 años

$30-250 USD

Pagado a la entrega
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 del proyecto: 4633595

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 11 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi, I have lots of experience with MSSQL code and i would like to help you with this. Thanks, Emilian.
$111 USD en 1 día
5,0 (1 comentario)
0,7
0,7
4 freelancers están ofertando un promedio de $100 USD por este trabajo
Avatar del usuario
i'm interested to work on this project.
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I am interested in the project. Thank you.
$80 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
hi, I have proficient skills in SQL. I am interested to do this work.
$55 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I'm ready to work in this project.
$77 USD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de NORWAY
OSLO, Norway
5,0
57
Forma de pago verificada
Miembro desde mar 7, 2009

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos 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)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.