Transact SQL syntax basis of Sqlserver2019 database and summary of common SQL functions

Pre school essential knowledge Chapter 1: Construction and use of SQL Server database environmentChapter 2: graphical interface operation for the basic use of SQL Server 2019 databaseChapter 3: SQL Server2019 database start SQL language journeyChapter 4: comprehensive case exercises of SQL Server 2019 database, inserting data, updating an ...

Posted by misterm on Mon, 24 Jan 2022 23:32:34 +0100

Mysql combines the row data according to the conditions, and then transfers the column according to the conditions

background As required by the company, it is now necessary to make statistics on the data of the questionnaire filled in by the user. The final presentation style is EXCEL, and the content is the options of each question filled in by the user, that is, the following table style: User ID numberQuestion 1Question 2Question 3...Question 22110000 ...

Posted by sungpeng on Mon, 24 Jan 2022 16:16:37 +0100

MySQL multi table query

1, Case analysis Table structure of query Get data from multiple tables: -- Wrong query method: query employees Tabular id and departments Name of the table SELECT employee_id, department_name FROM employees, departments; # 2889 records, there can't be so many, it's wrong SELECT * FROM employees; #107 SELECT 2889/107 FROM DUAL; # ...

Posted by dm3 on Mon, 24 Jan 2022 15:07:26 +0100

MySQL advanced statement (the ultimate)

Preparation before learning: first create two tables for sentence experiment mysql -uroot -p show databases; create database plane; use plane; create table destination ( region char(20), place_name char(20)); insert into destination values('southwest','chengdu'); insert into destination values('north China','beijing'); insert into destinat ...

Posted by Isityou on Sun, 23 Jan 2022 20:16:55 +0100

[framework] Introduction to Mybatis (XML version based on native interface), simple addition, deletion, modification and query of the database

Mybatis? MyBatis was originally a part of Apache Open source project iBatis . Is a Java based persistence layer framework. The persistence layer framework provided by iBATIS includes SQL Maps and Data Access Objects (DAOs) MyBatis supports custom SQL, stored procedures, and advanced mapping. MyBatis eliminates almost all JDBC code and the wo ...

Posted by ysu on Sun, 23 Jan 2022 12:09:03 +0100

MySQL must know and know -- Chapter 13 grouping data

Grouping data This chapter describes how to group data so that you can summarize a subset of table content. This involves two new SELECT sentences, GROUP BY and HAVING clauses. Data grouping Last chapter( MySQL must know and know - Chapter 12 summary data )We use SQL aggregate functions to aggregate data. This allows us to count, calculate a ...

Posted by asanvicente on Sat, 22 Jan 2022 18:16:20 +0100

MySQL database from beginners to side dishes 04

MySQL advanced supplement insert INSERT is used when inserting data into the table. In MySQL, it is data that can be inserted (lookup result table), but the order type of each column of the result table must be the same as that of each column of the table to be inserted, such as: --Create a file named jstudents Tables, storage id And nam ...

Posted by jester626 on Sat, 22 Jan 2022 05:48:30 +0100

HiveSql interview question 29 -- find the maximum number of people online and the peak time period [accumulator idea, timing analysis]

catalogue 0 demand analysis 1 data preparation 2 data analysis 3 Summary 0 demand analysis The data is the anchor ID,stt represents the start time and edt represents the next time. idsttedt10012021-06-14 12:12:122021-06-14 18:12:1210032021-06-14 13:12:122021-06-14 16:12:1210042021-06-14 13:15:122021-06-14 20:12:1210022021-06-14 15:12:12 ...

Posted by Mzor on Sat, 22 Jan 2022 04:45:39 +0100

Alibaba cloud MaxComputer SQL learning DDL

๐Ÿ’ Today, we will introduce some features of MaxComputer, a big data engine, and MaxComputer SQL. Students interested in hive sql can view the following contents ๐Ÿ‘‡: Part I: Import and export of Hive data of Hadoop (DML).Part II: Hive query statement of Hadoop.Part III: Seven Join statements of Hive in Hadoop.Part IV: Ranking of Hive in Hadoo ...

Posted by gilijk on Fri, 21 Jan 2022 23:49:20 +0100

[leetcode SQL daily practice] - 181 Employees who exceed the manager's income

๐ŸŽˆ Write in front ย  ๐Ÿ™‹โ€โ™‚๏ธ Hello everyone, I'm super dream. We all know that we have to deal with the database almost every day, whether in study or daily work. In order to better operate the database, our SQL knowledge reserve is essential. If you want to master SQL well, you must practice and study every day. Next, Xiaomeng will le ...

Posted by truck7758 on Fri, 21 Jan 2022 22:40:04 +0100