asked on
ASKER
SELECT t0.rq_id, t0.event_id, t1.event_code, t0.cust_number
FROM mytable t0
LEFT JOIN mytable t1
ON t0.rq_id = t1.rq_id
AND t0.event_id = 'create'
AND t1.event_code = 'pickup'
IBM DB2 is a family of relational database server products developed by IBM that have been extended to support object-relational features and non-relational structures like JSON and XML. There are three main products in the DB2 family: DB2 for Linux, UNIX and Windows (informally known as DB2 LUW), DB2 for z/OS (mainframe), and DB2 for i (formerly OS/400), plus a version for IBM's Virtual Storage Extended (VSE) operating system.
TRUSTED BY
select * from your_table where cust_number = 2001 and event_code = 'pickup'