« first day (2803 days earlier)      last day (1515 days later) » 

7:37 AM
morning
 
8:27 AM
getting worse and worse ...
465
Q: How do the moderator resignations affect me and the community?

RainbI see that many moderators have resigned, citing some issues I don't know about. I don't know any of these moderators, I have no emotional connection to them, and so I don't care personally about them. Yet, the sheer number of resignation posts that I see makes me unsettled. I just use Stack Exc...

@Rob are you hanging out well?
 
Morning o/
 
@Shaneis o>
 
9:20 AM
hellop folks
 
@ARr0w <o
 
9:30 AM
\o @ARr0w
 
..o
,-|-'
../\
 
9:55 AM
I hate when you put effort into an answer for someone and then they dont even log into SO to see it
anyway /o
 
@WhatsThePoint o\
 
\o
 
10:26 AM
Morning
Can someone help me with a SQL issue?
 
We can certainly try...
 
I had this issue which is resolved - stackoverflow.com/questions/59808436/…
But.. if a directory have 2 or more types it returns me only the first type
For example.. if one customer have 2 files - sales order and purchasing order
how can I fill my table with fname, lname, files
 
can you make us a sample database on dbfiddle.uk and tell us your expected output?
 
For 1 (iddir) - Jane (fname) Doe (lname) i want to put in same column 1; 2 (id_type - from typef table) and sales order; purchasing order (idf - from files table)
sure, just a minute
 
10:57 AM
I have imported the db on dbfiddle
 
11:22 AM
the sql query contains 3 tables , 3 joins.
where as, you have added definition for table "files" only
@DarkSoul try insert function to merge data in one column
https://www.dbload.com/articles/mssql-stuff-function-in-mysql.htm
 
11:40 AM
I want something like this: stackoverflow.com/questions/13451605/…
 
11:52 AM
you landed on the right answer. try group_concat(Name separator ',') yourself
let us know what effort you made regarding it
then one of us who knows mysql will happily help you out.
we do this for own good of people so that they can learn.
 
yeah, I know, I'm trying
still don't get it... because I have 3 tables - 1 parent, 1 child, 1 grandchild...
 
12:09 PM
it should be something like this



select id, group_concat(`Name` separator ',') as `ColumnName`
from
(
  select group_concat(iddir+'-'+fname+' '+lname+ ',') as `Name`
  --same use group_concat for col2 and col 3
  FROM directory AS d
  LEFT JOIN customers AS c ON d.idcust = c.id_cust
  LEFT JOIN files AS f ON d.idfile = f.idf
  LEFT JOIN typef AS t ON f.id_type = t.idtype
  group by id, `Name`
) tbl
group by id, `Name`
i don't know mysql above is just a hint/case
 
12:24 PM
already tried something like your solution, but it's not working :(
select *, group_concat(`fname` separator ',') as `CName`
from
(
select group_concat(iddir+'-'+fname+' '+lname+ ',') as `fname`

FROM directory AS d
LEFT JOIN customers AS c ON d.idcust = c.id_cust
LEFT JOIN files AS f ON d.idfile = f.idf
LEFT JOIN typef AS t ON f.id_type = t.idtype
group by idcust, `fname`
) tbl
group by idcust, `fname`
MySQL said: Documentation

#1054 - Unknown column 'idcust' in 'group statement'
i have tried with group by d.idcust, fname- still not working
 
MiK
hello guys, does anyone here have basic knowledge about MSACCESS with SQL tables, I just have a quick question about a prefix
 
if I change select all (select * ) with select idcust i'm getting this
#1054 - Unknown column 'idcust' in 'field list'
 
 
3 hours later…
3:44 PM
0
Q: PHP SQL Concat issue

DarkSoulCheers, I want to concat multiple rows to one column Right now, my output is CaseID Name Number Register date filename Actions 2 John Doe 3/2020 2020-01-20 test1.pdf delete 2 John Doe 3/2020 2020-01-20 test2.pdf delete 3 J...

 
 
2 hours later…
5:23 PM
see ya
 

« first day (2803 days earlier)      last day (1515 days later) »