We have a Nortel symposium telecoms system which uses Sybase to store
details of all the calls etc.
Now, Symposium does not allow access to the tables so we have to use
pre-configed views.
There is no problem using this for basic selects.
However, can these views be used inside derived tables?
Why I ask...
This works
SELECT
blah
,blah
,blah
FROM
someview
WHERE
somefieldintheview = this
This does'nt
SELECT
*
FROM
(
SELECT
blah
,blah
,blah
FROM
someview
WHERE
somefieldintheview = this
) a
The above fails with 2 syntax errors, the first pointing at the 2nd
select and the 2nd pointing at the last bracket.
Any ideas?
cheers,
toe
Does the version you are using support derived tables at all?
Derived tables with views works (I use them in 12.5.4) - so my guess
(as Bret says) is that you have a version of ASE that doesn't support
derived tables.
Michael
Can anyone tell me how to find out what version of Sybase I'm running?
I know it's ASE but I access it remotely, are there any commands/queries
I can type to display the exact version?
Cheers,
toe
> Hi,
>
> Can anyone tell me how to find out what version of Sybase I'm running?
> I know it's ASE but I access it remotely, are there any commands/queries
> I can type to display the exact version?
>
> Cheers,
>
> toe
$ isql -Uuser -Ppassword -Etcetera
1> select @@version
2> go
Hi all,
Managed to find the version of Sybase we use (below) does this support
derived table and/or using views inside derived tables?
Cheers,
toe
Adaptive Server Enterprise/12.5.0.3/EBF 11449 ESD#4/P/NT
(IX86)/OS4.0/rel12503/1939/32-bit/OPT/Sat Sep 20 22:28:57 2003
No - you would need 12.5.1 or later.
Michael