recursive-query
Recursive query
I have a table 开发者_StackOverflow社区which contains the following fields Supervisorid Empid This is just like a referral program. A guy can refer 3 guys under him i.e, 3 is referring three guy[详细]
2023-01-21 16:52 分类:问答Exiting from recursive common table expression once the result set contains some value
Given the following table: create table TreeNode ( ID int not null primary key, ParentID int null foreign key references TreeNode (ID)[详细]
2023-01-21 00:17 分类:问答SQL Server recursive query
I am new to SQL Server development. Most of my experience has been done with Oracle. suppose I have the following table that contains Appointments objects[详细]
2023-01-19 13:16 分类:问答Can you use JOIN in a recursive function PHP/MySQL?
I have the following table. CREATE TABLE IF NOT EXISTS `omc_schedule` ( `id` int(11) NOT NULL AUTO_INCREMENT,[详细]
2023-01-19 10:36 分类:问答Find Parent Recursively using Query
I am using postgresql. I have the table as like below parent_idchi开发者_开发知识库ld_id ----------------------[详细]
2023-01-16 02:55 分类:问答Recursive JPA query?
Does JPA 2 have any mechanism for running recursive queries? Here\'s my situation: I have an entity E, which contains an integer field x. It also may have children of type E, mapped via @OneToMany. W[详细]
2023-01-14 14:39 分类:问答How does a Recursive CTE run, line by line?
I think I\'ve got the format of Recursive CTEs down well enough to write one, but still find myself frustrated to no end that I cannot manually process one (pretend to be the SQL engine myself and rea[详细]
2023-01-06 09:11 分类:问答find relationships in a many-to-many structure with sql
my question is near a parent-child problem, and may need some recursive query, but i didn\'t find any ans开发者_运维技巧wers by browsing forums.[详细]
2022-12-30 00:48 分类:问答Aggregate survey results recursively by manager
I have a StaffLookup table which looks like this. UserSrn | UserName | ManagerSrn ===============================[详细]
2022-12-29 18:47 分类:问答SQL select descendants of a row
Suppose a tree structure is implemented in SQL like this: CREATE TABLE nodes ( id INTEGER PRIMARY KEY, parent INTEGER -- references nodes(id)[详细]
2022-12-29 04:46 分类:问答