473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

New user question...

Here is my query that works...

SELECT CONCAT(LastName, ', ', FirstName) AS FullName,
address_Address.`Phone2`,
address_Address.`Phone1`,
address_AdditionalData.Type,
address_AdditionalData.Value,
address_GroupList.GroupName
FROM address_AdditionalData
RIGHT OUTER JOIN address_Contact ON address_AdditionalData.ID =
address_Contact.ID
INNER JOIN address_Address ON address_Contact.PrimaryAddType =
address_Address.AddType AND address_Contact.ID = address_Address.ID
INNER JOIN address_Groups ON address_Contact.ID = address_Groups.ID
INNER JOIN address_GroupList ON address_Groups.GroupID =
address_GroupList.GroupID
WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID = "3"
ORDER BY FullName;

All I'd like to do is change the WHERE clause to include the values 6
and 7.

I've tried to do this:
AND WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID > "5"

Which won't work.

Any suggestions?

JC
Jul 19 '05 #1
4 1653

"John Croson" <ne**********@spamgourmet.com> wrote in message
news:68**************************@posting.google.c om...
Here is my query that works...

SELECT CONCAT(LastName, ', ', FirstName) AS FullName,
address_Address.`Phone2`,
address_Address.`Phone1`,
address_AdditionalData.Type,
address_AdditionalData.Value,
address_GroupList.GroupName
FROM address_AdditionalData
RIGHT OUTER JOIN address_Contact ON address_AdditionalData.ID =
address_Contact.ID
INNER JOIN address_Address ON address_Contact.PrimaryAddType =
address_Address.AddType AND address_Contact.ID = address_Address.ID
INNER JOIN address_Groups ON address_Contact.ID = address_Groups.ID
INNER JOIN address_GroupList ON address_Groups.GroupID =
address_GroupList.GroupID
WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID = "3"
ORDER BY FullName;

All I'd like to do is change the WHERE clause to include the values 6
and 7.

I've tried to do this:
AND WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID > "5"

Which won't work.

Any suggestions?

JC


I'm a six month newbie but this should work for you...

AND WHERE address_Contact.ID > "5" AND address_Groups.ID > "5" AND
address_Groups.GroupID > "5" AND address_GroupList.GroupID > "5"

Jul 19 '05 #2

"John Croson" <ne**********@spamgourmet.com> wrote in message
news:68**************************@posting.google.c om...
Here is my query that works...

SELECT CONCAT(LastName, ', ', FirstName) AS FullName,
address_Address.`Phone2`,
address_Address.`Phone1`,
address_AdditionalData.Type,
address_AdditionalData.Value,
address_GroupList.GroupName
FROM address_AdditionalData
RIGHT OUTER JOIN address_Contact ON address_AdditionalData.ID =
address_Contact.ID
INNER JOIN address_Address ON address_Contact.PrimaryAddType =
address_Address.AddType AND address_Contact.ID = address_Address.ID
INNER JOIN address_Groups ON address_Contact.ID = address_Groups.ID
INNER JOIN address_GroupList ON address_Groups.GroupID =
address_GroupList.GroupID
WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID = "3"
ORDER BY FullName;

All I'd like to do is change the WHERE clause to include the values 6
and 7.

I've tried to do this:
AND WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID > "5"

Which won't work.

Any suggestions?

JC


I'm a six month newbie but this should work for you...

AND WHERE address_Contact.ID > "5" AND address_Groups.ID > "5" AND
address_Groups.GroupID > "5" AND address_GroupList.GroupID > "5"

Jul 19 '05 #3
Thanks for the tip. I ended up using the old code and just filtering it using PHP...
JC

"Randell D." <yo**************************@yahoo.com> wrote in message news:<ENXjb.115489$6C4.50202@pd7tw1no>...
"John Croson" <ne**********@spamgourmet.com> wrote in message
news:68**************************@posting.google.c om...
Here is my query that works...

SELECT CONCAT(LastName, ', ', FirstName) AS FullName,
address_Address.`Phone2`,
address_Address.`Phone1`,
address_AdditionalData.Type,
address_AdditionalData.Value,
address_GroupList.GroupName
FROM address_AdditionalData
RIGHT OUTER JOIN address_Contact ON address_AdditionalData.ID =
address_Contact.ID
INNER JOIN address_Address ON address_Contact.PrimaryAddType =
address_Address.AddType AND address_Contact.ID = address_Address.ID
INNER JOIN address_Groups ON address_Contact.ID = address_Groups.ID
INNER JOIN address_GroupList ON address_Groups.GroupID =
address_GroupList.GroupID
WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID = "3"
ORDER BY FullName;

All I'd like to do is change the WHERE clause to include the values 6
and 7.

I've tried to do this:
AND WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID > "5"

Which won't work.

Any suggestions?

JC


I'm a six month newbie but this should work for you...

AND WHERE address_Contact.ID > "5" AND address_Groups.ID > "5" AND
address_Groups.GroupID > "5" AND address_GroupList.GroupID > "5"

Jul 19 '05 #4
Thanks for the tip. I ended up using the old code and just filtering it using PHP...
JC

"Randell D." <yo**************************@yahoo.com> wrote in message news:<ENXjb.115489$6C4.50202@pd7tw1no>...
"John Croson" <ne**********@spamgourmet.com> wrote in message
news:68**************************@posting.google.c om...
Here is my query that works...

SELECT CONCAT(LastName, ', ', FirstName) AS FullName,
address_Address.`Phone2`,
address_Address.`Phone1`,
address_AdditionalData.Type,
address_AdditionalData.Value,
address_GroupList.GroupName
FROM address_AdditionalData
RIGHT OUTER JOIN address_Contact ON address_AdditionalData.ID =
address_Contact.ID
INNER JOIN address_Address ON address_Contact.PrimaryAddType =
address_Address.AddType AND address_Contact.ID = address_Address.ID
INNER JOIN address_Groups ON address_Contact.ID = address_Groups.ID
INNER JOIN address_GroupList ON address_Groups.GroupID =
address_GroupList.GroupID
WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID = "3"
ORDER BY FullName;

All I'd like to do is change the WHERE clause to include the values 6
and 7.

I've tried to do this:
AND WHERE address_Contact.ID AND address_Groups.ID AND
address_Groups.GroupID AND address_GroupList.GroupID > "5"

Which won't work.

Any suggestions?

JC


I'm a six month newbie but this should work for you...

AND WHERE address_Contact.ID > "5" AND address_Groups.ID > "5" AND
address_Groups.GroupID > "5" AND address_GroupList.GroupID > "5"

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
11
by: Lloyd Sheen | last post by:
Is there any one who has actually done this. I have now scanned more web articles about this with the realization that not one of them (including MSDN docs) outlines how to do this. This is...
3
by: Patrick Olurotimi Ige | last post by:
How can i send LOGON_USER or User.Identity.Name to the Database? I'm working on a survey which is intranet based with Windows Authentication. I can get the current user by calling LOGON_USER or...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
8
by: Prince Mathew | last post by:
Hi All, I have a requirement. I am throwing an exception from my user control I want to catch this in my container page. Is this possible? I don't want any event to be raised. PLEASE...
1
by: weboweb | last post by:
Hello aspnet experts! I have a design question for the more experienced developers (more than me at least :-)). 1) I have a page in the application I'm building that displays a web user...
24
by: David Mathog | last post by:
On a Solaris 8 system if a user "joe" logs in, for instance via ssh, cuserid() returns "joe". That's the expected behavior and so far so good. However if that user then does: % su - sally ...
0
by: mirandacascade | last post by:
Apologies in advance for what I'm guessing may be a trivial question. Assume the following: 1) multi-user environment 2) standard (i.e. not a class module) module with: Public strSample as...
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
4
by: Sparky | last post by:
I don't know how feasible this is, but is it possible to have users log in to access a local database file in such a way that allows the program to know what user name and password they logged in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.