{"id":17168,"date":"2020-06-19T22:54:41","date_gmt":"2020-06-20T02:54:41","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/auto_pricing_data_for_germany-2\/"},"modified":"2020-06-20T13:25:57","modified_gmt":"2020-06-20T17:25:57","slug":"auto_pricing_data_for_germany-2","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=17168","title":{"rendered":"auto_pricing_data_for_germany"},"content":{"rendered":"<p>USE [AmazonShopForSoul]<br \/>\nGO<br \/>\n\/****** Object: StoredProcedure [dbo].[auto_pricing_data_for_germany] Script Date: 2020-06-19 10:16:30 PM ******\/<br \/>\nSET ANSI_NULLS ON<br \/>\nGO<br \/>\nSET QUOTED_IDENTIFIER ON<br \/>\nGO<\/p>\n<p>remove-this-phrase&#8211; =============================================<br \/>\nremove-this-phrase&#8211; Author: &lt;Author,,Name&gt;<br \/>\nremove-this-phrase&#8211; Create date: &lt;Create Date,,&gt;<br \/>\nremove-this-phrase&#8211; Description:\t&lt;Description,,&gt;<br \/>\nremove-this-phrase&#8211; =============================================<br \/>\nCREATE PROCEDURE [dbo].[auto_pricing_data_for_germany]<br \/>\nAS<br \/>\nBEGIN<br \/>\nremove-this-phrase&#8211; SET NOCOUNT ON added to prevent extra result sets from<br \/>\nremove-this-phrase&#8211; interfering with SELECT statements.<br \/>\nSET NOCOUNT ON;<\/p>\n<p>\/*<br \/>\nselect p.sku, round(amazon_special_price_eu,2) as price, round(amazon_eu_minimum_price,2) as [minimum-seller-allowed-price]<br \/>\n, round(amazon_list_price_eu,2) as [maximum-seller-allowed-price], 1 as quantity, 3 as [handling-time], &#8216;default&#8217; as [fulfillment-channel], germany.asin<br \/>\nfrom price_calculations p<br \/>\ninner join [germany-Inventory+Report+07-03-2018] germany on germany.sku=p.sku<br \/>\n*\/<\/p>\n<p>remove-this-phrase&#8211;no more required<br \/>\n\/*<br \/>\nselect p.sku, round(amazon_special_price_eu,2) as price, round(amazon_eu_minimum_price,2) as [minimum-seller-allowed-price]<br \/>\n, round(amazon_list_price_eu,2) as [maximum-seller-allowed-price], 1 as quantity, 3 as [handling-time], &#8216;default&#8217; as [fulfillment-channel], germany.asin<br \/>\nfrom price_calculations_jul_11_2018 p<br \/>\ninner join [GermanyInventoryReport07132018] germany on germany.sku=p.sku<br \/>\n*\/<\/p>\n<p>\/*fix null price*\/<br \/>\nselect * from GermanyAllListingsReport07182018<br \/>\nwhere price is null<\/p>\n<p>update<br \/>\nGermanyAllListingsReport07182018<br \/>\nset price=0.01<br \/>\nwhere price is null<\/p>\n<p>remove-this-phrase&#8211;product that should be on amazon<br \/>\nselect p.sku, REPLACE (round(amazon_special_price_eu,2), &#8216;.&#8217;, &#8216;,&#8217;) as price<br \/>\n, REPLACE (round(amazon_eu_minimum_price,2), &#8216;.&#8217;, &#8216;,&#8217;) as [minimum-seller-allowed-price]<br \/>\n, REPLACE (round(amazon_list_price_eu,2), &#8216;.&#8217;, &#8216;,&#8217;) as [maximum-seller-allowed-price], 1 as quantity, 4 as [handling-time]<br \/>\n, &#8216;default&#8217; as [fulfillment-channel]<br \/>\nfrom price_calculations_jul_17_2018 p<br \/>\ninner join GermanyAllListingsReport07182018 germany on germany.[seller-sku]=p.sku<br \/>\nwhere (germany.status=&#8217;Active&#8217;) and (p.status=1)<\/p>\n<p>remove-this-phrase&#8211;remove-this-phrase&#8211;out of stock or disabled or incomplete or soon discontinued<br \/>\nselect p.sku, REPLACE (round(amazon_special_price_eu,2), &#8216;.&#8217;, &#8216;,&#8217;) as price<br \/>\n, REPLACE (round(amazon_eu_minimum_price,2), &#8216;.&#8217;, &#8216;,&#8217;) as [minimum-seller-allowed-price]<br \/>\n, REPLACE (round(amazon_list_price_eu,2), &#8216;.&#8217;, &#8216;,&#8217;) as [maximum-seller-allowed-price]<br \/>\n, 0 as quantity, 4 as [handling-time]<br \/>\n, &#8216;default&#8217; as [fulfillment-channel]<br \/>\nfrom price_calculations_jul_17_2018 p<br \/>\ninner join GermanyAllListingsReport07182018 germany on germany.[seller-sku]=p.sku<br \/>\nwhere (p.status=2)<\/p>\n<p>remove-this-phrase&#8211;not in our current supplier inventory<br \/>\nremove-this-phrase&#8211;but on our Amazon inventory<br \/>\nselect germany.[seller-sku] as sku, 0 as quantity<br \/>\n, replace(germany.price,&#8217;.&#8217;,&#8217;,&#8217;) as price, germany.asin1 as asinremove-this-phrase&#8211;, germany.[item-name]<br \/>\nfrom GermanyAllListingsReport07182018 germany remove-this-phrase&#8211;price_calculations_jul_17_2018 p<br \/>\nwhere germany.[seller-sku] not in (select sku from price_calculations_jul_17_2018)<\/p>\n<p>END<br \/>\nGO<br \/>\n*** . *** *** . *** . *** . ***<\/p>\n<p><em><strong><em><strong>Training Courses: <\/strong><a href=\"http:\/\/training.sitestree.com\/\">http:\/\/Training.SitesTree.com<\/a> <\/em><br \/>\nBlog<\/strong>: <a href=\"http:\/\/bangla.salearningschool.com\/\">http:\/\/Bangla.SaLearningSchool.com<\/a>, <a href=\"http:\/\/sitestree.com\">http:\/\/SitesTree.com<\/a><\/em><br \/>\n<em><strong>8112223 Canada Inc\/Justetc<\/strong>: <a href=\"http:\/\/JustEtc.net\">http:\/\/JustEtc.net<\/a><\/em><br \/>\n<em>Youtube: <\/em><a href=\"https:\/\/www.youtube.com\/channel\/UCHrtq0pV8mEuTLGd2-Lp9ig\/playlists\">https:\/\/www.youtube.com\/channel\/UCHrtq0pV8mEuTLGd2-Lp9ig\/playlists<\/a><br \/>\n<em><strong>Medium: <\/strong><\/em><a href=\"https:\/\/medium.com\/@SayedAhmedCanada\">https:\/\/medium.com\/@SayedAhmedCanada<\/a><\/p>\n<p><em><\/em><br \/>\n<em><strong>Sayed Ahmed<\/strong><br \/>\n<\/em><br \/>\n<em><strong>BSc. Eng. in Comp. Sc. &amp; Eng. (BUET)<\/strong><\/em><br \/>\n<em><strong>MSc. in Comp. Sc. (U of Manitoba, Canada)<\/strong><\/em><br \/>\n<em><strong>MSc. in Data Science and Analytics (Ryerson University, Canada)<\/strong><\/em><br \/>\n<em><strong>Linkedin<\/strong>: <a href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/a><br \/>\n<\/em><\/p>\n<p><em><strong>Facebook Groups\/Forums to discuss (Q &amp; A): <\/strong><\/em><br \/>\n<a href=\"https:\/\/www.facebook.com\/salearningschool\/?ref=your_pages\">https:\/\/www.facebook.com\/salearningschool<\/a><\/p>\n<p><a href=\"https:\/\/www.facebook.com\/banglasalearningschool\">https:\/\/www.facebook.com\/banglasalearningschool<\/a><br \/>\n<a href=\"https:\/\/www.facebook.com\/justetcsocial\">https:\/\/www.facebook.com\/justetcsocial<\/a><\/p>\n<p><em>Get access to courses on Big Data, Data Science, AI, Cloud, Linux, System Admin, Web Development and Misc. related. Also, create your own course to sell to others. <\/em><a href=\"http:\/\/sitestree.com\/training\/\">http:\/\/sitestree.com\/training\/<\/a><\/p>\n<p><strong>Join, Discuss, and Thrive:<\/strong><br \/>\nFinance: <a href=\"https:\/\/www.facebook.com\/groups\/1792339521056034\">https:\/\/www.facebook.com\/groups\/1792339521056034<\/a><\/p>\n<p>Bangladesh and Canada: <a href=\"https:\/\/www.facebook.com\/groups\/398414183875009\">https:\/\/www.facebook.com\/groups\/398414183875009<\/a><\/p>\n<p>Bangladesh: IT &amp; Eng: Canada: <a href=\"https:\/\/www.facebook.com\/groups\/480297675634630\">https:\/\/www.facebook.com\/groups\/480297675634630<\/a><\/p>\n<p>BUETians in Ontario: <a href=\"https:\/\/www.facebook.com\/groups\/371982239854027\">https:\/\/www.facebook.com\/groups\/371982239854027<\/a><\/p>\n<p>Worldwide IT: <a href=\"https:\/\/www.facebook.com\/groups\/28362061867\">https:\/\/www.facebook.com\/groups\/28362061867<\/a><\/p>\n<p>JustEtc: <a href=\"https:\/\/www.facebook.com\/JustETC-Technologies-Inc-289864738261\">https:\/\/www.facebook.com\/JustETC-Technologies-Inc-289864738261<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>USE [AmazonShopForSoul] GO \/****** Object: StoredProcedure [dbo].[auto_pricing_data_for_germany] Script Date: 2020-06-19 10:16:30 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase&#8211; ============================================= remove-this-phrase&#8211; Author: &lt;Author,,Name&gt; remove-this-phrase&#8211; Create date: &lt;Create Date,,&gt; remove-this-phrase&#8211; Description: &lt;Description,,&gt; remove-this-phrase&#8211; ============================================= CREATE PROCEDURE [dbo].[auto_pricing_data_for_germany] AS BEGIN remove-this-phrase&#8211; SET NOCOUNT ON added to prevent extra result sets from remove-this-phrase&#8211; interfering with &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=17168\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1915,182],"tags":[],"class_list":["post-17168","post","type-post","status-publish","format-standard","hentry","category-selling-on-amazon","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":17180,"url":"http:\/\/bangla.sitestree.com\/?p=17180","url_meta":{"origin":17168,"position":0},"title":"update_exchange_rate_and_price","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"USE [AmazonProfitLossOrderManagement] GO \/****** Object: StoredProcedure [dbo].[update_exchange_rate_and_price] Script Date: 2020-06-19 10:17:11 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- Alter Procedure update_exchange_rate_and_price remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[update_exchange_rate_and_price] @exchange_rate_from_eu float, @exchange_rate_from_gbp float AS BEGIN remove-this-phrase--\u2026","rel":"","context":"In &quot;manage-selling-on-amazon-using-sql&quot;","block_context":{"text":"manage-selling-on-amazon-using-sql","link":"http:\/\/bangla.sitestree.com\/?cat=1915"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17173,"url":"http:\/\/bangla.sitestree.com\/?p=17173","url_meta":{"origin":17168,"position":1},"title":"auto_pricing_data_for_usa","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"USE [AmazonShopForSoul] GO \/****** Object: StoredProcedure [dbo].[auto_pricing_data_for_usa] Script Date: 2020-06-19 10:16:30 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[auto_pricing_data_for_usa] AS BEGIN remove-this-phrase-- SET NOCOUNT ON added to prevent extra result\u2026","rel":"","context":"In &quot;manage-selling-on-amazon-using-sql&quot;","block_context":{"text":"manage-selling-on-amazon-using-sql","link":"http:\/\/bangla.sitestree.com\/?cat=1915"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17164,"url":"http:\/\/bangla.sitestree.com\/?p=17164","url_meta":{"origin":17168,"position":2},"title":"adjust_stock_status_data_for_canada","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"\/****** Object: StoredProcedure [dbo].[adjust_stock_status_data_for_canada] Script Date: 2020-06-19 10:15:42 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[adjust_stock_status_data_for_canada] AS BEGIN remove-this-phrase-- SET NOCOUNT ON added to prevent extra result sets from remove-this-phrase--\u2026","rel":"","context":"In &quot;Finance&quot;","block_context":{"text":"Finance","link":"http:\/\/bangla.sitestree.com\/?cat=50"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17166,"url":"http:\/\/bangla.sitestree.com\/?p=17166","url_meta":{"origin":17168,"position":3},"title":"auto_pricing_data_for_canada","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"USE [AmazonShopForSoul] GO \/****** Object: StoredProcedure [dbo].[auto_pricing_data_for_canada] Script Date: 2020-06-19 10:16:30 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[auto_pricing_data_for_canada] AS BEGIN remove-this-phrase-- SET NOCOUNT ON added to prevent extra result\u2026","rel":"","context":"In &quot;manage-selling-on-amazon-using-sql&quot;","block_context":{"text":"manage-selling-on-amazon-using-sql","link":"http:\/\/bangla.sitestree.com\/?cat=1915"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17170,"url":"http:\/\/bangla.sitestree.com\/?p=17170","url_meta":{"origin":17168,"position":4},"title":"auto_pricing_data_for_mexico","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"USE [AmazonShopForSoul] GO \/****** Object: StoredProcedure [dbo].[auto_pricing_data_for_mexico] Script Date: 2020-06-19 10:16:30 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[auto_pricing_data_for_mexico] AS BEGIN remove-this-phrase-- SET NOCOUNT ON added to prevent extra result\u2026","rel":"","context":"In &quot;manage-selling-on-amazon-using-sql&quot;","block_context":{"text":"manage-selling-on-amazon-using-sql","link":"http:\/\/bangla.sitestree.com\/?cat=1915"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17187,"url":"http:\/\/bangla.sitestree.com\/?p=17187","url_meta":{"origin":17168,"position":5},"title":"xls_auto_pricing_data_for_canada","author":"Sayed","date":"June 19, 2020","format":false,"excerpt":"\/****** Object: StoredProcedure [dbo].[xls_auto_pricing_data_for_canada] Script Date: 2020-06-19 10:15:42 PM ******\/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO remove-this-phrase-- ============================================= remove-this-phrase-- Author: <Author,,Name> remove-this-phrase-- Create date: <Create Date,,> remove-this-phrase-- Description: <Description,,> remove-this-phrase-- ============================================= CREATE PROCEDURE [dbo].[xls_auto_pricing_data_for_canada] AS BEGIN remove-this-phrase-- SET NOCOUNT ON added to prevent extra result sets from remove-this-phrase--\u2026","rel":"","context":"In &quot;manage-selling-on-amazon-using-sql&quot;","block_context":{"text":"manage-selling-on-amazon-using-sql","link":"http:\/\/bangla.sitestree.com\/?cat=1915"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17168"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17168\/revisions"}],"predecessor-version":[{"id":17249,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17168\/revisions\/17249"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17168"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}