Gossamer Forum
Quote Reply
Select Statement
Hi All,

I'm trying to turn this...

select DISTINCT(Email) from lsql_Users WHERE ReceiveMail = 'Yes';

into "something" like this - have I done the DISTINCT bit correctly??

my $cond = new GT::SQL::Condition;
$cond->add(ReceiveMail => 'Yes');
$sth = $DB->table('Users')->select($cond, ['DISTINCT(Email)']);

Thanks

Regan.
Subject Author Views Date
Thread Select Statement ryel01 3445 Jul 2, 2004, 5:34 PM
Thread Re: [ryel01] Select Statement
Andy 3374 Jul 3, 2004, 1:34 AM
Thread Re: [Andy] Select Statement
ryel01 3362 Jul 3, 2004, 11:23 PM
Thread Re: [ryel01] Select Statement
Andy 3356 Jul 4, 2004, 5:24 AM
Thread Re: [Andy] Select Statement
ryel01 3349 Jul 4, 2004, 5:29 AM
Thread Re: [ryel01] Select Statement
afinlr 3355 Jul 4, 2004, 7:52 AM
Thread Re: [afinlr] Select Statement
ryel01 3351 Jul 4, 2004, 2:09 PM
Thread Re: [ryel01] Select Statement
Alex 3361 Jul 5, 2004, 11:55 AM
Post Re: [Alex] Select Statement
afinlr 3324 Jul 5, 2004, 3:40 PM