IT Nursery
In short: Is there any way to sort the values in a GROUP_CONCAT statement? Query: GROUP_CONCAT((SELECT GROUP_CONCAT(parent.name SEPARATOR " » ") FROM test_competence AS node, test_competence AS parent WHERE...
  • June 2, 2022
  • 0 Comments
IT Nursery
I’ve a table like: +-----------+-------+------------+ | client_id | views | percentage | +-----------+-------+------------+ | 1 | 6 | 20 | | 1 | 4 | 55 | | 1...
  • May 31, 2022
  • 0 Comments
IT Nursery
I have a simple SQL query in PostgreSQL 8.3 that grabs a bunch of comments. I provide a sorted list of values to the IN construct in the WHERE...
  • May 28, 2022
  • 0 Comments
IT Nursery
I want to order by Time,but seems no way to do that ? mysql> show processlist; +--------+-------------+--------------------+------+---------+--------+----------------------------------+------------------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time...
  • May 28, 2022
  • 0 Comments
Is it possible to order when the data is come from many select and union it together? Such as Select id,name,age From Student Where age < 15 Union Select...
  • May 22, 2022
  • 0 Comments
I’m stuck on a simple task. I just need to order results coming from this call $results = Project::all(); Where Project is a model. I’ve tried this $results =...
  • May 19, 2022
  • 0 Comments
I want to run this query: SELECT DISTINCT ON (address_id) purchases.address_id, purchases.* FROM purchases WHERE purchases.product_id = 1 ORDER BY purchases.purchased_at DESC But I get this error: PG::Error: ERROR:...
  • May 19, 2022
  • 0 Comments
There are plenty of similar questions to be found on here but I don’t think that any answer the question adequately. I’ll continue from the current most popular question...
  • May 18, 2022
  • 0 Comments