Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Denisdh
Starting Member
1 Post |
Posted - 2008-08-12 : 06:31:26
|
Hi, I'm a bit of an SQL novice and I'm having trouble importing my Access table into my .Net Web Project. The issue is that the query I'm using is using TRANSFORM which isn't supported by SQL. Below is the query code:TRANSFORM Count(tblReportData.ID) AS CountOfIDSELECT tblReportData.Agent, Count(tblReportData.ID) AS [Total Of ID]FROM tblReportDataGROUP BY tblReportData.AgentPIVOT tblReportData.County;Does anyone know how I can bind the query to an AccessDataSource in ASP.Net? I found [url]http://www.sqlteam.com/article/dynamic-cross-tabs-pivot-tables[/url] but I'm lost after reading through the article.More DetailsThe orginal table has two columns; Property_Agent, Property_LocationJames Joyce, DublinHarrot Ford, DublinHarrot Ford, DublinJames Joyce, DublinJames Joyce, DublinJames Joyce, OffalyHarrot Ford, OffalyHarrot Ford, OffalyJames Joyce, OffalyJames Joyce, OffalyJames Joyce, OffalyI want to display a CrossTab like;Property_Agent, Dublin, OffalyJames Joyce, 3, 4Harrot Ford, 2, 2ThanksDenisCheersDenis |
|
jsmith8858
Dr. Cross Join
7423 Posts |
|
|
|
|
|
|