I'm begginer in MS SQL Server 2000.Assume I have three tables.1. Table name: animal code | name | habitat =====+=========+======== A01 | Fish | Sea A02 | Bird | Forest2. Table name: human code | name | hobby =====+=========+====== H01 | John | Sing H02 | Doe | Swim3. Table name: flower code | name | color =====+=========+====== F01 | Rose | red F02 | Jasmine | White
I access that tables using PHP. I want the syntax select is like this:select code, name from newtableThe output must like this: code | name =====+========= A01 | Fish A02 | Bird H01 | John H02 | Doe F01 | Rose F02 | Jasmine
If I update a data on table animal, then this update automatically appear on the newtable. How to create this? Must I use view, stored procedure, or something else? Please teach me step by step. Thank you.