Windowed function learning & data quality assurance

1 windowing function The OVER clause is allowed only in the SELECT and ORDER BY processing phases Two sum()over() in a select cannot be dividedLogical order of sql execution: FROM,WHERE,GROUP BY,HAVING, SELECT ,OVER,DISTINCE, TOP,ORDER BYData scenario According to the above data, it is necessary to count how many customers wechat experts ...

Posted by maxic0 on Fri, 18 Feb 2022 17:31:25 +0100

mysql application MHA construction

MHA builds four machines 1 master and 2 slave 1mha First set up master-slave Install mysql Download MySQL: WGet from the linux command line https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar Unzip: tar -xvf mysql-5.7.28-1 el7. x86_ 64.rpm-bundle. tar Installation: RPM -ivh mysql-community-common-5.7.28-1 ...

Posted by xeno on Fri, 18 Feb 2022 14:58:27 +0100

Summary of database topics

Topic source The database development course recently arranged some sql topics, which ended up bald The title and mysql statement are as follows First question Write an sql statement to query the employees whose cumulative working hours exceed 1000, and the result returns the employee job number eno. select eno from works group b ...

Posted by stevenszabo on Fri, 18 Feb 2022 14:36:45 +0100

Oracle case: does index range scan really not read multiple blocks?

This case comes from an SQL optimization of a customer in Xi'an. The optimization itself is not complex, but an interesting problem is found, that is, the index range scanning and back table all use multi block reading. Let's take a look at specific cases.SQL text:UPDATE A_INV_PRINT_DET P SET (P.P_POWER, P.N_POWER, P.V_POWER, P.P_KWH_PRC, P.N_K ...

Posted by twilightnights on Fri, 18 Feb 2022 13:50:06 +0100

01 MySQL database installation (Windows+Mac)

Python wechat ordering applet course video https://edu.csdn.net/course/detail/36074 Python actual combat quantitative transaction financial management system https://edu.csdn.net/course/detail/35475 Catalogue* MySQL database installation + Windows - 1. Introduction to main versions - 2. Software download - 3. Introduction to document directo ...

Posted by pablocullen on Fri, 18 Feb 2022 12:54:26 +0100

Summary of foreign key constraints and cascading operations

1 Concept Foreign key constraints are used to establish links between two table data. One field of one table is constrained by the corresponding field in the other table. In other words, there must be at least two kinds of tables for setting foreign key constraints. The constrained table is called a slave table (child table) and the other ...

Posted by irn3rd on Fri, 18 Feb 2022 05:51:50 +0100

Chapter 1 of MySQL, creating S,C,T,SC,TC tables

MySQL computer practice Chapter 1 Computer purpose Familiar with Mysql software installation;      2. Familiar with the code creation of database and data table; Computer content Write out five relational patterns in Teach database and mark the primary key and foreign key S (Student Relations) Sno Student number Sn full ...

Posted by fpbaum on Fri, 18 Feb 2022 04:27:15 +0100

SpringBoot learning notes [basics]

1. SpringBoot Javase:OOP mysql: persistence html+js+css+jquery + framework = view, unskilled framework, poor css javaweb: a website that independently develops MVC three-tier architecture ssm: framework, which simplifies our development process and makes the configuration more complicated war: tomcat running Spring re simplification: spr ...

Posted by blkrt10 on Fri, 18 Feb 2022 01:33:52 +0100

Redis installation, configuration and related optimization

1, Relational database and non relational database 1 relational database Relational database is a structured database, which is created on the basis of relational model (two-dimensional table model) and is generally oriented to records. SQL statement (standard data query language) is a language based on relational database, which is used ...

Posted by HostingTrade on Fri, 18 Feb 2022 00:33:27 +0100

Day 54 - tree problem, SQL

It's a little smoother to brush the questions today than yesterday. I actually brushed three tree questions in one breath. Although I still have to refer to the problem solution from time to time, I can also think about how the backtracking is realized. It seems that it is useful to brush more questions. I hope to maintain high learning efficie ...

Posted by austrainer on Thu, 17 Feb 2022 17:46:15 +0100