私はSQL Server 2005でこのコードを使用しています。SQL Server 2000 where code = select code from
select name
from customers
where code = (select code from inventory where Active = 1)
SQL Server 2000でこれを行うにはどうすればよいですか?
私はSQL Server 2005でこのコードを使用しています。SQL Server 2000 where code = select code from
select name
from customers
where code = (select code from inventory where Active = 1)
SQL Server 2000でこれを行うにはどうすればよいですか?
..With =複数のコードがある場合で使用、クエリは、唯一のコードが返された場合
がselect name from customers where code in (select code from inventory where Active=1)
1つのコードしか返されない場合、sql-server 2000ではDoesnt '=(SELECT code ...)'が動作しますか? –
はい、1つのコードが返される限り動作します – TheGameiswar
@TimSchmelter、おそらくデータに依存する問題、使用するSQL Serverのバージョンとは関係ありません。 – jarlh
それはあなたが取得しているどのようなエラー –
が動作するはず失敗しますか? –
私は何が良いか、あなたのアプローチや内部結合を知りません: '顧客からのc.nameを選択するcインナー・インベントリi i.code = c.code where i.active = 1'。 –