hi
i have 2 tables:
A: serial , Name , Memo
B: serial , Name , Memo
i have another table:
C: serial , Name , NewName , Memo , NewMemo , Status
i need to fill table C in this condition:
1. A:Name = B:Name and A:Memo = B:Memo -> insert to table C and status = 0
2. A:Name <> B:Name or A:Memo<>B:Memo -> insert to table C and fill NewName or NewMemo
and Status = 1
3. if in table B there is new Serial -> insert to table C and Status = 2
how to make this on sql query ? is it possible ?
thanks in advance
i have 2 tables:
A: serial , Name , Memo
B: serial , Name , Memo
i have another table:
C: serial , Name , NewName , Memo , NewMemo , Status
i need to fill table C in this condition:
1. A:Name = B:Name and A:Memo = B:Memo -> insert to table C and status = 0
2. A:Name <> B:Name or A:Memo<>B:Memo -> insert to table C and fill NewName or NewMemo
and Status = 1
3. if in table B there is new Serial -> insert to table C and Status = 2
how to make this on sql query ? is it possible ?
thanks in advance