SQL written test for data analysis post of an Internet company

Hello, everyone. I'm Mr. Tony, who only talks about technology and doesn't cut his hair. Recently, a friend shared that he participated in the internship interview of data analyst of an Internet (live delivery) company. The following is my analysis of relevant SQL test questions. The database used is MySQL 8.0. If you find the article useful, ...

Added by johnbruce on Sun, 07 Nov 2021 22:43:46 +0200

15000 word MySQL quick reference manual

SQL basic knowledge sorting select query results, such as:   [student number, average score: group function AVG (score)] from which table to find data, such as: [related to grade: grade table score] where query criteria, such as: [b. course number = '0003' and b. score > 80] Group by grouping, such as: [average of each student: gro ...

Added by php_novice2007 on Sun, 07 Nov 2021 03:17:40 +0200

MySQL -- stored procedures and stored functions

1. Stored procedures and stored functions      1. Stored procedure and stored function: MySQL provides the mechanism of stored procedure and stored function. Let's collectively call stored procedure and stored function stored programs. Unlike ordinary SQL statements, which need to be compiled first and then executed immediately, ...

Added by yuan22m on Fri, 05 Nov 2021 06:31:56 +0200

Spring Data JPA report HOUR_OF_DAY: 0 -> 1 exception resolution process and solution

During data query, the console reports caused by: com.mysql.cj.exceptions.wrongargumentexception: hour_ OF_ Day: 0 - > 1 exception. The query shows that this is caused by querying the MySQL database and converting the field type to datetime.There are many online solutions, most of which are solved by setting the time zone. Unfortunately, thr ...

Added by jamz310 on Thu, 04 Nov 2021 22:42:55 +0200

A script for automatically backing up MySQL

Students of background development and operation and maintenance are certainly familiar with MySQL backup. Regular online database backup is necessary, and this process is generally automatic. This paper will introduce a shell script, which has the function of automatically backing up MySQL and automatically clearing expired backup data Back ...

Added by shan111 on Thu, 04 Nov 2021 03:08:22 +0200

MySQL - MHA high availability configuration and failover

preface When building a mysql Cluster, a single master makes master-slave replication, which greatly improves the reading and writing ability of the database, but once a single point of failure occurs, the whole cluster will be paralyzed. Therefore, we usually configure the master to improve the redundancy ability of the cluster. 1, W ...

Added by camadan on Tue, 02 Nov 2021 19:44:44 +0200

MySQL master-slave replication and read-write separation

1, Master slave replication          There is a close relationship between master-slave replication of MySQL and read-write separation of MySQL. First, deploy master-slave replication, only master-slave replication Only after the replication is completed can the data be read and written separately on th ...

Added by StirCrazy on Tue, 02 Nov 2021 02:20:58 +0200

Database Mysql optimization and Redis distributed optimization of interview questions

Welcome to personal blog http://www.jkraise.top This case project is based on MySQL and Redis in the dark horse headlines Database optimization 1. Slicing2. Vertical split3. Horizontal split Slice effect Sharding is also called data sharing. Its main work is to split a single database and a single table. Multiple databases and tables toge ...

Added by mattgleeson on Tue, 02 Nov 2021 01:34:34 +0200

Mysql database -- High-level statement

catalogue 1, Sort by keyword 1. Single field sorting 2. Multi field sorting 2, Or / and Application 3, Query non duplicate records 4, Group results 5, Limit result entries 6, Set alias Usage scenario 7, Join statement 8, Wildcard 9, Subquery 1. Definition 2. Subquery - alias 3. Subquery - exists 10, View 11, NULL value 1. Defi ...

Added by Maverickb7 on Mon, 01 Nov 2021 18:52:56 +0200

MySql built-in constraints and functions

MySQL built-in constraints and functions 1. Table constraints In order to ensure that the database is inserted according to the specified rules, table constraints are introduced in the database. Common table constraints are The primary key constraint primar key (cannot be empty or duplicate) if it is an integer type, it is generally defined ...

Added by lajkonik86 on Mon, 01 Nov 2021 18:33:16 +0200