| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Create view
Bernard Peek <bap_at_shrdlu.com> wrote in message news:<2xjcnNPsSjm9EwIY_at_diamond9.demon.co.uk>...
> There is insufficient information to give a complete answer. If your
> view has a 100 character column and the source table has a 150 character
> column then someone needs to decide on the algorithm for discarding
> data. Should you use the leftmost or rightmost characters in the source
> data? Should the algorithm return <null> if the source data is more than
> 100 characters?
It is just an Open University homework question. What we have learn are:
I guess this question try to test us, once again, what we have NOT learn. To define a view that have column of different type and size than the base table with just one SQL statement.
The first response to my original question works. What we have not learn is the use of CAST in the way presented by Tibor Karaszi.
Thanks and regards,
K.Y. Fung
Received on Wed Oct 02 2002 - 21:38:42 CDT
![]() |
![]() |