Joined: 16 Oct 2009
Online Status: Offline
Posts: 11
Topic: crosstab Posted: 21 Dec 2010 at 4:35am
Hi before starting i wanna tell you about my structure
i have 3 different tables customer,bill and coupon.
that each bill has a customerid and date.
and each coupon has a date field too.
i wanna take the count of coupons,count of bills and count of bills grouped by customer(this gives the visit count of the customer). i want to make crosstab that groups data in days of last week. and these would be my data. since i cannot group all data with one shared field. I cannot make this crosstab any idea would be helpful. Thank You.
Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Posted: 21 Dec 2010 at 9:24am
I am just curious is there a particular for wanting this to be a crosstab? Regardless, it seems you should be able to use a Command object, create the SQL code needed for your data and then report it as you want. I am guessing the coupon table must be related to the bill or customer table in some fashion. If true that should give you links you need to pull the data for presentation in a group report or crosstab.
Joined: 16 Oct 2009
Online Status: Offline
Posts: 11
Posted: 21 Dec 2010 at 8:17pm
hi John thank you for your reply, No particular reason for crosstab.Question is that since i have to take the counts of data i cannot take all data with one sql command and i want to group the report by date but i don't have a shared date object each table is grouped by date but with different fields.
To summarize i want report like that: visitor count coupon count bill count sun 112 456 46
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum