View previous topic :: View next topic
|
Author |
Message |
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
I have 2 tables T1 and T2 , with the following fields and data.
T1 :
Eno : a1
Ename : Name1
Edept no : D1
T2 :
Dept no : D1
Dept name : Dept-one
My query is if i delete the D1 entry from T2 , what would happen to Edept no in T1 ?
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the 2 tables are unrelated, nothing would happen. . . One row would be deleted from the T2 table and the other table would remain unchanged.
I suspect there is more to your question, but you need to post table definitions for amore specific answer. . . Like is there a foreign key. . . |
|
Back to top |
|
|
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
what if there is a foreign key ? |
|
Back to top |
|
|
nareshkp
New User
Joined: 26 Sep 2007 Posts: 28 Location: Bangalore
|
|
|
|
Check this topic posted earlier in this forum. |
|
Back to top |
|
|
|