Just to pop my 2p's worth in, I agree with both arguments here. Its not the DBMS developers who were being lazy, you should know what data you are dealing explicitly inside out, therefore being strict about specifying variable names shouldn't be a problem, Toad for instance has an object inspector where you can drag from a contents directly into code, so saving the typing (and the fact that SAS doesn't have this is a real annoyance). The select * syntax for instance, whilst we are all guilty of using it, is the lazy approach, first you are selecting everything even though you may not necessarily need it, and within say macro's could lead to some interesting outcomes. I also agree that SQL lacking the lists is rather a nuisance however this is down to the concept behind the languages. SQL works on normalized tables, and hence there's really no need to consider long lists of variables as these would be rows. For my side, I program backwards from a spec, so the spec would be the main item to build, then from that you would order your select, fix lengths etc. then decide where that data came from etc. An example: In study A I have four columns: Parameter result1-result3 (these being lower, upper, mean) I write a bit of code ... select * from ... and process then output result3 to mean. In study B I have the same thing, but they have cunningly moved mean between lower and upper: I copy my code over and get and incorrect result. The same thing, but explicitly stating variables would work in both instances: Paramter lower mean upper: ... select parameter,mean from ... (ok, not the best example).
... View more