I have 2 tables - Master plan table and detail table. The plan number is unique in Master plan table and repeats in detail table. There is another column in detail table called planrefnumber that is text, contains values such as 'myp-01-pcs', 'myp-02-pcs', 'myp-03-pcs' and so on.
Based on the value of the column 'planrefnumber' , I want to display a new column that has a 'yes' if planrefnumber = 'myp-01-pcs'. If planrefnumber = 'myp-02-pcs', it should display 'yes' and so on.
Also, is this possible to display all of this in a columnar format, i.e.
plan number planrefnumber disp1 disp2 disp3
H1234 myp-01-pcs yes no no
H1245 myp-03-pcs no no yes
Help will be appreciated!
Thanks.
Based on the value of the column 'planrefnumber' , I want to display a new column that has a 'yes' if planrefnumber = 'myp-01-pcs'. If planrefnumber = 'myp-02-pcs', it should display 'yes' and so on.
Also, is this possible to display all of this in a columnar format, i.e.
plan number planrefnumber disp1 disp2 disp3
H1234 myp-01-pcs yes no no
H1245 myp-03-pcs no no yes
Help will be appreciated!
Thanks.
Comment