{"id":1841,"date":"2011-04-17T14:40:03","date_gmt":"2011-04-17T14:40:03","guid":{"rendered":"http:\/\/sendyoursmiles.com\/?p=1841"},"modified":"2011-04-17T14:40:03","modified_gmt":"2011-04-17T14:40:03","slug":"scripts-to-get-the-statistics-based-on-order-type","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type","title":{"rendered":"Scripts to get the statistics based on order type"},"content":{"rendered":"<p>Scripts to get the statistics based on order type:<\/p>\n<p>&#8212; Number of orders taken in each order type per month<\/p>\n<p><code><br \/>\nselect b.name,b.description,to_char(ordered_date,'Mon') Month, count(0) NoOfOrders<br \/>\nfrom oe_order_headers_all a,<br \/>\n     oe_transaction_types_tl b<br \/>\nwhere 1=1<br \/>\nand a.order_type_id = b.transaction_type_id<br \/>\nand ordered_Date between '01-SEP-2009' and '01-OCT-2009'<br \/>\nand org_id = 1<br \/>\ngroup by b.name, b.description,to_char(ordered_date,'Mon')<br \/>\norder by to_char(ordered_date,'Mon')<\/code><\/p>\n<p>&#8211;Number of lines shipped in each order type per month<br \/>\n<code>select b.name,b.description,to_char(schedule_ship_date,'Mon') Month, count(0) NoOfOrders<br \/>\nfrom oe_order_lines_all a,<br \/>\n     oe_transaction_types_tl b,<br \/>\n     oe_order_headers_all c<br \/>\nwhere 1=1<br \/>\nand c.order_type_id = b.transaction_type_id<br \/>\nand a.header_id = c.header_id<br \/>\nand a.org_id = c.org_id<br \/>\nand schedule_ship_date between '01-SEP-2009' and sysdate<br \/>\nand a.org_id = 1<br \/>\ngroup by b.name, b.description,to_char(schedule_ship_date,'Mon')<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scripts to get the statistics based on order type: &#8212; Number of orders taken in each order type per month select b.name,b.description,to_char(ordered_date,&#8217;Mon&#8217;) Month, count(0) NoOfOrders from oe_order_headers_all a, oe_transaction_types_tl b where 1=1 and a.order_type_id = b.transaction_type_id and ordered_Date between &#8217;01-SEP-2009&#8242; and &#8217;01-OCT-2009&#8242; and org_id = 1 group by b.name, b.description,to_char(ordered_date,&#8217;Mon&#8217;) order by to_char(ordered_date,&#8217;Mon&#8217;) &#8211;Number of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1841","post","type-post","status-publish","format-standard","hentry","category-scripts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Scripts to get the statistics based on order type<\/title>\n<meta name=\"description\" content=\"oracle apps scripts to get the statistics based on order type in order management\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prudhvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Scripts to get the statistics based on order type\",\"datePublished\":\"2011-04-17T14:40:03+00:00\",\"dateModified\":\"2011-04-17T14:40:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\"},\"wordCount\":39,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\",\"url\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\",\"name\":\"Scripts to get the statistics based on order type\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"datePublished\":\"2011-04-17T14:40:03+00:00\",\"dateModified\":\"2011-04-17T14:40:03+00:00\",\"description\":\"oracle apps scripts to get the statistics based on order type in order management\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scripts to get the statistics based on order type\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\",\"name\":\"Prudhvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"caption\":\"Prudhvi\"},\"sameAs\":[\"http:\/\/www.erpschools.com\"],\"url\":\"https:\/\/erpschools.com\/erps\/author\/prudhvi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scripts to get the statistics based on order type","description":"oracle apps scripts to get the statistics based on order type in order management","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Scripts to get the statistics based on order type","datePublished":"2011-04-17T14:40:03+00:00","dateModified":"2011-04-17T14:40:03+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type"},"wordCount":39,"commentCount":2,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type","url":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type","name":"Scripts to get the statistics based on order type","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"datePublished":"2011-04-17T14:40:03+00:00","dateModified":"2011-04-17T14:40:03+00:00","description":"oracle apps scripts to get the statistics based on order type in order management","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/scripts\/scripts-to-get-the-statistics-based-on-order-type#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Scripts to get the statistics based on order type"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512","name":"Prudhvi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","caption":"Prudhvi"},"sameAs":["http:\/\/www.erpschools.com"],"url":"https:\/\/erpschools.com\/erps\/author\/prudhvi"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=1841"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1841\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}