Advertisement

07.22.2008 at 06:06PM PDT, ID: 23587111
[x]
Attachment Details

Adding condition in SQL

Asked by jtuttle99 in SQL Query Syntax, Active Server Pages (ASP)

Tags:

Hello, Experts


I would like to add another table in the SQL and I don't know how to nest the join.
Here is the SQL


"SELECT Items.ImageID AS ImageID2,
Attribs.ImageID AS ImageID,
Priority,
Description,
Name
FROM Items LEFT JOIN Attribs ON Items.ImageID = Attribs.ImageID
WHERE ( Items.ImageID LIKE '%" + Replace(sidephoto_rs__MMColParam, "'", "''") + "%'
OR Name LIKE '%" + Replace(sidephoto_rs__MMColParam, "'", "''") + "%'  
OR  Description LIKE '%" + Replace(sidephoto_rs__MMColParam, "'", "''") + "%' )  
ORDER BY Priority, Items.ImageID ASC"


I would like to add this sentence in FROM clause

Attribs LEFT JOIN AttribList ON Attribs.Descriptor = AttribList.attribID

How do I do it?



Start Free Trial
[+][-]07.22.2008 at 06:20PM PDT, ID: 22065293

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

 
[+][-]07.22.2008 at 07:08PM PDT, ID: 22065466

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.

 
[+][-]07.23.2008 at 12:11PM PDT, ID: 22072757

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, Active Server Pages (ASP)
Tags: SQL (Access)
Sign Up Now!
Solution Provided By: fhlio_admin
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.23.2008 at 12:12PM PDT, ID: 22072773

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.

 
[+][-]07.23.2008 at 04:44PM PDT, ID: 22074964

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.

 
[+][-]07.23.2008 at 04:47PM PDT, ID: 22074974

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 / EE_QW_2_20070628