Find Jobs
Hire Freelancers

Advanced SQL Query Help - SQL Server

$30-100 USD

En curso
Publicado hace más de 12 años

$30-100 USD

Pagado a la entrega
I am developing a service provisioning system and need to pull some data out of my database. I am reasonably proficient in SQL however the exact query I need to get this data is beyond me! I have a table of 'customer services' - services a customer has subscribed to. I need to calculate (on the fly) which 'package' this combination of services relates to. I have another table which associates each service with one or more packages (and hence defines several packages containing different combinations of services) It is a design requirement that this 'package' is computed on the fly - rather than stored and updated - as there are several applications which will modify the 'services' a customer has active at any one time - and we only control the source code of one of these applications. I already have the query working correctly in so far as it will return the correct package(s) a customer effectively has, based on the services they have active. However, there is an additional criteria I need to build into this query. Each 'service' assigned to a customer also has a number of licences assigned to it. A 'package' of services can ONLY be considered to be a package if the customer has the same number of licences for each service within that package. If they have different numbers of licences, then they are not considered to have that package - and will instead have a combination of other, smaller packages. I can explain this in more detail and give you access to a replica of the database if you think you can help. Seeing the output (and query) I already have should give you a good understanding of the requirements and hopefully make things clearer than my explanation. I'm looking for a quick turnaround on this - ideally within 24-48 hours. I would imagine an expert in SQL could have this resolved in a very short time indeed. Just to be clear - this is MS SQL Server, not MySQL, etc. The query is already relatively complex however will only need to be run once a month, so performance (whilst desirable) is not a significant consideration. I am open to the potential to slight modifications to the structure of the database (although I do not believe they will be necessary) however it is important that the package(s) are calculated at runtime, not stored against the customer in a separate table.
ID del proyecto: 3724707

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 12 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
See private message.
$1 USD en 2 días
5,0 (3 comentarios)
1,6
1,6
4 freelancers están ofertando un promedio de $34 USD por este trabajo
Avatar del usuario
See private message.
$34 USD en 2 días
4,7 (79 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$50,15 USD en 2 días
5,0 (29 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$50,15 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
Newton Abbot, United Kingdom
5,0
2
Miembro desde dic 3, 2010

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.