SQL SERVER: data insert -
Sorry guys! I do not know what to do with this task. Data is similar to this question, but when I put new data into big_table.bench_id and I should also see this data in the BATCH_ID table? I have tried to force them with the keys, but big_table is already the main key so do not know what to do. Please any advice would be appreciated.
Big_table.bench_id:
** bank_id ** 31 51 51 61 61 61 71 71 I have two columns Another bit_id table is created:
** different_bank ** ** ** ** ------------------ ---- ------- 31 1 51 2 61 3 71 2 For example, if I add new code like '111' to big_table.bench_id: ** bench_id ** 31 51 51 61 61 61 71 71 111 So it will also appear in other table:
** specific_bank ** ** number ** --- -------------------------- 31 1 51 2 61 3 71 2 111 1
Do you really come from another table The Shykta? You can create a scene to get it.
Create table xxTemp (bench_id int); Insert XxTemp (bench_id) values (31), (51), (51), (61), (61), (61), (71), (71); See xxTempCount, select bench_id, COUNT (1) number xxTemp group from bench_id; Choose * from XxTempCount; Enter the XxTemp (bench_id) values (111); Choose * from XxTempCount; Elmer
Comments
Post a Comment