Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: DBI: select distinct returns same values

by erix (Parson)
on Sep 21, 2019 at 14:02 UTC ( #11106489=note: print w/replies, xml ) Need Help??


in reply to Re: DBI: select distinct returns same values
in thread DBI: select distinct returns same values

select distinct cast(DATE as date) from myschema.mytable GROUP BY DATE

Sorry, but that GROUP BY really doesn't make sense. No point in using the GROUP BY clause here.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2019-11-15 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (80 votes). Check out past polls.

    Notices?