Microsoft
Software
Hardware
Network
Question : Delete query (sql)
I have two tables
'cases' which has an 'id' int field and a 'firmid' int fields.
'BlobTbl' which has a field 'caseid' which is the same as the 'id' of the 'cases' table, that is where they join.
I want to delete all records from 'BlobTbl' table where when joined to the 'cases' table 'firmid <> 2'
So the join would be for a select statement something like
Select * from Blobtbls
inner join cases on
cases.id = Blobtbls.caseid
Thanks.
Answer : Delete query (sql)
DELETE FROM BlobTbl
WHERE caseid IN (SELECT ID FROM cases where firmid <> 2)
Random Solutions
Windows 2003 Terminal License server problem
Registry, Winlogon, KEY_WOW64_64KEY errors
how to create a css file to format xml file
User activity in solaries
I can't find the audio driver for a Satellite P30
Two IPs on the same dot com
vCenter Converter and SBS2008
How do I set up a link to a specific page within a wordpress template?
Double Table when margin is adjusted
Server 2008 Minidump help needed