Re: GROUP BY...

From: Dominique Javet (kidhermes_at_yahoo.fr)
Date: 05/06/04


Date: Thu, 6 May 2004 17:33:59 +0200

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"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote in
message news:409a589c$0$561$e4fe514c@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



Relevant Pages

  • Re: Batch commands & Ms-Access
    ... due to the Access DataBase's query enging which doesn't support multiple ... Thanks & Regards, ... Microsoft Online Support ... |>> It is not only Access, you cannot use Batch SQL commands in ADONET. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Syntax Error - INSERT INTO Statement
    ... ok, now create a new query, switch to SQL view and paste this SQL there, access will tell you what is going wrong ... Best regards, ... "Alex Dybenko" wrote: ...
    (microsoft.public.access.modulesdaovba)
  • Re: GROUP BY...
    ... Dominique Javet wrote: ... > Regards, Dom ... These two are completely unrelated SQL commands. ... query, which you didn't. ...
    (comp.lang.php)
  • Re: SQL null problem
    ... Thanks a lot Nicholas and Daniel. ... >> Regards, ... > That's the defined behavior of the SQL SUM function. ... > Assuming you are querying SQL Server, you could write the query thus to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SQL null problem
    ... Thanks a lot Nicholas and Daniel. ... >> Regards, ... > That's the defined behavior of the SQL SUM function. ... > Assuming you are querying SQL Server, you could write the query thus to ...
    (microsoft.public.dotnet.framework.aspnet)