How to Convert Access Transform/Pivot Query for SQL Server
From: Charles Law (blank_at_nowhere.com)
Date: 05/20/04
- Next message: BJ Freeman: "Access 2K ADP Docmd Passing parm with acStoredProcedure"
- Previous message: J. Clay: "Re: Query not Updateable"
- Next in thread: Jack D. Ripper: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- Reply: Jack D. Ripper: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- Reply: David Chavez: "How to Convert Access Transform/Pivot Query for SQL Server"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 May 2021 13:10:45 +0100
I have two queries that I use in Access:
<qrySelect>
SELECT table2.column1, table2.column2, table2.column3, table1.column4 FROM
table1, table2 WHERE table1.column1 = table2.column1
</qrySelect>
<qryResult>
TRANSFORM First(qrySelect.column3) AS FirstOfCode
SELECT qrySelect.column1, qrySelect.column4, First(qrySelect.column3) AS
[Total Of Code] FROM qrySelect GROUP BY qrySelect.column1, qrySelect.column4
PIVOT qrySelect.column2
</qryResult>
I now wish to use them against a SQL Server database but I am unfamiliar
with the equivalent construct of Transform/Pivot in SQL Server. I read in
the MS documentation that I should use ROLLUP on the GROUP BY clause, but
try as I might I cannot make it work.
Can any one suggest how this might be done?
If there is a better newsgroup to post this question in I would be grateful
if someone could point me in the right direction.
TIA
Charles Law
- Next message: BJ Freeman: "Access 2K ADP Docmd Passing parm with acStoredProcedure"
- Previous message: J. Clay: "Re: Query not Updateable"
- Next in thread: Jack D. Ripper: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- Reply: Jack D. Ripper: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- Reply: David Chavez: "How to Convert Access Transform/Pivot Query for SQL Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- How to Convert Access Transform/Pivot Query for SQL Server
... TRANSFORM FirstAS FirstOfCode ... FROM qrySelect GROUP BY qrySelect.column1,
... I now wish to use them against a SQL Server database but I am unfamiliar ...
(microsoft.public.access.queries) - How to Convert Access Transform/Pivot Query for SQL Server
... but I have had no luck in some of the other ... Access and SQL Server groups,
so I thought I would try here. ... TRANSFORM FirstAS FirstOfCode ... FROM qrySelect
GROUP BY qrySelect.column1, ... (microsoft.public.sqlserver.programming) - How to Convert Access Transform/Pivot Query for SQL Server
... I have posted this on a couple of Access and SQL Server newsgroups, ... TRANSFORM
FirstAS FirstOfCode ... FROM qrySelect GROUP BY qrySelect.column1, ... I now wish
to use them against a SQL Server database but I am unfamiliar ... (microsoft.public.dotnet.general) - Re: temp table troubles
... It's an ETL (Extract Transform Load) tool that ... transformations and load
the results into a SQL Server table. ... And what transform Code? ... >
string rapidly exceeds its 8000 varchar limit. ... (microsoft.public.sqlserver.programming) - Re: variable in transaction
... The problem will arise if you change the metadata for the transform. ... Global
Variables and SQL statements in DTS ... If you expose it as the same column Name
each time then you will not need to ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy. ... (microsoft.public.sqlserver.dts)