[go: up one dir, main page]

CN113821515A - Method for inquiring and analyzing linkage rate based on MySql - Google Patents

Method for inquiring and analyzing linkage rate based on MySql Download PDF

Info

Publication number
CN113821515A
CN113821515A CN202111130324.3A CN202111130324A CN113821515A CN 113821515 A CN113821515 A CN 113821515A CN 202111130324 A CN202111130324 A CN 202111130324A CN 113821515 A CN113821515 A CN 113821515A
Authority
CN
China
Prior art keywords
mysql
joint rate
task
user
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111130324.3A
Other languages
Chinese (zh)
Inventor
王连喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huibo Technology Co ltd
Original Assignee
Beijing Huibo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huibo Technology Co ltd filed Critical Beijing Huibo Technology Co ltd
Priority to CN202111130324.3A priority Critical patent/CN113821515A/en
Publication of CN113821515A publication Critical patent/CN113821515A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Managing shopping lists, e.g. compiling or processing purchase lists
    • G06Q30/0635Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于MySql查询分析连带率的方法,包括用户进入连带率分析页面,选择或输入要查询的订单数据参数,提交自定义任务;接收自定义任务的订单数据参数,并将参数传入后台,然后,MySql执行自定义任务;MySql执行自定义任务,MySql执行自定义任务完成后,将得到计算连带率结果的表保存到数据库结果表中;用户进行查询任务状态和任务结果时,用户连带率分析页面根据所述数据库结果表的数据,返回自定义任务执行结果和状态至用户。本发明通过完整高效的mysql数据表分析连带率,从具体数据方面,能够更加明确的看出各个商品之间的连带性、关联性;帮助商家合理推销商品、提高销量。

Figure 202111130324

The invention discloses a method for analyzing the joint rate based on MySql query. The method comprises the following steps: a user enters a joint rate analysis page, selects or inputs order data parameters to be queried, and submits a custom task; receives the order data parameters of the custom task, and converts the parameters to the parameters. Pass it into the background, and then MySql executes the custom task; MySql executes the custom task, and after MySql executes the custom task, the table that obtains the result of calculating the joint rate is saved in the database result table; when the user queries the task status and task result , the user association rate analysis page returns the custom task execution result and status to the user according to the data in the database result table. The invention analyzes the joint rate through a complete and efficient mysql data table, and from the aspect of specific data, can more clearly see the joint and correlation between various commodities, and helps the merchants to reasonably promote the commodities and increase the sales volume.

Figure 202111130324

Description

Method for inquiring and analyzing linkage rate based on MySql
Technical Field
The invention relates to the technical field of computer application, in particular to a method for inquiring and analyzing linkage rate based on MySql.
Background
In the field of sales, it is important for merchants to sell commodities with relevance, but the relevance defined by the merchants is different from the relevance understood by users, and wrong marketing is likely to be half the time. For a shopping center pursuing multi-business mixed consumption, the associated consumption is the core of the shopping center operation, and when the brand combination is fixed, the associated rate can be improved or not by increasing the unit price of customers.
Disclosure of Invention
Aiming at the technical problems in the related art, the invention provides a method for inquiring and analyzing the linkage rate based on MySql, which can overcome the defects of the prior art.
In order to achieve the technical purpose, the technical scheme of the invention is realized as follows:
a method for analyzing linkage rate based on MySql query comprises the following steps:
s1, the user enters the linkage rate analysis page, selects or inputs the order data parameter to be inquired, and creates and submits the self-defined task;
s2, receiving order data parameters of the custom task, transmitting the parameters to a background, and then, MySql executing the custom task;
s3, the MySql executes a user-defined task, firstly, the MySql creates a table 1, the table 1 reads order data, calculates the number of users who purchase each commodity, creates a table 2, the table 2 calculates the number of users who purchase a commodity I and a commodity II, the table 1 is left-associated with the table 2, filters out data in the table 2 with the same commodity, calculates the linkage rate at the same time, creates a table 3, and outputs the calculated linkage rate result to the table 3;
s4, creating a table 4 by the MySql, wherein the table 4 is used for storing the client type, associating the table 3 with the table 4, creating a table 5 by the MySql, and outputting the association rate to the table 5;
s5, after the MySql executes the user-defined task, saving the table 5 for obtaining the result of calculating the linkage rate into a database result table;
and S6, when the user inquires the task state and the task result, the user association rate analysis page returns the self-defined task execution result and state to the user according to the data of the database result table.
Further, the order data parameters to be inquired comprise input parameters, a time range, commodities to be analyzed, commodity order data, a linkage rate range, a recommendable people number range and a predicted success people number range.
Further, in step S3, when the user number of the purchased commodity is calculated in table 1 and table 2, it is necessary to perform deduplication in advance based on the unique identification ID of the user.
Further, in step S4, the client types include an important client and a common client, and when the important client outputs the association rate again, all the association rates are normally output, and the important client includes important data in approximately 90 days; when the common client outputs the linkage rate, only the linkage rate data with the linkage rate more than 10% is output, and the important data of nearly 90 days are not included.
Further, the user selects screening, exporting or directly selecting marketing according to the returned results.
The invention has the beneficial effects that: the linkage rate is analyzed through a complete and efficient mysql data table, and the linkage and relevance among various commodities can be more clearly seen from the aspect of specific data; two kinds of execution methods of one set of flow, laminating reality, high efficiency execution analysis task more, moreover, the inquiry scope is big, and the maximize supports inquiry yesterday data, more is favorable to customer analysis and marketing, and help the trade company rationally promote commodity, improve the sales volume.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for analyzing linkage rate based on MySql query according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention, and for the convenience of understanding the above technical solutions of the present invention, the above technical solutions of the present invention are described in detail below by specific use modes.
As shown in fig. 1, according to the method for analyzing the linkage rate based on MySql query in the embodiment of the present invention, the implementation steps include: firstly, a user enters a linkage rate analysis page, selects or inputs order data parameters to be inquired, and creates and submits a custom task. The order data parameters to be inquired comprise input parameters, a time range, commodities to be analyzed, commodity order data, a linkage rate range, a recommendable people number range and a predicted success people number range.
And transmitting the received order data parameters of the custom task into a background, and then executing the custom task by MySql.
The MySql executes a user-defined task, firstly, the MySql creates a table 1, the table 1 reads order data, calculates the number of users purchased by each commodity, creates a table 2 by the MySql, calculates the number of users who purchased a commodity I and a commodity II at the same time by the table 2, the table 1 is left-associated with the table 2, filters out data in the table 2 with the same commodity, calculates the linkage rate at the same time, creates a table 3, and outputs the calculated linkage rate result to the table 3; when the number of users purchasing commodities is calculated in the tables 1 and 2, duplication removal needs to be performed in advance according to the unique identification ID of the users; MySql creates table 4, wherein table 4 is used for storing the client type and associating table 3 with table 4; the MySql creates a table 5 again, and the association rate is output to the table 5; the client types comprise key clients and common clients, when the key clients output the linkage rate again, all the linkage rates are normally output, and important data in nearly 90 days are contained (the calculation cycle is T +1, and the calculation is carried out by using the data in nearly 90 days before today); when the common client outputs the linkage rate, only the linkage rate data with the linkage rate more than 10% is output, and the important data of nearly 90 days are not included.
And after the MySql executes the custom task, saving the table 5 for obtaining the result of calculating the linkage rate into a database result table.
And when the user inquires the task state and the task result, the user association rate analysis page returns the user-defined task execution result and state to the user according to the data of the database result table, and the user selects screening, exporting or directly selects marketing according to the returned result.
In conclusion, by means of the technical scheme, the linkage rate is analyzed through the complete and efficient mysql data table, and the linkage and relevance among commodities can be more clearly seen from the aspect of specific data; two kinds of execution methods of one set of flow, more laminating reality, high efficiency execution analysis task, moreover, the inquiry scope is big, and the maximize supports inquiry yesterday data, more is favorable to customer analysis and marketing, and help the trade company rationally promote commodity, improve the sales volume, brings actual convenient experience effect for the user.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1.一种基于MySql查询分析连带率的方法,其特征在于,包括以下步骤:1. a method based on MySql query analysis joint rate, is characterized in that, comprises the following steps: S1:用户进入连带率分析页面,选择或输入要查询的订单数据参数,创建并提交自定义任务;S1: The user enters the joint rate analysis page, selects or enters the order data parameters to be queried, and creates and submits a custom task; S2:接收自定义任务的订单数据参数,并将参数传入后台,然后,MySql执行自定义任务;S2: Receive the order data parameters of the custom task, and pass the parameters into the background, and then MySql executes the custom task; S3: MySql执行自定义任务,首先,MySql创建表1,表1读取订单数据,并计算各个商品购买的用户数,MySql创建表2,表2计算购买过商品一的同时又购买过商品二的用户数,所述表1左关联表2,并过滤掉商品相同的所述表2中的数据,同时计算出连带率,创建表3,将计算出的连带率结果输出至所述表3;S3: MySql performs custom tasks. First, MySql creates table 1, table 1 reads the order data, and calculates the number of users who have purchased each product, MySql creates table 2, and table 2 calculates the purchase of product 1 and purchased product 2 at the same time The number of users, the left associated table 2 of the table 1, and filter out the data in the table 2 that the commodity is the same, calculate the joint rate at the same time, create a table 3, and output the calculated joint rate result to the table 3 ; S4: MySql创建表4,表4用于存储客户类型,将所述表3和表4关联,MySql再创建表5,将连带率输出至所述表5;S4: MySql creates table 4, table 4 is used for storing customer type, and described table 3 and table 4 are associated, MySql creates table 5 again, and joint rate is outputted to described table 5; S5:MySql执行自定义任务完成后,将得到计算连带率结果的表5保存到数据库结果表中;S5: After MySql completes the execution of the custom task, the table 5 that obtains the result of calculating the joint rate is saved in the database result table; S6:用户进行查询任务状态和任务结果时,用户连带率分析页面根据所述数据库结果表的数据,返回自定义任务执行结果和状态至用户。S6: When the user inquires about the task status and the task result, the user association rate analysis page returns the user-defined task execution result and status to the user according to the data in the database result table. 2.根据权利要求1所述的基于MySql查询分析连带率的方法,其特征在于,所述要查询的订单数据参数包括有输入参数,时间范围、需要分析的商品、商品订单数据、连带率范围、可推荐人数范围和预计成功人数范围。2. the method for analyzing joint rate based on MySql query according to claim 1, is characterized in that, described order data parameter to be queried includes input parameter, time scope, commodity to be analyzed, commodity order data, joint rate range , the range of the number of people who can be recommended and the range of the number of people who are expected to succeed. 3.根据权利要求1所述的基于MySql查询分析连带率的方法,其特征在于,步骤S3中,所述表1和表2在计算商品购买的用户数时,需要提前根据用户的唯一标识ID进行去重。3. the method based on MySql query analysis joint rate according to claim 1, is characterized in that, in step S3, described table 1 and table 2, when calculating the number of users of commodity purchase, need in advance according to user's unique identification ID Carry out deduplication. 4.根据权利要求1所述的基于MySql查询分析连带率的方法,其特征在于,步骤S4中,所述客户类型包括重点客户和普通客户,所述重点客户再输出连带率时,正常输出所有连带率,同时包含近90天内的重要数据;普通客户输出连带率时,只输出连带率>10%以上的连带率数据,不包含近90天的重要数据。4. the method based on MySql query analysis joint rate according to claim 1, is characterized in that, in step S4, described customer type comprises key customer and common customer, when described key customer outputs joint rate again, normally output all. The joint rate also includes important data in the past 90 days; when ordinary customers output the joint rate, only the joint rate data with a joint rate > 10% or more is output, excluding important data in the past 90 days. 5.根据权利要求1所述的基于MySql查询分析连带率的方法,其特征在于,所述用户根据返回的结果,选择筛选、导出或直接选择营销。5 . The method for analyzing the joint rate based on MySql query according to claim 1 , wherein the user selects screening, exporting or directly selecting marketing according to the returned result. 6 .
CN202111130324.3A 2021-09-26 2021-09-26 Method for inquiring and analyzing linkage rate based on MySql Pending CN113821515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111130324.3A CN113821515A (en) 2021-09-26 2021-09-26 Method for inquiring and analyzing linkage rate based on MySql

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111130324.3A CN113821515A (en) 2021-09-26 2021-09-26 Method for inquiring and analyzing linkage rate based on MySql

Publications (1)

Publication Number Publication Date
CN113821515A true CN113821515A (en) 2021-12-21

Family

ID=78921416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111130324.3A Pending CN113821515A (en) 2021-09-26 2021-09-26 Method for inquiring and analyzing linkage rate based on MySql

Country Status (1)

Country Link
CN (1) CN113821515A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080070B1 (en) * 1999-07-02 2006-07-18 Amazon Technologies, Inc. System and methods for browsing a database of items and conducting associated transactions
CN109376192A (en) * 2018-09-20 2019-02-22 北京空中信使信息技术有限公司 A kind of user retains analysis method, device, electronic equipment and storage medium
CN110069335A (en) * 2019-05-07 2019-07-30 江苏满运软件科技有限公司 Task processing system, method, computer equipment and storage medium
CN110457023A (en) * 2019-07-23 2019-11-15 东软集团股份有限公司 Task creation method, apparatus, storage medium and electronic equipment
CN111258819A (en) * 2020-01-22 2020-06-09 山东新北洋信息技术股份有限公司 Data acquisition method, device and system for MySQL database backup file
CN112699647A (en) * 2020-12-31 2021-04-23 杭州立思辰安科科技有限公司 Implementation method for supporting custom report

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080070B1 (en) * 1999-07-02 2006-07-18 Amazon Technologies, Inc. System and methods for browsing a database of items and conducting associated transactions
CN109376192A (en) * 2018-09-20 2019-02-22 北京空中信使信息技术有限公司 A kind of user retains analysis method, device, electronic equipment and storage medium
CN110069335A (en) * 2019-05-07 2019-07-30 江苏满运软件科技有限公司 Task processing system, method, computer equipment and storage medium
CN110457023A (en) * 2019-07-23 2019-11-15 东软集团股份有限公司 Task creation method, apparatus, storage medium and electronic equipment
CN111258819A (en) * 2020-01-22 2020-06-09 山东新北洋信息技术股份有限公司 Data acquisition method, device and system for MySQL database backup file
CN112699647A (en) * 2020-12-31 2021-04-23 杭州立思辰安科科技有限公司 Implementation method for supporting custom report

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈小鱼: "什么是联单率,零售电商行业的联单率一般在多少?", pages 1, Retrieved from the Internet <URL:https://www.zhihu.com/question/21823750> *

Similar Documents

Publication Publication Date Title
CN103377190B (en) Trading platform based supplier information searching method and device
JPH1115842A (en) Data mining equipment
CN101162520A (en) Interactive searching type on-line trading platform
CN110490748B (en) Order-based project recommendation method and device
CN108846716A (en) Design service network platform on-line pricing method and system with the quotation function of reference
WO2020238363A1 (en) Method and apparatus for pushing information, electronic commerce system and storage medium
JPH1091684A (en) Product display method in online shopping
CN103577999A (en) Online shopping mall system
CN112102001A (en) Product quotation method and related equipment
JP6085802B2 (en) Method and system for identifying defective products based on user purchase behavior
CN113821515A (en) Method for inquiring and analyzing linkage rate based on MySql
JP2007011789A (en) Joint purchase system of merchandise using network
CN114372601A (en) Method and device for predicting commodity purchasing amount
US20070156566A1 (en) System and method for seller and item filters
CN114219589B (en) Virtual entity object generation and page display method and device and electronic equipment
CN107784535A (en) Networked shopping system and method
CN112950269A (en) Incentive e-commerce order service management system
KR20170031476A (en) Consumers driven One2one Marketing and Commerce Platform method and apparatus thereof
CN111192112A (en) Multi-platform interaction method and device
CN110175884A (en) Methods of exhibiting, device, computer equipment and the storage medium of the commercial product recommending page
CN110058847A (en) APP method for customizing, system and shop management method and system
CN111429195A (en) Method and system for realizing scenic e-commerce system
CN115619466B (en) Multi-dimensional high-generality extensible price management system
TWI818281B (en) Distribution management system
CN107145565A (en) A kind of generation method of pipelined data, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211221