Find Jobs
Hire Freelancers

Improve a MS-SQL Query with a Loop

€8-30 EUR

Opravljeno
Objavljeno pred približno 6 leti

€8-30 EUR

Plačilo ob dostavi
We need a improvement of a MS-SQL Query - At the moment the query looks like this: declare @InventurDatum AS DATETIME; declare @InventurDatum2 AS DATETIME; SET @InventurDatum = CONVERT(datetime, '01/03/2018 00:00:00', 103); SET @InventurDatum2 = CONVERT(datetime, '28/03/2018 23:59:59', 103); SELECT [login to view URL], [login to view URL], [login to view URL], ( select sum([login to view URL]) from tbestellpos asdf LEFT JOIN tBestellung bes ON asdf.tBestellung_kBestellung = [login to view URL] WHERE asdf.tArtikel_kArtikel = [login to view URL] AND [login to view URL] > @InventurDatum and [login to view URL] < @InventurDatum2 ) as Verkauf, CAST((select A.fLagerbestand-coalesce(sum([login to view URL]),0 ) FROM [eazybusiness].[dbo].[tArtikelHistory] AS D WHERE A.kArtikel=[login to view URL] and [login to view URL] != 1AND [login to view URL] > @InventurDatum) AS int) as 'Anfang', CAST((select A.fLagerbestand-coalesce(sum([login to view URL]),0 ) FROM [eazybusiness].[dbo].[tArtikelHistory] AS D WHERE A.kArtikel=[login to view URL] and [login to view URL] != 1AND [login to view URL] > @InventurDatum2) AS int) as 'Ende' FROM [eazybusiness].[dbo].[tlagerbestand] AS A LEFT JOIN tArtikelBeschreibung cd ON [login to view URL] = [login to view URL] LEFT JOIN [eazybusiness].[dbo].[tArtikel] AS B ON [login to view URL] = [login to view URL] WHERE [login to view URL] != 1 AND [login to view URL] = 1 and [login to view URL] = 1 order by [login to view URL] asc ####### What we need is kind of loop within this query through each day between @ InventurDatum and @ InventurDatum2 which returns the amount for each day in a single row with the day as the rows headline.
ID projekta: 16507041

Več o projektu

13 ponudb
Projekt na daljavo
Aktivno pred 6 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
Hi. I'm professional software developer with more than 15 years of experience. I'm able to improve the query.
€40 EUR v 1 dnevu
5,0 (3 ocen)
3,4
3,4
13 freelancerjev je oddalo ponudbo s povprečno vrednostjo €24 EUR za to delo
Avatar uporabnika
Hi I am a database expert with 15 years experience in handling MS SQL databases. I have worked as DBA for large ERP databases and use to write and do performance tuning for SQL queries, procedures and triggers. We might not need a loop, rather this could be possible by doing a group by on the dGebucht column, but I can confirm after taking a closer look. I can work on this either by getting a table scripts and some sample data, or by connecting to your server on team viewer. Look forward to hear from you. Thanks Roni
€25 EUR v 1 dnevu
5,0 (77 ocen)
6,4
6,4
Avatar uporabnika
Hi, would you mind send me a .bak witha subset of the data, I know how to do CURSORs loops in SQL Server with FETCH operations, don't know if that would be the best ways to achieve results here, but I have to see a subset of data, to see what would be the best recommendation Thanks, Felice
€30 EUR v 1 dnevu
5,0 (11 ocen)
6,2
6,2
Avatar uporabnika
its pleasure to work the optimizations part and automation parts , if you would like to believe I could give you the best , please let me know . waiting for response
€24 EUR v 0 dnevu
4,9 (21 ocen)
4,5
4,5
Avatar uporabnika
Hi, I am having expert level experience in SQL Server last 7 years. I would like to work in this project. I will provide you quality output withing a time frame we define. Please let us know your convenient time to discuss further. Kind Regards, Mayuri Patel.
€39 EUR v 10 dneh
5,0 (4 ocen)
4,1
4,1
Avatar uporabnika
Hi I'm ready for this project. I'm expert in MS SQL. Please give me an opportunity. I will do it perfectly.
€15 EUR v 1 dnevu
5,0 (8 ocen)
3,1
3,1
Avatar uporabnika
Hi, I'm expert in software building domain, having good exposure to backend & frontend programming. I feel I can complete your job. Please consider my profile. Thanks Regards, Gagan
€23 EUR v 1 dnevu
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
A proposal has not yet been provided
€12 EUR v 2 dneh
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
A proposal has not yet been provided
€24 EUR v 3 dneh
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
Hello dear Hiring manager I have read your job post & being an expert Web developer, I offer myself for the job. I am having extensive knowledge and 5+ years of experience in PHP & WordPress website development using the best practice & standard plugins, and expert in MySQL, HTML, CSS and JavaScript. My Experience Include - HTML5, CSS3, Angulor js , Node js, Mongo DB, CI Ionic , mobile jquery Custom Responsive Design W3C validation PHP Laravell WOrdpress Theme/Template integration and customization Site Optimization PSD to HTML conversion Configuration and Installation of plugins/widgets/Custom features Creation of clean, logical, well-documented and re-usable code SEO friendly Design and Coding Thanks and Regards,
€23 EUR v 1 dnevu
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava GERMANY
Ettlingen, Germany
5,0
6
Plačilna metoda je verificirana
Član(ica) od jan. 5, 2018

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.