Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #879
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: is there a way to put a table into a parameter |
| Date | 2011-12-21 23:34 +0100 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9FC2EFD164A4FYazorman@127.0.0.1> (permalink) |
| References | <7aa6e91d-24ac-4416-8d12-36cfcf89f8bb@i6g2000vbe.googlegroups.com> <jctas0$h5n$1@dont-email.me> |
Bob Barrows (reb01501@NOyahooSPAM.com) writes:
> select * from pharm where fieldname in (select fieldname from
> interested_ndccodes)
OR
SELECT *
FROM pharm p
WHERE EXISTS (SELECT *
FROM interested_ndccodes ndc
WHERE parm.ndc LIKE ndc.ndc_coding)
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
is there a way to put a table into a parameter Apsteinberg <apsteinberg@hotmail.com> - 2011-12-21 10:47 -0800
Re: is there a way to put a table into a parameter "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-12-21 14:08 -0500
Re: is there a way to put a table into a parameter Erland Sommarskog <esquel@sommarskog.se> - 2011-12-21 23:34 +0100
csiph-web