The following is an example of using a SELECT query with the WHERE condition:
SELECT * FROM s1 PIVOT (SUM(sales) FOR mon IN (‘Jan’ as Jan, ‘Feb’ as Feb, ‘Mar’ as Mar))tmp where Jan=100;
Result:
*** Query completed. 1 rows found. 4 columns returned. *** Total elapsed time was 1 second. Yr Jan Feb Mar ------ -------- -------- -------- 2001 100 110 120