SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 CHANGE TO SUBQUERY
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Christech82
Starting Member

Hungary
20 Posts

Posted - 04/12/2013 :  16:25:57  Show Profile  Reply with Quote
Blank







Edited by - Christech82 on 04/14/2013 10:11:12

James K
Flowing Fount of Yak Knowledge

3593 Posts

Posted - 04/12/2013 :  16:33:41  Show Profile  Reply with Quote
You can make it into a subquery - but subquery of what is not clear to me. If you look at this page for example, he uses subqueries in each example for a specific purpose. What is the goal/purpose that you are trying to get at?
Go to Top of Page

Christech82
Starting Member

Hungary
20 Posts

Posted - 04/12/2013 :  16:38:53  Show Profile  Reply with Quote
quote:
Originally posted by James K

You can make it into a subquery - but subquery of what is not clear to me. If you look at this page for example, he uses subqueries in each example for a specific purpose. What is the goal/purpose that you are trying to get at?




HI James,
I want to list all the details together as a sale details for each
client!
Go to Top of Page

Lamprey
Flowing Fount of Yak Knowledge

4614 Posts

Posted - 04/12/2013 :  17:03:04  Show Profile  Reply with Quote
A subquery may be the right answer, but it's, generally, better if you tell us what you are trying to do. That includes providing sample data and expected output. That way we can provide you with tested solutions. And, in this case, possibly a better solution that a subquery.

Here are some links to help show you how to ask your question so we can help you better:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000