my tables are
table1 is
class_name subject_Name
I class telugu
I class hindi
II class telugu
II class hindi
table2 is
exam_name telugu hindi
unit 1 25 35
unit 2 30 35
Now i insert a row in table1 with subject maths.That subject has added to the table2 as column and also check whether the subject(maths) is present in table2.
my required output is
table1 is
class_name subject_Name
I class telugu
I class hindi
II class telugu
II class hindi
II class maths
III class hindi
III class telugu
III class maths
table2 is
exam_name telugu hindi maths
unit 1 25 35 35
unit 2 30 35 25
Thanks in advance....