Find Jobs
Hire Freelancers

MS SQL Update Trigger to Sync Tables

$30-250 USD

Cerrado
Publicado hace más de 6 años

$30-250 USD

Pagado a la entrega
This is a complex trigger. This will update mission-critical business values. I want to divide this into two jobs. Proof (small) and then Finished work. If you have the experience to take this project, let me know price for initial proof, and price for finished version. I can send scripts to create the tables. Here is the table structure, trigger action, and initial proof of concept: TABLE 1 SalesReport_Day (160 fields, with about 20 that are calculated fields) Each row represents the total value for various metrics for a day and is updated multiple times an hour. I am only concerned with the first 11 fields for the test. TABLE 2 SalesReport_Week (Is identical to SalesReport_Day with the exception that it has 2 date range fields (DateStart: first day of the week) and (DateEnd: last day of the week) instead of a {day of the month} field. Each row represents the total value for the same metrics for a week. It is the aggregate of the daily values from SalesReport_Day for a week. It is not updated by code. It will be updated by a trigger only. TRIGGER ACTION Initial concept (wrong-will not work): When a value in Table1 (SalesReport_Day ) is updated, the trigger needs to update (increment) the same column in Table2 (SalesReport_Week) with the amount of the change. The problem is that Table2 does not know how much the value in Table1 was increase/decreased. It cannot just add the field value from Table1 to the corresponding field in Table2 because after the first update, it would be adding values already added. Desired concept (I think this will work): Typically, only 1-3 fields in Table1 will be updated as a time. 1) The Table1 fields being updated and their original pre-update values need to be read to variables. 2) Then compare the new values to the pre-update values to get +- value (net change). 3) Then update Table2 with the net change values. One other thing that adds slightly to the complexity is that the trigger must first check to see if a row for the week already exists in Table2 (SalesReport_Week). If so then update. If not them insert the new row with the new DateStart and DateEnd values. All fields are defined with default values to make the insert simple. PROOF OF CONCEPT I only need you to do the trigger for the first 11 fields just to confirm we can get it to work as expected. FULL VERSION Once the Proof of Concept is complete, I want to create the full working version which will update all non-calculated fields in SalesReport_Week AND an additional table,SalesReport_Month (Table 3), which is not part of the first test. PURPOSE 1) Provide faster reporting and save resources by having data aggregated in the tables instead of a query. 2) Insure data across those tables representing multiple time frames is always in sync. OTHER I would be interested in your thoughts if using EntityFramework 6 vs SQL command would make any difference in the original code update that targets Table1. To be exact, I am wondering if the EF SQL output will make it clear which values are being updated (in creating the pre-update variables). Obviously, I don't want to read all 150+ fields into variables for each update. Just the ones being changed.
ID del proyecto: 15980574

Información sobre el proyecto

30 propuestas
Proyecto remoto
Activo hace 6 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
30 freelancers están ofertando un promedio de $165 USD por este trabajo
Avatar del usuario
We have expertise and experience in MS SQL. I have read the requirement and am confident of delivering. Pl share sql scripts for both the tables with some sample data in it and MS SQL version. Relevant Skills and Experience MS SQL I will confirm/revise my bid once I have the inputs requested and am able to assess scope of work precisely. It will also help make an informed commitment. Proposed Milestones $250 USD - I will confirm/revise bid once I have studied the requested inputs
$250 USD en 3 días
4,9 (740 comentarios)
8,7
8,7
Avatar del usuario
Hi i can work for MS SQL Update Trigger to Sync Tables So send me Private message at PMB so we can discuss more about it Thanks Relevant Skills and Experience i am expert at ,Database Programming,Microsoft Access,Microsoft SQL Server,MySQL,SQL Proposed Milestones $135 USD - Milestone
$135 USD en 4 días
4,8 (235 comentarios)
7,6
7,6
Avatar del usuario
Hi, the trigger can know the previous value , so we can get the prev val and find the difference from the new. Do you have only add and subtract ? if you have averages the things are different. Relevant Skills and Experience Have you tried to use a view ? it might perform better than the trigger which has a lot of fields. The view can also ensure that you will always have the right aggregations. Proposed Milestones $100 USD - This is only for the trigger POC If you need to check for the view or create the full trigger the bid will be 200. Thank you George
$100 USD en 4 días
5,0 (77 comentarios)
6,3
6,3
Avatar del usuario
This task is to create a trigger that will update incremental values in the second table on an event in the first table. Relevant Skills and Experience I have 10 years experience in development and deployment that includes SQL Server, SSRS, SSIS and .NET.I have expertise in writing complex queries with proper joins and index selection. Proposed Milestones $222 USD - Create trigger No need of creating variables to hold previous values. On each update, SQL trigger creates INSERTED and DELETED tables and by joining these two tables we can get fields that are updated and differential values.
$222 USD en 3 días
4,9 (52 comentarios)
6,6
6,6
Avatar del usuario
Greeting, I have understood your MS SQL Update Trigger to Sync Tables task and can do it with your 100% satisfaction. Please ping me for more discussion. Relevant Skills and Experience I have more than 5 years of experience in Database Programming, Microsoft Access, Microsoft SQL Server, MySQL, SQL Proposed Milestones $140 USD - MS SQL Update Trigger to Sync Tables
$140 USD en 3 días
4,8 (32 comentarios)
6,1
6,1
Avatar del usuario
Nice to meet you, HUGInc. Do you need to divide this into two jobs and be read to variables ?.I can do this project as well We have experience in thoses skills: Database Programming, Microsoft Access, Microsoft SQL Server, MySQL. If you want a good and fast service, please text me via inbox ** Proposed Milestones: - We can Discuss custom Milestones
$165 USD en 3 días
5,0 (19 comentarios)
5,1
5,1
Avatar del usuario
I can provide you better solution by utilizing my knowledge and skills. Relevant Skills and Experience I am having more than 8 years of experience in IT industry.I have worked on .net(c#.net,vb.net,asp,asp.net,mvc) with sql server 2005/2008/2012/2014/2016 and oracle(pl/sql). Proposed Milestones $250 USD - cost
$250 USD en 10 días
5,0 (32 comentarios)
5,1
5,1
Avatar del usuario
I love challenging work... I can work on it let me know when I can start? Relevant Skills and Experience I have over 9 years of experience in Databases like SQL Server, Oracle, Microsoft Access and MySQL, Programming languages like Android, PHP, WordPress, Net technologies(Asp.Net, Vb.Net / C#, MVC ) Proposed Milestones $150 USD - Trigger work
$150 USD en 3 días
5,0 (32 comentarios)
4,7
4,7
Avatar del usuario
USA BASED - 10+ years combined web / software development experience. Let's get together and chat about this. I could get you up and running in no time Relevant Skills and Experience . Proposed Milestones $177 USD - / /
$177 USD en 3 días
5,0 (3 comentarios)
4,2
4,2
Avatar del usuario
We are a team of Database experts with more than 12 years of experience in Database Management, modelling, application & programming. We have delivered projects to telecom, education, industries etc. Relevant Skills and Experience FullStack: JAVA, Python, Golang, JavaScript, Java, R, Hadoop, Kafka Nginx, ApacheTomcat, Node.Js, Weblogic Spring, Flask, Expressjs, Reactjs OracleDB, MongoDB, DynamoDB, Hbase Linux, AWS, Azure Proposed Milestones $222 USD - ballpark price Please share your details to discuss about your project.
$222 USD en 3 días
5,0 (11 comentarios)
4,4
4,4
Avatar del usuario
This is simple to do. Can you tell me what database server are you using? Relevant Skills and Experience I'm an Informatics Engineer. C# (.NET), C++, Java Tutor at College and Unity3D (C#) Game Developer I have worked for many software development firms under interdisciplinary environments Proposed Milestones $50 USD - Proof of Concept $100 USD - Final Query
$150 USD en 3 días
4,8 (2 comentarios)
4,0
4,0
Avatar del usuario
Hi, Ready to work with you. We have gone through your proposal and surely can do the best work on it. Inbox me for further discussion. Relevant Skills and Experience We have good skills in MS SQL Server, Database Programming. Thanks Proposed Milestones $200 USD - Update Trigger to Sync Tables
$200 USD en 6 días
5,0 (1 comentario)
3,0
3,0
Avatar del usuario
A proposal has not yet been provided
$222 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
We can check the update field in the trigger and check whether to insert week by the datetime comparison. Also for you EF and sql code, we can log the SQL statement to see which field is changed. Relevant Skills and Experience I'm a skillful .NET developer and work with SQL server for three years. I'm familiar with function, trigger, procudure of Database. And I used to do the ETL work between database. Proposed Milestones $22 USD - PROOF OF CONCEPT $89 USD - FULL VERSION PROOF OF CONCEPT: - For update field, we can check the update field by `update(fieldname)` function of SQL Server in trigger. Then update the corresponding filed in Week and Month table. - For SalesReport_Week, we can check if the current day is later then the max EndDate of SalesReport_Week table to decide whether insert a new record OTHER: For the EF, we can log the SQL statement that the EF generates to logfile, then we can know which field is changed through the sql statement. You can give me the Database structure so I can make a demo of one field update to see if it works. I'm new to this platform so I'd like to provide a lower price but I promise I won't lower the quality, I'll try my best to make my client statified. Thanks for your time and feel free to ask if you have any problem for me.
$111 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi there, I've just checked your project, yes, I'll use Entity Let me know more details. I can complete the system the way you want. I'm very interested to get it done. I can start right now!
$200 USD en 6 días
5,0 (6 comentarios)
0,0
0,0
Avatar del usuario
A proposal has not yet been provided
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
We have experience of more than 9 years on SQL, Java etc. We think we can handle the complexities of the problem you have described. You can reach us to discuss your problem statement in more detail. Relevant Skills and Experience SQL, MySQL, Oracle Proposed Milestones $100 USD - Initial Milestone $66 USD - Final
$166 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I have 4 years of experience in SQL server, from what I have understood your question I can help you with your problem. Relevant Skills and Experience SQL server, Triggers Proposed Milestones $111 USD - Depends on what we agree This is what I have understood from your problem- Basically your table 1 values will get updated every now and then (these includes multiple integer/decimal fields) and and your table 2 is basically an aggregated table where you show weekly data, so every time there is a new entry in table 1 your table 2 aggregated values should automatically get updated. Just one suggestion why so you need triggers for it I have a better option to do it as triggers are always a performance busters, but still if you want to go for it I can provide you solution for that as well. Because of character limit i m not able to share my temp script Waiting for you response to start on it. Please share original table script so that I cam,make the changes accordingly
$88 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
This can be done in a few ways depending on data volume, frequency of updates, table structure, etc.
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
1 Day job Quote-15$ Relevant Skills and Experience MS SQL Server, TSQL Proposed Milestones $155 USD - 1st Day-Trigger will be completed in MS SQL server 8
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Waxahachie, United States
0,0
0
Miembro desde ene 15, 2014

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.