[firebird-support] Help on this SQL statment

2013-06-15 Thread Andrew gable
Hi everyone, Can someone please advise me as to what is happing with this SQL Select statement I am trying to use SQLCommand = vbNullString SQLCommand = SQLCommand & "SELECT " SQLCommand = SQLCommand & "PRODUCTCODE," SQLCommand = SQLCommand & "PRODUCTDESCRIPTION," SQ

Re: [firebird-support] Help on this SQL statment

2013-06-15 Thread Nagy Szilveszter
, 2013 7:54 PM Subject: [firebird-support] Help on this SQL statment   Hi everyone, Can someone please advise me as to what is happing with this SQL Select statement I am trying to use SQLCommand = vbNullString SQLCommand = SQLCommand & "SELECT " SQLCommand = SQLCommand

RE: [firebird-support] Help on this SQL statment

2013-06-15 Thread Andrew gable
, 2013 7:54 PM Subject: [firebird-support] Help on this SQL statment Hi everyone, Can someone please advise me as to what is happing with this SQL Select statement I am trying to use SQLCommand = vbNullString SQLCommand = SQLCommand & "SELECT " SQLCommand = SQLCommand

Re: [firebird-support] Help on this SQL statment

2013-06-15 Thread Doug Chamberlin
zter > Sent: 15 June 2013 5:57 PM > To: firebird-support@yahoogroups.com > Subject: Re: [firebird-support] Help on this SQL statment > > GROUP BY PRODUCTDESCRIPTION there is PRODUCTCODE missing here > > if you use aggregate functions u have to add all fields to GROUP BY that >

Re: [firebird-support] Help on this SQL statment

2013-06-15 Thread Iwan Cahyadi Sugeng
ust appear in the GROUP BY clause (so the server will know > what value to return). > > On Sat, Jun 15, 2013 at 3:03 PM, Andrew gable >wrote: > > > > I am sorry I Really do not understand :( > > > > -Original Message- > > From: firebird-support@y

Re: [firebird-support] Help on this SQL statment

2013-06-15 Thread W O
o the server will > know > > what value to return). > > > > On Sat, Jun 15, 2013 at 3:03 PM, Andrew gable > >wrote: > > > > > > > I am sorry I Really do not understand :( > > > > > > -

Re: [firebird-support] Help on this SQL statment

2013-06-15 Thread Alexandre Benson Smith
Em 15/6/2013 16:54, Iwan Cahyadi Sugeng escreveu: > Change it into this syntax: > > SQLCommand = vbNullString > > SQLCommand = SQLCommand & "SELECT " > > SQLCommand = SQLCommand & "PRODUCTCODE," > > SQLCommand = SQLCommand & "PRODUCTDESCRIPTION," > > SQLCommand = SQLCommand & "SUM(PRODUCTQTY)," > >