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
Migrating files/folders to a new domain
RPC through HTTP keeps prompting for pw on Exchange 2010
Remove space from textbox automatically
sp_helptext with schema
I need to accumulate the values in query
E72 - How to make email work without activating data services?
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Cisco CME - One DID to display its own number in caller ID
VBA for Excel - Calling a function from a dll - hanging - suggestions?
Sending a web API command from Asterisk