SELECT Questions and Answers

Recent IT Questions

1 - 2 of 2
<<PREVIOUS 1 NEXT>>

SQL select loop list?

Say I want to derive the following: Select ID, F1 from table Union Select ID, F2 from table Union Select ID, F3 from table Union … etc until F10. Is there smart and easy way so that I can just provide a list: F1,F2,F3,…,F10 and somehow be able to have the select statement loop through it? Also,...

Answer Question   |  Sep 4 2009  3:25 AM GMT
SELECT, SQL Select, T-SQL
asked by Vinical

  5 pts.

Forced Date Routine Processing

I’m trying to process a RUNDATE = 2009-08-07 into my COBOL code via a PARM-DATE Link. That date comes in… now I try to place it in the following piece of code: EXEC SQL SET :WS-PREV-WK = CHAR(DATE(TMP-DATE)- 7 DAYS) END-EXEC. What am I getting '0001-01-01' returned?

View Answer   |  Aug 7 2009  8:08 PM GMT
EXEC, SELECT, COBOL
asked by A30TPX

  5 pts.

1 - 2 of 2
<<PREVIOUS 1 NEXT>>