Oracle analysis function usage

1. What is a window function? Window functions are also analysis functions. Oracle from 8.1 6 start to provide window function, which is used to calculate some aggregate value based on group, The window function specifies the data window size of the analysis function. The data window size may change with the change of rows. Unlike aggregat ...

Added by FireWhizzle on Wed, 29 Dec 2021 00:18:58 +0200

Oracle query statement

1, Multi table query multi-table query   -- merge union   -- intersection intersect   -- subtraction minus The INTERSECT operator returns only the common rows of the two queries For example: SELECT orderno FROM order_master INTERSECT SELECT orderno FROM order_detail; The MINUS operator returns rows that appear in the sec ...

Added by MVSS on Tue, 28 Dec 2021 15:01:09 +0200

SQL master: add, modify, delete and query four sentence patterns

SQL master: add, modify, delete and query four sentence patterns SQL statement: a general standard for structured query statements in relational databases. Relational database (table): Mysql, Oracle, DB2, SqlServer, etc. (1) INSERT add statement (1.1) insert all fields Note: the added data must be consistent with the order, number and type ...

Added by bellaso on Tue, 28 Dec 2021 01:43:52 +0200

Oracle Fundamentals - function summary

Oracle self study notes sorting (IV) 8, Functions 8.1 distinct When the keyword DISTINCT is followed by only one column 1, it represents the non duplicate data of the query result of a single field. When it is followed by multiple column values, it represents all the unique values of the query result composed of multiple fields, and the group ...

Added by Eminem on Mon, 27 Dec 2021 23:48:23 +0200

Chapter 4 SQL aggregate function COUNT

Chapter 4 SQL aggregate function COUNT (2) jurisdiction To use COUNT(*), you must have table level SELECT permissions on the specified table. To use count (column name), you must have column level SELECT permission on the specified column or table level SELECT permission on the specified table. You can determine whether the current user h ...

Added by greatme on Mon, 27 Dec 2021 20:20:46 +0200

262. Travel and users

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface Tip: Here you can add the general contents to be recorded in this article: For example, with the continuous development of artificial intelligence, machine learning technology is ...

Added by aiikcmo on Mon, 27 Dec 2021 09:25:53 +0200

Mybatis many to one, one to many processing

catalogue 1. Many to one processing 1.1 database design 1.2 nested processing by query 1.3 nesting by result 2. One to many processing 2.1. Nesting by result 3. Summary 1. Many to one processing 1.1 database design Entity class: @Data @AllArgsConstructor @NoArgsConstructor public class Student { private int id; private S ...

Added by inVINCEable on Sun, 26 Dec 2021 12:25:17 +0200

[learning notes] Mysql multi table query

multi-table query Table used in the example: emp table dept table Syntax: select * frome Table 1,Table 2, where condition; Tip: the condition of multi table query cannot be less than - 1 of the number of tables, otherwise the Cartesian product will appear, that is, the result is the number of rows in Table 1 * the number of rows ...

Added by lukeurtnowski on Sun, 26 Dec 2021 10:38:36 +0200

MySQL learning notes - SQL statement operation_ 4 (learning notes of pull hook education data analysis practical training camp)

SQL statement operation_ MySQL core query 2 (multi table query) 1 foreign key constraints 1.1 foreign keys The foreign key refers to the field in the slave table corresponding to the primary key of the primary table (that is, there is A column in data table A, which points to the primary key of another data table B, and this column in da ...

Added by atzi on Sun, 26 Dec 2021 06:39:29 +0200

MPP environment construction and problem solving

catalogue 1, Environment construction 1. System planning 2. Configure DM ini 3. Configure dmmal ini 4. Configure dmmpp ctl 5. Run MPP 2, Problem solving 1. After starting two instances, start/ disql error  2. Common meter test 3. Temporary meter test 1, Environment construction Build a two node MPP cluster in linux environment ...

Added by unidox on Sun, 26 Dec 2021 02:37:13 +0200