Re: make sql query without crosstab
- From: aljohnssngp@xxxxxxxxxxxx
- Date: 28 Aug 2006 23:53:56 -0700
is it good practice to create temporary tables for querying only?
aljohnssngp@xxxxxxxxxxxx wrote:
Thank you for the valuable replies
I dont have Oracle complete reference,so no information on this is
avilable.
so change in table field structure will make it easy for me.
but it will contain duplicate values.but qurey will be easy
David Cressey wrote:
"Bill Karwin" <bill@xxxxxxxxxx> wrote in message
news:ecvlea0194@xxxxxxxxxxxxxxxxxxxxx
aljohnssngp@xxxxxxxxxxxx wrote:
the groups may be unlimiting numbers
Groups ID 1,2,3,4,5..... and same in catagory
So I guess you need a crosstab for any and all group id's that occur in
the data. This is hard to do in SQL. In general, you need to know each
distinct value so you can make a column for each one. There is no way
to query for a variable number of columns. SQL does not know how to
produce additional columns for you.
Regards,
Bill K.
For a more complete treatment the OP can look in "Oracle: The Complete
Reference" for a section entitled "Turning a table on its side". What its
really discussing is crosstabulation.
.
- Follow-Ups:
- Re: make sql query without crosstab
- From: Bill Karwin
- Re: make sql query without crosstab
- References:
- make sql query without crosstab
- From: aljohnssngp
- Re: make sql query without crosstab
- From: Bill Karwin
- Re: make sql query without crosstab
- From: aljohnssngp
- Re: make sql query without crosstab
- From: Bill Karwin
- Re: make sql query without crosstab
- From: David Cressey
- Re: make sql query without crosstab
- From: aljohnssngp
- make sql query without crosstab
- Prev by Date: Re: make sql query without crosstab
- Next by Date: Query performance
- Previous by thread: Re: make sql query without crosstab
- Next by thread: Re: make sql query without crosstab
- Index(es):
Relevant Pages
|
|