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

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
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 problem......so 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?
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

    CountZero

    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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-12-27 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls