Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Catalyst - SQL query

by one4k4 (Hermit)
on May 10, 2007 at 12:10 UTC ( [id://614608]=note: print w/replies, xml ) Need Help??


in reply to Catalyst - SQL query

As fmerges mentioned above, subselects may not work yet. What about something similar to a multi-step query then?
select max(RecordTime) from tbl_loan where UserId = 2 Group By LoanId
...get that $var.
select * from tbl_loan where RecordTime = ? ... $db->execute($var);
Just a few cents, may or may not help. Just offering the idea that maybe you have to workaround it and take it as two steps.

Replies are listed 'Best First'.
Re^2: Catalyst - SQL query
by megaurav2002 (Monk) on May 11, 2007 at 00:45 UTC
    Thanks ! Your answer makes sense to me. It can work for me with little modification. Can you please tell me which module does $db->execute($var) belongs to? Regards
      Oh, I apologize. $db->execute was a reference to your database handle created via the DBI module. But what I was really trying to mention was the idea of using two separate queries. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found