MYSQL-Operand sollte 1 Spalte enthält

stimmen
0

Ich versuche, die nächste Abfrage zu tun:

SELECT audits.*,
         GROUP_CONCAT(CONCAT(case
            WHEN now() > str_to_date(EndDate,'%Y-%m-%d') AND Grade is Null THEN 'Expired'
            WHEN now() > str_to_date(EndDate,'%Y-%m-%d') AND Grade != '' THEN 'Submitted'
            WHEN str_to_date(StartDate,'%Y-%m-%d') > now() THEN 'Pending'
            WHEN now() between str_to_date(StartDate,'%Y-%m-%d') AND str_to_date(EndDate,'%Y-%m-%d') THEN'Capturable'
        end)ORDER BY id_Audit) as AuditsStatus,
        (SELECT  aq.id_Area,group_concat(q.id_Question) as questions from fsa_questions as q
        inner join fsa_areasquestions as aq
        on aq.id_Question = q.id_Question
        where aq.id_Area = audits.id_Area  and q.Status = true) as questions
        FROM helios.fsa_audits as audits
        WHERE id_Audit='4';


Aber wenn ich es ausführen bekomme ich seine Fehler:
ERROR 1241 (21000): Operand 1 Spalte enthalten sollte (n)
Gibt es eine andere Möglichkeit , es zu tun?

Veröffentlicht am 09/10/2019 um 19:02
quelle vom benutzer
In anderen Sprachen...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more