Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: query linking

by monarch (Priest)
on Feb 11, 2009 at 03:51 UTC ( #742960=note: print w/ replies, xml ) Need Help??

in reply to Re: query linking
in thread query linking

Oh, by the way, this seems fairly typical of code that I've witnessed in the investment banking industry. Biggest bunch of cowboys that ever lived.. God only knows how any of their financial transactions and calculations ever actually produced viable answers - clearly logical thought (such as programming) is way beyond the average investment banker coder..

Comment on Re^2: query linking
Replies are listed 'Best First'.
Re^3: query linking
by CountZero (Bishop) on Feb 11, 2009 at 07:00 UTC
    I think you have found the secret of the present financial crisis. It was brought upon us by crappy SQL-code! LOL


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^3: query linking
by ritzi86 on Feb 11, 2009 at 03:56 UTC
    monarch i seem to get this feeling that you can help me with this if u can i would definitely appreciate the help.. thanks a lot in advance..
      I cannot help you; if you don't understand the purpose of your program (i.e. the database query) then you have big problems.

      However, some pointers:

      • use the concat operator, i.e. instead of $sqlcode = "$sqlcode AND ( blah )"; say $sqlcode .= "AND ( blah )";
      • reformat your SQL query as I have done to try and make the SQL easier to understand
      • print out your query after constructing it (e.g. print( $sqlcode );)
      • pay close attention to your errors - does Perl generate warnings? Does your database generate warnings?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-11-29 20:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls