18000 word SQL optimization Daquan [reprinted from WeChat official account data analysis and statistical beauty]

Guide: many friends analyze data for two minutes and run for two hours? In the process of using SQL, we should not only pay attention to the data results, but also pay attention to the execution efficiency of SQL statements. This article involves three parts with a long length. It is suggested to read it after collection: SQL introductio ...

Posted by turansky on Sat, 12 Feb 2022 06:16:22 +0100

Introduction to Kubernetes using Yunxi database

Why KubernetesContainers are a great way to package and run applications. In a production environment, we need to manage the containers that run our applications and ensure that they don't go down. If one container fails, you need to start another container. If the system handles this behavior, will it be more convenient? This is the value of K ...

Posted by phpnewbie25 on Fri, 11 Feb 2022 14:56:58 +0100

Basic operation of SparkStreaming in PySpark

Basic operation of SparkStreaming in PySpark preface Stream data has the following characteristics: • data arrives quickly and continuously, and the potential size may be endless • numerous data sources and complex formats • large amount of data, but do not pay much attention to storage. Once processed, it will either be discar ...

Posted by andrew10181 on Fri, 11 Feb 2022 04:41:05 +0100

Niuke sql question bank (31-60 questions) -- personal answers and process analysis

32 please send the last of all employees in the employees table_ Name and first_name is spliced together as name, separated by a space in the middle select concat(last_name,' ',first_name) from employees; Parsing, two string connection methods: mysql CONCAT(str1,str2,...) and CONCAT_WS(separator,str1,str2,…) 33 table building crea ...

Posted by eheia on Thu, 10 Feb 2022 19:53:10 +0100

Learning database video note 1 ------ attach video address: https://www.bilibili.com/video/BV1fx411X7BD

Database notes 1 1. Relationship between SQL, DB and DBMS DB: the DataBase exists as a file on the hard disk SQL: structured query language, high-level language, compiled and executed DBMS: DataBase Manager System Mysql, SQLservice, Oracle, DB2, Syba se Relationship: DBMS executes SQL statements and then operates DB data 2. Tables and g ...

Posted by kavitam on Thu, 10 Feb 2022 16:23:01 +0100

How much do you know when you sleep in spring?

Article catalogue SQL Birth of SQL Standardization SQL:2019 SQL:2016 SQL:2011 SQL:2008 SQL:2006 SQL:2003 SQL:1999 SQL-92 Language characteristics Statement classification SQL realization NewSQL The birth of SQL It was a summer in ...

Posted by rayden on Thu, 10 Feb 2022 14:22:51 +0100

SPJ of computer experiment of database principle and Application

preface Recently, the teacher of computer class has gone through [database establishment and maintenance], [database table and index creation], [single table query] and [multi table query], but his mind is still messy, so he sorted out this note for future sorting and review. The main content is the query of single table and multi table. ...

Posted by adguru on Thu, 10 Feb 2022 14:19:01 +0100

SQL project practice: user behavior analysis of Taobao

1. Introduction to data: Tianchi Taobao User Data 2. Data Import and Cleaning SQL interface tool used this time - SQL workbench 2.1 Importing data create table userbehavior( userID int, itemID int, categoryID int, bahaviortype text, timestamp int ); load data infile "C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/UserBehavior.csv" into ta ...

Posted by CBR on Thu, 10 Feb 2022 10:17:54 +0100

How does SQL split and intercept comma-separated strings?

This article was written because of a recent need: Known field values for a table are irregular comma-separated strings with the following styles: Now split the field into four fields by comma with the following styles: I have not had a ready-made function in Baidu for a long time, so I can only think of my own way. First of all, the simplest ...

Posted by harryman100 on Thu, 10 Feb 2022 06:01:59 +0100

Chapter 48 SQL function DAYOFMONTH

Chapter 48 SQL function DAYOFMONTH Date function that returns the month date of a date expression. outline {fn DAYOFMONTH(date-expression)} parameter Date expression - the date or timestamp expression from which to return the month value date. An expression that is a column name, the result of another scalar function, or a date or tim ...

Posted by Who27 on Wed, 09 Feb 2022 04:16:42 +0100