Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

I am looking for an R function to build the specific type of diagram shown here. Data.tree seems promising, but I'm stuck. My goal (shown in the image) is merely a hierarchical diagram showing counts ...
Kelly's user avatar
  • 27
0 votes
0 answers
54 views

I have a specific requirement in my .NET application, utilizing the ABP Framework, where I need to dynamically build MongoDB queries and objects based on user input. To illustrate, I've included a ...
Flávio Farias's user avatar
0 votes
1 answer
142 views

I have some simple hierarchical data (parent-child hierarchy) that I would like to visualize in R. I am currently using the R package "collapsibletree" but have not found a way to change the ...
asdfjkl's user avatar
  • 17
0 votes
1 answer
40 views

I have a hierarchical organisational chart against which I want to populate budget vs actual variance analysis in a Power BI report. Each level of the hierarchy has it's own narrative, the parent ...
Simon Powell's user avatar
0 votes
1 answer
487 views

I have an app built on Blazor and .Net6. I have a hierarchy that I need to flatten into a list of objects that I can hook up to a Telerik grid. A simplified version of my tree looks something like ...
USMC6072's user avatar
  • 832
1 vote
1 answer
101 views

I have the following table structure in postgres id parent_id balance 1 null 1000 2 1 1000 3 1 1000 4 2 1000 5 2 1000 6 3 1000 7 3 1000 8 4 1000 I would like to write a query which gives me the ...
riaza's user avatar
  • 11
0 votes
1 answer
406 views

I am trying to form a parent to child relationship combination using data available in my pandas dataframe. Data Example: Parent Child A B A C B D B C C D Expected chain results: A|B A|C A|B|D A|B|C A|...
Balaji Srinivasan's user avatar
0 votes
1 answer
97 views

Data structure: The table has an PK 'id' and a jsonb column 'data'. The 'data' contains an array of objects 'instances'. Each 'instance' has some values and a 'path' array. The 'path' array is a flat ...
George Bagiryan's user avatar
0 votes
1 answer
110 views

I have a table made after joining 2 tables, which produces a recursive table. Now I want to add an extra column CalculatedDiscount and fill empty discounts from higher to lower when lower groups are ...
jan-peter Poppe's user avatar
0 votes
1 answer
105 views

I have a table containing elements referencing their parent. Nodes ID PARENT_ID 2002 2009 2003 2009 2007 2010 2008 2010 2009 2010 2010 NULL To get the immediate children I use SELECT n.ID as ID, n....
mxcx's user avatar
  • 139
0 votes
2 answers
120 views

I have an employees table as below : EMPLOYEE_ID FIRST_NAME LAST_NAME EMAIL PHONE_NUMBER HIRE_DATE JOB_ID SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID 103 Alexander Hunold AHUNOLD 590.423.4567 38720 ...
Alexis Graham's user avatar
0 votes
1 answer
195 views

I am adding a Kendo TreeView to an ASP Net Core 3.1 Page. All the nodes are 'undefined'. From the picture it is trying to do the 'right' thing. Nesting is correct, expands and contracts correctly. ...
Montag's user avatar
  • 3
0 votes
0 answers
976 views

I'm trying to flatten my Parent/ Child Hierarchy dataset in pyspark. This is my sample dataset - Child Parent VP CEO Manager VP Senior Manager I want my output in the following format in pyspark - ...
Prateek's user avatar
0 votes
1 answer
35 views

I have this table id i1 i2 Y001 x1 a1 Y001 x1 a2 Y001 a1 a5 Y001 a2 a3 Y001 a3 a4 The relationship between i1 and i2 is i2 contains i1,so a1 contains x1, a5 contains a1, I want to get the final ...
Philo's user avatar
  • 3
1 vote
1 answer
281 views

I have 2 tables. Table with reletions and table with deals. In my table of deals I have a list of DealID's and for them I have to find out how many parents or children they have The scripts are here: ...
Umid Umaraliev's user avatar
-3 votes
1 answer
73 views

I have a movies array that I'm trying to use to display a calendar page based on dates. Here's the array: $movies = [ 'MOVIE TITLE #1' => [ 'id' => 11990, 'times' => [ ...
Mathew Smith's user avatar
1 vote
1 answer
65 views

I am looking for the best data structure to store two hierarchical trees, where my aim is to find whether all the possible connections between these two trees are covered. I will describe my problem ...
Pranav Rai's user avatar
0 votes
1 answer
86 views

I need to find the root source source for all the record using SQL. Below is the table structure and example. CustID CertNo OldCertNo Source Root Source CU1 C1 Digital Digital CU1 C2 C1 NON Digital ...
Amaresh Karnan's user avatar
0 votes
1 answer
79 views

I have a table named "referral" and it contains two columns named "refer_by" and "refer_to". "refer_by" column stores the id of the user, who refer someone, and ...
Ranjit Soni's user avatar
1 vote
1 answer
220 views

I have a dataframe with information regarding all employers from a given company. All employers should have an ID and the corresponding Manager ID. Example: data = pd.DataFrame({'Parent':['a','a','b','...
Tiago's user avatar
  • 11
0 votes
2 answers
84 views

I'm new to using postgresql and looking for some help on how translate these vars usage in MySql to Postgres it looks like postgres doesn't support this type of syntax. I do not want to use recursion ...
Yaswanth Kumar's user avatar
-1 votes
1 answer
1k views

parent_id child_id dist 1 1 0 1 2 1 1 3 2 1 4 1 1 5 3 1 6 2 2 2 0 2 3 1 2 5 2 2 6 1 3 3 0 3 5 1 4 4 0 5 5 0 6 6 0 dist is the expected output. i tried solution inividually which works fine but when i ...
niki's user avatar
  • 13
0 votes
1 answer
703 views

Input Output Note: There are circular references and these must be stopped at the first "node" - Note: Stop. As in the example output. -There are cases where there are no "nodes" ...
Ademilson's user avatar
0 votes
0 answers
63 views

I'm currently working to build chatbot for car faults using car symptoms (Smell, Hear , Feel etc.) and target(title in this .json)using decision tree. The symptoms i got was in .json file includes ...
Louay Mustafa Mohamed Rashad E's user avatar
0 votes
2 answers
64 views

Input String : pcmdocs/Marquette/10600551 - Track Replacement/CDA-Contract Documentation-Administration/folder1 Expected Output:
Kritika Gupta's user avatar

1
2
3 4 5
42