Find Jobs
Hire Freelancers

Create a Microsoft SQL Server stored procedure to query data

$10-30 USD

Terminado
Publicado hace más de 1 año

$10-30 USD

Pagado a la entrega
I am working on improving a rather old system I wrote which is still up and running like a charm since 2007. I am rewriting it and bumped into an issue. Here is the situation. It is about an agenda where appointments are stored and must be retrieved to be displayed to the end user. Two tables are involved: the doctors' table and the agenda table. The doctor's table contains for each date an hour from/to for morning and afternoon, and for each day of the week. See attached pictures [login to view URL] where I am highlighting values for a Monday. As you can see below the structure TimeFrom/To repeats itself for each day morning and afternoon. The agenda table is pretty simple, see [login to view URL], the doctor, the day and hour. I know those fields could be in one but that is the way it is and no change of the database's structure will be considered. How it is working now. Currently, the system queries the database for each day and each period (morning and afternoon). I don't need you to write any code on the server but I attached a print screen of the code as information, where you can see that depending on the day of the week a SQL Statement is written and this goes for a range of dates. And it works. But that means for a week, or 7 days, 14 calls are made to the database and as I am thinking of getting more users that might be an issue later on. That is what I want to optimize. But instead of querying the database for each date and period what I want is to create one stored procedure and make one call. You can see the results in the print screen [login to view URL] I am getting and expecting. The trick is that the where statement on the hour will depend on the weekday of the underlying date, for example, if the day is a Monday it must consider Me_TimeFromMoAM, Me_TimeToMoAM,Me_TimeFromMoPM and Me_TimeToMoPM; and for a Tuesday Me_TimeFromTuAM, Me_TimeToTuAM,Me_TimeFromTuPM and Me_TimeToTuPM, etc. What I will provide: a sample database with data What I am expecting: a stored procedure with as a parameter the doctor's id, a date range from/to that will send back the information I need. The test will be easy, I will try it passing 9 as and id date from: 30/1/2023 and date to: 05/2/2023 and the result should be the same as running the 14 queries generated from my code, that query will be included with the information. If you want your bid to be considered please copy/paste the following sentence at the beginning of your bid: "I have got experience in writing stored procedure running on Microsoft SQL Server" Thank you for reading, Jean-Luc
ID del proyecto: 35958438

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 1 año

¿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
"I have got experience in writing stored procedure running on Microsoft SQL Server". I have been developing solutions using SQL Server, Oracle, mySQL and NoSQL based systems for many years, and would be able to create your solution quickly and well documented to ensure that no issues will get in the way of performance. Please feel free to reach out anytime.
$25 USD en 2 días
5,0 (1 comentario)
2,7
2,7
6 freelancers están ofertando un promedio de $22 USD por este trabajo
Avatar del usuario
Hello, "I have got experience in writing stored procedure running on Microsoft SQL Server" . I read your requirement and also check attachment image i will do that. Please come on chat we will discuss more about this. I will waiting your reply.
$20 USD en 1 día
5,0 (5 comentarios)
2,9
2,9
Avatar del usuario
Hey Jean-Luc P. I see what you got and I'm glad to share my expertise that I've completed multiple projects in Microsoft SQL Server, SQL and Database Programming Would love to show you my portfolio regarding Microsoft SQL Server, SQL and Database Programming,as I am capable of doing modifications and adding functionality to prebuild programs Let's jump on a chat or call for further discussion about the project. Cheers!! Nazish
$26 USD en 5 días
5,0 (1 comentario)
2,4
2,4
Avatar del usuario
I am writing to propose my web development services for your project. I am a highly skilled and experienced web developer with a proven track record of delivering high-quality, professional websites that meet the needs of clients. My key skills include: • Proficient in HTML, CSS, DataBase, JavaScript, and various web development frameworks such as React, Angular, and Vue.js • Strong experience in creating responsive and mobile-friendly websites • Proficient in WordPress and other content management systems • Experience with e-commerce platforms such as Shopify, Magento, and Woo Commerce. • Familiar with SEO best practices to ensure your website will be well-ranked on search engines. • Strong attention to detail and a commitment to delivering work that meets the needs of clients. I would be happy to provide you with examples of my work and references from past clients upon request. I am confident that I can deliver a website that exceeds your expectations and meets your specific needs. Please let me know if you have any further questions or if you would like to discuss the project in more detail. I look forward to the opportunity to work with you. Sincerely, Raheel M.
$20 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hello, I am a full-stack developer with more than 5 years of experience. I have done relevant work like this before as well. Just send me a message, then we can discuss the details and build a long-term & healthy business relationship with each other. Regard, Saad A
$20 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
"I have got experience in writing stored procedure running on Microsoft SQL Server" Buenas Dias/Tardes. Como veo que es de Chile, me permito escribirle en español. Recién estoy iniciando mi carrera en FreeLancer. Soy programador con experiencia de 20 años. Domino el tsql y pl/sql. En relación a su pedido, podría realizarlo. Es posible crear una tabla temporal/permanente tambien? Es posible que me envíe los datos previamente. Estoy en el chat si quiere contactarse más rápidamente.
$20 USD en 7 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de CHILE
Coronel, Chile
5,0
36
Forma de pago verificada
Miembro desde dic 26, 2003

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.