{"id":83,"date":"2009-03-01T00:37:39","date_gmt":"2009-02-28T23:37:39","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=83"},"modified":"2010-04-17T12:04:54","modified_gmt":"2010-04-17T12:04:54","slug":"anaylsing-sales-data-in-more-detail","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/","title":{"rendered":"Anaylsing sales data in more detail"},"content":{"rendered":"<p>With <a href=\"\/phpesller\/\">PHP-eSeller<\/a>, If you have items in category \/ subcategory and you wish to analyse the items sold per categtory \/ subcategory, then one method is to use a SQL View and export the data to a spreadsheet.<\/p>\n<p>A SQL View is like a query in MS Access.\u00a0 It is a combinations of a number of tables which gives you a much more convenient display.<\/p>\n<p>However, Views are only supported on mySQL version 5 and above so you need to be using that version.<\/p>\n<p>To create a view, go to your PHPMyAdmin interface on your server, go to the database where PHP-eSeller tables are located and in a SQL query box copy the following text :<\/p>\n<p><code><br \/>\nCREATE VIEW fullsalesdetails AS<br \/>\nSELECT<br \/>\nipn_tblsaleshistory.receiver_email,<br \/>\nipn_tblsaleshistory.item_name,<br \/>\nipn_tblsaleshistory.item_number,<br \/>\nipn_tblmaincategory.maincategory,<br \/>\nipn_tblsubcategory.SubCategory,<br \/>\nipn_tblsaleshistory.quantity,<br \/>\nipn_tblsaleshistory.mc_gross,<br \/>\nipn_tblsaleshistory.payer_email,<br \/>\nipn_tblsaleshistory.payment_date,<br \/>\nipn_tblitems.item_owner<br \/>\nFROM ipn_tblsaleshistory INNER JOIN<br \/>\n((ipn_tblmaincategory INNER JOIN ipn_tblitems ON ipn_tblmaincategory.recid = ipn_tblitems.maincat_id)<br \/>\nINNER JOIN ipn_tblsubcategory ON ipn_tblitems.subcat_id = ipn_tblsubcategory.recid)<br \/>\nON ipn_tblsaleshistory.item_id = ipn_tblitems.recid<br \/>\nWITH CHECK OPTION;<br \/>\n<\/code><br \/>\nThis will create a view called &#8220;fullsalesdetails&#8221;\u00a0 Note that this assumes that when the tables were created there was no prefix used for the table name.<\/p>\n<p>You can then look at this view in the same way as any table, and you can even query the view.\u00a0 So you could do something like :<\/p>\n<p><code><br \/>\nSelect * FROM fullsalesdetails WHERE payment_date &gt; \"2008-05-01\"<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With PHP-eSeller, If you have items in category \/ subcategory and you wish to analyse the items sold per categtory \/ subcategory, then one method is to use a SQL View and export the data to a spreadsheet. A SQL<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/\">Read more <span class=\"screen-reader-text\">Anaylsing sales data in more detail<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-php-eseller"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Anaylsing sales data in more detail - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anaylsing sales data in more detail - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"With PHP-eSeller, If you have items in category \/ subcategory and you wish to analyse the items sold per categtory \/ subcategory, then one method is to use a SQL View and export the data to a spreadsheet. A SQL&hellip;Read more Anaylsing sales data in more detail &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2009-02-28T23:37:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-04-17T12:04:54+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\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:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Anaylsing sales data in more detail\",\"datePublished\":\"2009-02-28T23:37:39+00:00\",\"dateModified\":\"2010-04-17T12:04:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/\"},\"wordCount\":171,\"commentCount\":0,\"articleSection\":[\"PHP-eSeller\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/\",\"name\":\"Anaylsing sales data in more detail - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2009-02-28T23:37:39+00:00\",\"dateModified\":\"2010-04-17T12:04:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/anaylsing-sales-data-in-more-detail\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anaylsing sales data in more detail\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anaylsing sales data in more detail - PHP Web Applications","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:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/","og_locale":"en_US","og_type":"article","og_title":"Anaylsing sales data in more detail - PHP Web Applications","og_description":"With PHP-eSeller, If you have items in category \/ subcategory and you wish to analyse the items sold per categtory \/ subcategory, then one method is to use a SQL View and export the data to a spreadsheet. A SQL&hellip;Read more Anaylsing sales data in more detail &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/","og_site_name":"PHP Web Applications","article_published_time":"2009-02-28T23:37:39+00:00","article_modified_time":"2010-04-17T12:04:54+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Anaylsing sales data in more detail","datePublished":"2009-02-28T23:37:39+00:00","dateModified":"2010-04-17T12:04:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/"},"wordCount":171,"commentCount":0,"articleSection":["PHP-eSeller"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/","url":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/","name":"Anaylsing sales data in more detail - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2009-02-28T23:37:39+00:00","dateModified":"2010-04-17T12:04:54+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/anaylsing-sales-data-in-more-detail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Anaylsing sales data in more detail"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":13,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/83\/revisions\/512"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}