Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2020-07-14 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?