
Help writing sql for Linnworks
- or -
Post a project like this£24/hr(approx. $32/hr)
- Posted:
- Proposals: 10
- Remote
- #2857405
- Expired
Full-Stack Developer | ReactJS, NodeJS, PHP, Laravel, WordPress, Shopify | AI Integration

System Architect| BaaS Developer | iOS and Android | Java | Business Intelligence
341621500685308183131315430019914494333091106422266232139742575653





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
39
Freelancers worked with
36
Projects awarded
21%
Last project
24 May 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