Help writing sql for Linnworks
- or -
Post a project like this£24/hr(approx. $30/hr)
- Posted:
- Proposals: 10
- Remote
- #2857405
- Expired
Top Web, Mobile Developer for B2B | B2C | Online Learning | MarketPlace | Travel
Solihull
Senior Full Stack Web Developer ✮Experienced Graphic Designer ✮WordPress Expert ✮Virtual Assistant ✮ , excel expert ✮ PHP
Islamabad
3416213081835006851449433240489530911063213974422266243001992575653
Description
Experience Level: Entry
Hello I use a software called linnworks which uses SQL to export data. I so far have the following script:
SELECT
sc.ChannelSKU
,si.PurchasePrice
,si.ItemNumber
FROM Stock_ChannelSKU sc
LEFT JOIN StockItem si ON si.pkStockItemId = sc.fkStockItemId
GROUP BY
sc.ChannelSKU
,si.PurchasePrice
,si.ItemNumber
The database structure is shown here:
https://www.linnworks.com/assets/6c73379f21/pOtIaEgrzlSYxSQxcPgF3Hx8iYeMfwZbkw.png
Currently this outputs:
ChannelSKU
PurchasePrice
ItemNumber
I want to modify this script to show:
ChannelSKU
Price1 - This is formula 1 below
Price2 - This is formula 1 below
ItemNumber
Formula 1: ("si.PurchasePrice"+3.00)*1.2
Formula 2: ("si.PurchasePrice"+3.00)*1.3
Effectively taking the Purchase Price adding 3 and then after multiplying the whole number by 1.2
Linnworks creates the export file if I put in the correct information.
Also if its possible to find out how to add the channel name that would be ideal as well.
SELECT
sc.ChannelSKU
,si.PurchasePrice
,si.ItemNumber
FROM Stock_ChannelSKU sc
LEFT JOIN StockItem si ON si.pkStockItemId = sc.fkStockItemId
GROUP BY
sc.ChannelSKU
,si.PurchasePrice
,si.ItemNumber
The database structure is shown here:
https://www.linnworks.com/assets/6c73379f21/pOtIaEgrzlSYxSQxcPgF3Hx8iYeMfwZbkw.png
Currently this outputs:
ChannelSKU
PurchasePrice
ItemNumber
I want to modify this script to show:
ChannelSKU
Price1 - This is formula 1 below
Price2 - This is formula 1 below
ItemNumber
Formula 1: ("si.PurchasePrice"+3.00)*1.2
Formula 2: ("si.PurchasePrice"+3.00)*1.3
Effectively taking the Purchase Price adding 3 and then after multiplying the whole number by 1.2
Linnworks creates the export file if I put in the correct information.
Also if its possible to find out how to add the channel name that would be ideal as well.
VIKAS G.
98% (31)Projects Completed
38
Freelancers worked with
35
Projects awarded
21%
Last project
12 Apr 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies