Skip to content
DbaFix
Just share answer and question for fixing database problem
MENU
  • HOME

Tag: hierarchy

Using Oracle hierarchical queries for transposing field value into rows

By adminPosted on March 25, 2023

Question : One column in my table stores list of values separated by comma (I know it’s a poor design, […]

MySQL function to return breadcrumb-like string from hierarchical structure

By adminPosted on March 12, 2023

Question : Show create table: CREATE TABLE `a` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `parent_id` int(11) DEFAULT […]

Return hierarchical data from a self-referencing table (parents, children)

By adminPosted on March 12, 2023

Question : I have the following SQL Server 2008 table and data: CREATE TABLE dbo.MyTable (Sno int, refid int); INSERT […]

Is the hierarchyid CLR open-source?

By adminPosted on February 28, 2023

Question : The built-in hierarchyid is a CLR that stores paths in an efficient binary form, and provides other useful […]

SQL Variables inside SELECT query in a function

By adminPosted on February 27, 2023

Question : MariaDB 10.3.14 I have a function that generates the root id in a hierarchy: The function is this: […]

Unflatten hierarchical data in SQL Server

By adminPosted on February 16, 2023

Question : I have some tables in the staging area of a data warehouse that I’m filling with data from […]

Social network comments and posts model in PostgreSQL 9.6

By adminPosted on February 10, 2023

Question : I’m trying to figure out a data structure for migrating from MongoDB to PostgreSQL. Within my posts table […]

Get top most parent by nth child id?

By adminPosted on February 4, 2023

Question : Now there is a question we commonly use this technique to maintain the parent child relation i.e we […]

SQL relationship for nested groups

By adminPosted on January 27, 2023

Question : I’m working on a creating a database schema for a legacy app that currently saves its data to […]

How can I limit a hierarchical query to the point where there are multiple children?

By adminPosted on January 2, 2023

Question : This question is related to my previous question about hierarchical queries. I have a hierarchical query in Oracle […]

  • 1
  • 2
  • 3
  • …
  • 11

Recent Posts

  • Modelling a database for a travelling business that involves Vehicules, Routes, Subroutes and Prices
  • Hard Drive Configuration for my setup
  • Optimize delete query in SQL Server 2008 R2 SP1
  • Join query with closest date in “ON” clause
  • Postgresql vs MySQL – Which is better for join queries & writing data(inserts) [closed]
  • Subtracting an integer in my db by 1. SQL
  • MariaDB Galera Arbitrator failing to sync with SSL
  • Array exceed allowed size in Postgres
  • Mysql Server 5.6 high memory consumption
  • SQL Server 2016 Always ON high availability group listener configuration
  • Columns count in SELECT query and SQL Server buffer cache
  • Postgres sharding installation with citusdb
  • T-SQL Query to calculate Settele and withdraw amount in MSSQL- SERVER
  • Case when not return more than one value
  • Creating a constraint
  • Which of the following pieces of SQL is most efficient
  • Using Oracle hierarchical queries for transposing field value into rows
  • Updating an FTS indexed column returns “Invalid InnoDB FTS Doc ID”
  • Migrating 300 GB mysql database from one server to another cleanly with minimum downtime
  • how to join one select statement to another pivot select statement [closed]

Categories

  • Database Backup
  • Database Design
  • Database Index
  • Database Optimization
  • InnoDB
  • Join
  • MariaDB
  • MongoDB
  • MySQL
  • Oracle
  • Performance
  • Permissions
  • Postgresql
  • Query Performance
  • Replication
  • Security
  • SQL Server
Proudly powered by WordPress / Support by: DizzyCoding