⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distinctelimination.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 5 页
字号:
1          |1          |1          1          |2          |1          1          |3          |1          2          |1          |1          2          |2          |1          2          |3          |1          3          |1          |1          3          |2          |1          3          |3          |1          ij> -- Following runtime statistics output should have Eliminate duplicates = truevalues SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- no single table will yield at most 1 rowselect distinct a.c1, a.c3, a.c2 from two a, two b where a.c1 = b.c1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Sort ResultSet:Number of opens = 1Rows input = 27Rows returned = 9Eliminate duplicates = trueIn sorted order = falseSort information: 	Number of rows input=27	Number of rows output=9	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0Source result set:	Project-Restrict ResultSet (5):	Number of opens = 1	Rows seen = 27	Rows filtered = 0	restriction = false	projection = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		restriction time (milliseconds) = 0		projection time (milliseconds) = 0	Source result set:		Hash Join ResultSet:		Number of opens = 1		Rows seen from the left = 9		Rows seen from the right = 27		Rows filtered = 0		Rows returned = 27			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0		Left result set:			Table Scan ResultSet for TWO at serializable isolation level using share table locking chosen by the optimizer			Number of opens = 1			Rows seen = 9			Rows filtered = 0			Fetch Size = 16				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0, 1, 2}				Number of columns fetched=3				Number of pages visited=1				Number of rows qualified=9				Number of rows visited=9				Scan type=heap				start position: null				stop position: null				qualifiers:None		Right result set:			Hash Scan ResultSet for TWO using index TWO_C1C3 at serializable isolation level using share table locking: 			Number of opens = 9			Hash table size = 3			Hash key is column number 0			Rows seen = 27			Rows filtered = 0				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0}				Number of columns fetched=1				Number of deleted rows visited=0				Number of pages visited=1				Number of rows qualified=9				Number of rows visited=9				Scan type=btree				Tree height=1				start position: 	None				stop position: 	None				scan qualifiers:None				next qualifiers:Column[0][0] Id: 0Operator: =Ordered nulls: falseUnknown return value: falseNegate comparison result: falseij> select distinct a.c1, a.c3, a.c2 from two a, two b where a.c1 = b.c1 and a.c2 = 1;C1         |C3         |C2         -----------------------------------1          |1          |1          1          |2          |1          1          |3          |1          2          |1          |1          2          |2          |1          2          |3          |1          3          |1          |1          3          |2          |1          3          |3          |1          ij> -- Following runtime statistics output should have Eliminate duplicates = truevalues SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select distinct a.c1, a.c3, a.c2 from two a, two b where a.c1 = b.c1 and a.c2 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Sort ResultSet:Number of opens = 1Rows input = 27Rows returned = 9Eliminate duplicates = trueIn sorted order = falseSort information: 	Number of rows input=27	Number of rows output=9	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0Source result set:	Project-Restrict ResultSet (5):	Number of opens = 1	Rows seen = 27	Rows filtered = 0	restriction = false	projection = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		restriction time (milliseconds) = 0		projection time (milliseconds) = 0	Source result set:		Nested Loop Join ResultSet:		Number of opens = 1		Rows seen from the left = 9		Rows seen from the right = 27		Rows filtered = 0		Rows returned = 27			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0		Left result set:			Table Scan ResultSet for TWO at serializable isolation level using share table locking chosen by the optimizer			Number of opens = 1			Rows seen = 9			Rows filtered = 0			Fetch Size = 16				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0, 1, 2}				Number of columns fetched=3				Number of pages visited=1				Number of rows qualified=9				Number of rows visited=9				Scan type=heap				start position: null				stop position: null				qualifiers:Column[0][0] Id: 1Operator: =Ordered nulls: falseUnknown return value: falseNegate comparison result: false		Right result set:			Index Scan ResultSet for TWO using index TWO_C1C3 at serializable isolation level using share row locking chosen by the optimizer			Number of opens = 9			Rows seen = 27			Rows filtered = 0			Fetch Size = 16				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0}				Number of columns fetched=1				Number of deleted rows visited=0				Number of pages visited=9				Number of rows qualified=27				Number of rows visited=33				Scan type=btree				Tree height=1				start position: 	>= on first 1 column(s).	Ordered null semantics on the following columns: 				stop position: 	> on first 1 column(s).	Ordered null semantics on the following columns: 				qualifiers:Noneij> -- both keys from unique index in where clause but joined to different tablesselect distinct a.c1 from one a, two b, three c where a.c1 = b.c1 and c.c1 = b.c3and a.c1 = 1;C1         -----------1          ij> -- Following runtime statistics output should have Eliminate duplicates = truevalues SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- both keys from unique index in where clause but joined to different tablesselect distinct a.c1 from one a, two b, three c where a.c1 = b.c1 and c.c1 = b.c3and a.c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Sort ResultSet:Number of opens = 1Rows input = 3

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -