Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dasu
Posting Yak Master
104 Posts |
Posted - 2004-12-14 : 23:35:05
|
| situationi have two tables asume1.child(id int)2.parent(id int)in child table has 3 records like this 122in parent table has 10 records like this12345678910now my problem is that i want to validate the recods that are present in child table.the validation is like this i want to check that each and every record in child table present inparent table or not.so for this suggest me the solution with out curser and with out local tables.thanksdasu.g |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
Posted - 2004-12-14 : 23:47:01
|
| SELECT *FROM parentLEFT JOIN child ON child.id = parent.idIf you see NULLs for the child records, that means that ID is missing.Damian |
 |
|
|
|
|
|