SQL: One SELECT for one or several row, same WHERE.: "SELECT fld_id, fld_name, fld_lastname, fld_date, .....
FROM table_1
WHERE fld_date = 200301 AND
fld_id = CASE
WHEN :aux_id > 0
THEN aux_id
ELSE fld_id
END "
Monday, January 31, 2005
Subscribe to:
Post Comments (Atom)
Popular Posts
- Using QCLRDTAQ to clear data queues in CL and RPG
- opensourceCMS.com - Try before you install!
- Creating an as400 Query
- Encrypt Data on as400 (QC3ENCDT, Qc3EncryptData)
- as400 iSeries NetServer Disabled user profiles
- UDATE and *DATE in AS400 RPG
- Cool Make Project Photos
- Announcing the Preview Release of Ubuntu 5.10 (Breezy Badger)
- AS400 API - QCMDEXC - Execute Command
- Display Command Line Window (QUSCMDLN) API
No comments:
Post a Comment