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
get 550 5.7.1. Unable to relay for specific domains....
Ethernet crossover cable connect
Windows Server 2008 R2: missing start menu of installed applications
php like zen cart want return to be categories instead of products
Windows 2008 DC and IP Default Gateway settings
Problem with EFS Recovery
split comma delimited values into seperate columns in SQL 2005
Query a txt file and add a user account into administrator group of each machine.
Excel addins
Set up a rolling text box in SSRS