Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Subquerry return more than one value

Use In Instead of =i believe your query will look like thisSelect * from tbl1 where col1=(select col1 from tbl2)Use In operator hereSelect * from tbl1 where col1 in (select col1 from tbl2)

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 9-Oct-12 1:01 Available Santhosh Kumar Jayaraman
Updates in content.
1 No 9-Oct-12 1:00 Available Santhosh Kumar Jayaraman

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Santhosh Kumar Jayaraman
Software Developer Education First
India India
Started my career with Infosys in 2009 and currently working with Education First. I have great passion towards Microsoft technologies. I have experience in Microsoft technologies like WPF, WCF, ASPNET, WinForms,Silverlight, VB.NET, C-Sharp, Entity framework,SSRS, LINQ, Extension methods and SQL server.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 9 Oct 2012
Article Copyright 2012 by Santhosh Kumar Jayaraman
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid