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
IIS - Host header Value basic question
Vmware standalone convertor error
Drop Down List
What SAN cert Exchange 2010 for UM, OA?
How to configure Stuck In active in GNS3
Rogue disc drive in server 2008 cluster
Combo Box - displays Number instead of text
Repeated Windows Update
Default classic asp pages not loading once aspx wildcard mapping set up in IIS
Multicast session fails to open on secondary site server.