Advertisement

04.21.2008 at 04:37AM PDT, ID: 23339148
[x]
Attachment Details

Nested SQL Select Query

Asked by thehaze in SQL Query Syntax, MS SQL Server

Tags: Microsoft, SQL server, 2005, Nested SELECT

How can I combine these to select statements into a single nested SELECT.?

SELECT * FROM NCR_SQL_DATA WHERE [G Date Created] > 39448

SELECT NCR_SQL_DATA.[G Supplier], SUM (NCR_SQL_DATA.[No of NCRs]) as Total_NCRs,supplier_vs_commodity.Commodity
FROM NCR_SQL_DATA, supplier_vs_commodity
WHERE [G Supplier] = supplier_vs_commodity.Supplier
GROUP BY supplier_vs_commodity.Commodity Start Free Trial
[+][-]04.21.2008 at 04:39AM PDT, ID: 21400537

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 04:47AM PDT, ID: 21400567

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:25AM PDT, ID: 21400853

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, MS SQL Server
Tags: Microsoft, SQL server, 2005, Nested SELECT
Sign Up Now!
Solution Provided By: ee_rlee
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04.21.2008 at 05:32AM PDT, ID: 21400909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:38AM PDT, ID: 21400961

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:39AM PDT, ID: 21400963

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:41AM PDT, ID: 21400974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 05:53AM PDT, ID: 21401093

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628