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

Tag: group-concatenation

LIMIT the number of rows in GROUP BY and GROUP_CONCAT with ORDER

By adminPosted on March 14, 2023

Question : In this sqlfiddle, CREATE TABLE t1 ( id int(11) unsigned NOT NULL, val int(11) unsigned NOT NULL, rank […]

GROUP_CONCAT with ORDER BY , but results are not ordered

By adminPosted on March 3, 2023

Question : The following query works fine SELECT *, (SELECT GROUP_CONCAT(url SEPARATOR ‘$$’ ) FROM project_photos WHERE project_id = projects.id […]

MySQL, would like to get both a field and a count inside GROUP_CONCAT

By adminPosted on February 20, 2023

Question : I can get a list of statuses that a tracking ticket has had, as well as the id […]

Select post and concatenating all categories it belongs to

By adminPosted on January 23, 2023

Question : I have 3 DB tables POSTS +———-+———-+———-+ | id | title | content | +———-+———-+———-+ CATEGORIES +———-+———-+ | […]

Multiple “GROUP_CONCAT”s with WHERE clause

By adminPosted on January 22, 2023

Question : In a table as id name type info 1 BMW car yes 2 Reno car no 3 IBM […]

Problem filtering information in MySQL query

By adminPosted on December 20, 2022

Question : I’ve a little problem with a SQL query. The objective is to get an employee profile related to […]

Group stored procedures in oracle [closed]

By adminPosted on September 15, 2022

Question : Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? […]

GROUP_CONCAT without limit by WHERE

By adminPosted on September 13, 2022

Question : Buildings and Facilities have a many-to-many relation with a linking table of ids in between. I would like […]

MySQL Group Concat one cell when other cells also match

By adminPosted on September 8, 2022

Question : I’m trying to concatenate the content of a single cell when two cells from other colums also match. […]

How to concat one column of multiple rows (group by clause used in query)

By adminPosted on September 8, 2022

Question : I had some issue while populating some data as per my requirements and that is as follows.. Table […]

  • 1
  • 2
  • 3
  • 4

Recent Posts

  • SQL Server backup. PowerShell vs Python [closed]
  • How to pass a parameter into a subquery in a join statement [closed]
  • Replicate a database with a subset of data offered by custom queries [closed]
  • Are there any benefits in certain ordering of columns when defining indexes
  • Logins aren’t syncing across Availability Groups
  • Finding same values and updating rankings
  • Servers running on Microsoft Windows instead output carriage
  • Master ip has changed in postgresql replication
  • optimize design for a table with 50 columns [closed]
  • SQLServer In-Memory database and log file size unexpected increase
  • Is it worth to optimize queries with EarlyTermination Timeout?
  • Is there way to get transaction commit timestamp in Postgres?
  • MySQL/PHP Returning Blank Error Message [closed]
  • Mysql might have too many indexes
  • Database replication with ability to revert to previous states
  • Linked server to Oracle doesn’t use filters. Are there any performance changes in different versions of SQL Server?
  • Enable query store for all databases
  • SQL Server 2012 Enforce Password Policy [closed]
  • Maintenance in MYSQL when innodb_file_per_table disabled
  • SQL Server stored procedure producing data related to months between two dates [duplicate]

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