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
Backup Exec 12.5 Job Running Extremely slow
Icons and Start menu disappeared from desktop, running Windows 7 Home Edition on a Dell
Network Utilization Theory
Languages in Blackberry firmware
Read all data from a datagridview and copy it to a public array or something like that...
Macbook air connects to skype, but not on the internet
Advice on Gbic switches for major network installation
How to make Crystal Report not require SQL Server login, prompt
Exchange 2007 Powershell - Set-MailboxDatabase add Journal Recipient that is a Distribution Group
How to open new pdf window using struts ?