473,395 Members | 1,915 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,395 software developers and data experts.

GROUP BY...

Hello,

I've a little problem with GROUP BY for my query:

SELECT
`rel_experience_client`.`client_ref`,
`client`.`id`,
`rel_experience_client`.`experience_ref`,
`experience`.`id` AS `id1`,
`experience`.`titre_fr`,
`client`.`libelle`
FROM
`rel_experience_client`
INNER JOIN `client` `client1` ON (`rel_experience_client`.`client_ref` =
`client1`.`id`)
INNER JOIN `experience` ON (`rel_experience_client`.`experience_ref` =
`experience`.`id`)
RIGHT OUTER JOIN `client` ON (`rel_experience_client`.`client_ref` =
`client`.`id`)
ORDER BY
`client`.`libelle`

Here's the result:
-> http://www.metadelic.com/rapport.htm

And here's what I wish to have without including the colmn "client_ref" for
the result:
-> http://www.metadelic.com/rapport.htm#result

I can't work it out...
Any suggestion on how to do?
Regards, Dom
Jul 17 '05 #1
2 1708
Dominique Javet wrote:
Hello,

I've a little problem with GROUP BY for my query:

SELECT
`rel_experience_client`.`client_ref`,
`client`.`id`,
`rel_experience_client`.`experience_ref`,
`experience`.`id` AS `id1`,
`experience`.`titre_fr`,
`client`.`libelle`
FROM
`rel_experience_client`
INNER JOIN `client` `client1` ON (`rel_experience_client`.`client_ref` =
`client1`.`id`)
INNER JOIN `experience` ON (`rel_experience_client`.`experience_ref` =
`experience`.`id`)
RIGHT OUTER JOIN `client` ON (`rel_experience_client`.`client_ref` =
`client`.`id`)
ORDER BY
`client`.`libelle`

Here's the result:
-> http://www.metadelic.com/rapport.htm

And here's what I wish to have without including the colmn "client_ref"
for the result:
-> http://www.metadelic.com/rapport.htm#result

I can't work it out...
Any suggestion on how to do?
Regards, Dom

Hi Dominique,

What is it that you want?
You example is completely unclear to me.
In your posting you use ORDER BY, but in your topic you use GROUP BY.
These two are completely unrelated SQL commands.

If you use a GROUP BY, you need to define at least ONE AGRREGATE in your
query, which you didn't.

Please have a look at: http://www.w3schools.com/sql/default.asp for a very
good quick introduction to SQL. Both GROUP BY and ORDER BY are covered in
that tutorial. It is a great SQL primer.

I am sure you can rewrite your query after reading that tutorial so it will
do what you want.

Good luck!

Regards,
Erwin Moller
Jul 17 '05 #2
Hello,

Correct, I don't have included GROUP BY because I dont have a interessant
result with...
So I think it's better to not include something incomplete.. no?

I still now the GROUP BY synthax (and the site you gave me), but I wish to
group 1 colmn and a another and it's not alphabetical...
BTW, thx, I'm still looking.

Regards, Dom

"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:40*********************@news.xs4all.nl...
Dominique Javet wrote:
Hello,

I've a little problem with GROUP BY for my query:

SELECT
`rel_experience_client`.`client_ref`,
`client`.`id`,
`rel_experience_client`.`experience_ref`,
`experience`.`id` AS `id1`,
`experience`.`titre_fr`,
`client`.`libelle`
FROM
`rel_experience_client`
INNER JOIN `client` `client1` ON (`rel_experience_client`.`client_ref` =
`client1`.`id`)
INNER JOIN `experience` ON (`rel_experience_client`.`experience_ref` =
`experience`.`id`)
RIGHT OUTER JOIN `client` ON (`rel_experience_client`.`client_ref` =
`client`.`id`)
ORDER BY
`client`.`libelle`

Here's the result:
-> http://www.metadelic.com/rapport.htm

And here's what I wish to have without including the colmn "client_ref"
for the result:
-> http://www.metadelic.com/rapport.htm#result

I can't work it out...
Any suggestion on how to do?
Regards, Dom

Hi Dominique,

What is it that you want?
You example is completely unclear to me.
In your posting you use ORDER BY, but in your topic you use GROUP BY.
These two are completely unrelated SQL commands.

If you use a GROUP BY, you need to define at least ONE AGRREGATE in your
query, which you didn't.

Please have a look at: http://www.w3schools.com/sql/default.asp for a very
good quick introduction to SQL. Both GROUP BY and ORDER BY are covered in
that tutorial. It is a great SQL primer.

I am sure you can rewrite your query after reading that tutorial so it

will do what you want.

Good luck!

Regards,
Erwin Moller

Jul 17 '05 #3

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

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
2
by: Tom Loach | last post by:
Our system administrator set up an NT server group in order to allow our users to login to our application via https to our sql server. The group appears as a User in SQL Server when you look at...
4
by: Chad Richardson | last post by:
I've always been mistified why you can't use a column alias in the group by clause (i.e. you have to re-iterate the entire expression in the group by clause after having already done it once in the...
2
by: BillD | last post by:
I'm trying to derive a schema from a base schema. I want to redefine a "group" from the base schema in my derived schema in order to add more options to the "choice" aggregate (see schema1.xsd...
16
by: michael | last post by:
Is it possible to get all href URLs contained in a unordered list and place them in an array? Or in fact two different arrays, differently named one for each <ul> group? <ul> <li><a...
7
by: Darin | last post by:
I have a report that sub-totals on a group, then grand-totals at the report footer. If there's only one group, the sub-total and grand total are redundant, so I only want to show one of them. I...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
7
by: Sameh Ahmed | last post by:
Hello there IsInrole gives ya the means to check if the current or impersonated user belongs to a specific windows role or group. is there a way to do the same without using ADSI to check if...
2
by: jon|k | last post by:
hi all-- i need to do a transformation that removes duplicates (among other things). to accomplish that, i'm trying to use for-each-group, but it doesn't work. i need to select for duplicates by...
3
by: Sebastian | last post by:
Hello all I have a report where I have two nested groups. I know there are only three standard options for running sum: None, Over Group and Over All. I have a MyTextBox in detail section where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.