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
importing the data into table having xml datatype using db2 import.
ORACLE SQL similarity with SQL Server
ADmodify.exe "mailbox rights modification disabled" ??
Repeater Enable/Disable RequiredFieldValidator depending a textbox
"outlook.ost cannot be accessed because it has been configured for usw with a different mailbox"
Java Open Source Barcode Software
How to reset the sametime password for a single user
How do I change the default Domain extension for SBS 2008 in Exchange for all users?
Windows Service crashing on one machine, not on the other
"microsoft exchange offline address book" creates synchronization error log