Hi, I wanted to do this:

x = DB[:Certificates]

x.join(
  x.select(
    :MAX[:modified], :serial
  ).group(:serial), {:modified => :modified, :serial => :serial}
)

But the resulting sql turns into:
"SELECT * FROM Certificates INNER JOIN #<Sequel::ODBC::Dataset:
0xb73ec97c> ON (#<Sequel::ODBC::Dataset:0xb73ec97c>.modified =
Certificates.modified) AND (#<Sequel::ODBC::Dataset:0xb73ec97c>.serial
= Certificates.serial)"

Is there another way I can go about doing this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to sequel-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to