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
OWA will not work for mailbox in non-internet facing AD site
WHAT'S THE DIFFERENCE BETWEEN NATURAL KEYS AND surrogate keys
Having issues converting Physical ISA server to Virtual Server
format of numeric data in nvarchar field
WCF hosted on IIS: Why doesn't it show me the WCF method name and it's signature?
Sync Access database contacts with Exchange Contacts list
Windows 2008 Standard server connects at 1GB/S but reverts back to 10MB/S
Saving Favorites in Windows 7, IE 8
IIS 7 - setting up the site with www.
Need a 40" or larger touchscreen computer