Advertisement

06.29.2005 at 06:59AM PDT, ID: 21474792
[x]
Attachment Details

Query Question

Asked by eciabattari in Microsoft Access Database

Hi - having some problems and need some help.

Background:
1.  Table #1 "tblFocusItems", in which has focus items
2.  Table #2 "tblComments", comments related to the above focus items

SQL Query to join the columns into one:
    SELECT [FocusItems]+". "+nz([Deliverable],"") AS [Focus/Deliverable]
    FROM tblDeliverable RIGHT JOIN tblFocusItems ON tblDeliverable.FocusID = tblFocusItems.FocusID;

Problem:
I want to join the two columns from both tables into a signal string; however, the FocusItem duplicates for each Comment.

What's happening:
  Focus Item: Test SQL db
  Comment #1: backup db
  Comment #2: run test

  Query:
     Test SQL db. backup db
     Test SQL db. run test

What should happen:
     Test SQL db. backup db. run test

There doesn't need to be a specific order to the comments, any order will do.  












Start Free Trial
 
 
[+][-]06.29.2005 at 07:16AM PDT, ID: 14328726

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.

 
[+][-]06.29.2005 at 07:26AM PDT, ID: 14328833

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

Zone: Microsoft Access Database
Sign Up Now!
Solution Provided By: perkc
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.29.2005 at 07:27AM PDT, ID: 14328850

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.

 
[+][-]06.29.2005 at 07:30AM PDT, ID: 14328890

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.

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