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
css easy question - page items apprearing low down
mysql search keywords table sort by relevance
I'm trying to config route and vpn in Ubuntu
Secure Email for HIPAA compliance
XP Mode - usb software key not working
looking for best web designer.
MS Dynamics 4.0 Outlook Configuration - Microsoft Dynamics CRM server is not available
Login Script to add multiple network printers?
GroupWise 6.0.1 - Some addresses are undeliverable and have been crossed out
Unattended Windows 7 Installation answer file not working