Re: How to Convert Access Transform/Pivot Query for SQL Server
From: Charles Law (blank_at_nowhere.com)
Date: 05/23/04
- Next message: David Portas: "Re: Finding Missing Dates in ..."
- Previous message: SQL SQL: "Example of a Hierarchic query in SQL???"
- In reply to: Uri Dimant: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- 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"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 May 2004 11:15:23 +0100
Hi Uri
Thanks for your reply.
The use of CASE implies to me that I would need to code for each case, when
in fact there are a variable number of cases. The cases are data dependent,
so I could not code for each case.
I am puzzled why I am unable to find any examples of the use of ROLLUP.
Also, it seems odd that a feature in Access does not have a direct
equivalent in SQL Server.
With regard to reports on the client, the manipulation of the data is
speed-sensitive, which is why I am looking to do it at the client. I am
actually trying to populate a grid, and if I retrieve the data and
re-organise it in code it is just too slow.
Any other thoughts?
Charles
"Uri Dimant" <urid@iscar.co.il> wrote in message
news:eUZV7yKQEHA.2704@TK2MSFTNGP10.phx.gbl...
> Charles
> You have to do nothing. There is no tool,script,function to re-write it
for
> you. Look at CASE expression to deal with such kind of queries.
> Also,permit me to suggest you perfoming such reports( if you need to make
a
> report) on the client side.
>
> "Charles Law" <blank@nowhere.com> wrote in message
> news:eT8ZHKFQEHA.3660@tk2msftngp13.phx.gbl...
> > Hi Jack
> >
> > The second reference is closer to the mark because I am looking at a
> > variable number of columns.
> >
> > I'm keen to find out what this ROLLUP thing is all about because MS
> suggest
> > that it is the SQL Server version of TRANSFORM ... PIVOT. But there the
> > trail goes cold. I can't find anything that gives examples of an Access
> > query being re-written for SQL Server using these two constructs.
> >
> > Charles
> >
> >
> > "Jack D. Ripper" <steve.nospam.@rac4sql.net> wrote in message
> > news:%2357TqCDQEHA.2216@TK2MSFTNGP12.phx.gbl...
> > > Ok here's a start:
> > >
> > > http://support.microsoft.com/default.aspx?scid=kb;EN-US;q175574
> > > http://groups.google.com/groups?q=sqlserver+crosstab
> > >
> > > Good luck:)
> > >
> > >
> >
> >
>
>
- Next message: David Portas: "Re: Finding Missing Dates in ..."
- Previous message: SQL SQL: "Example of a Hierarchic query in SQL???"
- In reply to: Uri Dimant: "Re: How to Convert Access Transform/Pivot Query for SQL Server"
- 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"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|