Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Dynamic select Scripts / Pivot
Name: Deon Date: November 24, 2008 at 02:16:05 Pacific OS: AIX5.3 CPU/Ram: 4/4 Product: P550
Comment:
Hi This is my script.
SELECT T$ITEM, SUM(CASE WHEN T$YEAR=2005 THEN T$AUPP$1 ELSE 0 END) AS "2005 JAN", SUM(CASE WHEN T$YEAR=2005 THEN T$AUPP$2 ELSE 0 END) AS "2005 FEB", SUM(CASE WHEN T$YEAR=2005 THEN T$AUPP$3 ELSE 0 END) AS "2005 MARCH", SUM(CASE WHEN T$YEAR=2006 THEN T$AUPP$1 ELSE 0 END) AS "2006 JAN", SUM(CASE WHEN T$YEAR=2006 THEN T$AUPP$2 ELSE 0 END) AS "2006 FEB", SUM(CASE WHEN T$YEAR=2006 THEN T$AUPP$3 ELSE 0 END) AS "2006 MARCH" FROM baandb.ttdinv750700 GROUP BY T$ITEM
This select only few years and month. My problem is My Dates ranges from 2004 to today. And new months and years gets added. I need my script to be dynamic. Please Help. T$AUPP$1 to T$AUPP$12 is my months.
A problem well stated is a problem half solved. -Charles F. Kettering
Summary: Hi all. If got a Database that with tables. SKU and Orderdetail. Fields of Table SKU >> SKU, Placement, SUSR1 SUSR2. Fields of Table Orderdetail >> SKU, Placement, Desc, Value In Table SKU and Orderde...
Summary: This might also help: Before you begin, make sure the table is not in use. Then use the isql utility to perform these manual steps, entering go after each command: 1. Turn on support for maki...
Summary: Im trying to implement a function in Access 2003 to allow the application to find a given field from a give another field in the same record. e.g. I have a table of Assets called tblAssets, im trying ...