M
Member 310024
Guest
Does SQL have an equivalent of COBOL's Working-Storage Section?
I am trying to do a number of things in SQL, which are are causing me lots of trouble, that in COBOL would be simple.
For example, I have a CHAR(8) field containg a number ie digits in all positions. I want to find the 9's complement of it, and place the result in another CHAR(8) field.
I am having all sorts of trouble doing this.
Using COBOL, you have a number of basic tools at your disposal, that would allow you to apply logic to determine the answer. SQL seems to draw on a different mind set. SQL seems to have pushed the need for logic, into the background.
Instead, it favours 'memory based' people rather than 'logic minded' people. In otherwords, in SQL, you just 'have to know' (ie remember) the function that will do the thing you are wanting done - and if you don't know the function, then no amount of logic being applied with basic tools, will solve your problem. Any comments?
I am trying to do a number of things in SQL, which are are causing me lots of trouble, that in COBOL would be simple.
For example, I have a CHAR(8) field containg a number ie digits in all positions. I want to find the 9's complement of it, and place the result in another CHAR(8) field.
I am having all sorts of trouble doing this.
Using COBOL, you have a number of basic tools at your disposal, that would allow you to apply logic to determine the answer. SQL seems to draw on a different mind set. SQL seems to have pushed the need for logic, into the background.
Instead, it favours 'memory based' people rather than 'logic minded' people. In otherwords, in SQL, you just 'have to know' (ie remember) the function that will do the thing you are wanting done - and if you don't know the function, then no amount of logic being applied with basic tools, will solve your problem. Any comments?