filter by

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
amyat
Veteran Member
Posts: 45
Joined: 2020-06-24 20:39

filter by

Post by amyat » 2020-07-11 10:27

hello
can u help me for simple query
https://imgur.com/fR8hjPZ
my query is

Code: Select all

SELECT `subject`.`subject_code`, IF(CHAR_LENGTH(`subject`.`subject_code`) || CHAR_LENGTH(`subject`.`subject_name`),
 CONCAT_WS('', `subject`.`subject_code`, '  ', `subject`.`subject_name`), '') FROM `subject` LEFT JOIN `subject` as subject1 ON `subject1`.`subject_code`=`subject`.`pre_requested`

WHERE `subject`.`pre_requested` is Null OR
`subject`.`pre_requested` IN (SELECT `subject`.`subject_code` from `subject`,`stud_result`,`student` WHERE 
`subject`.`subject_code`=`stud_result`.`subject_code` and `stud_result`.`stud_code`= 'stu1001' AND `stud_result`.`status`='win') ORDER BY 2
what i need to change from 'stu1001'...
help me please :cry: :cry:
sry for my not enough knowledge

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: filter by

Post by pbottcher » 2020-07-11 10:34

Hi,

can you please explain more detailed what you try to do. When is the query needed? Where did you put the query?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply