Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this subquery possible in Oracle?
Message
 
 
To
18/03/2001 17:54:07
Les Chandra
Mastersoft Pty Ltd
Melbourne, Australia
General information
Forum:
Oracle
Category:
PL/SQL
Miscellaneous
Thread ID:
00485398
Message ID:
00486347
Views:
12
I would think it does the same thing as your example below. Learn something new every day. You are in effect selecting a constant value for that particular column. Thanks.

>I'm curious: what does the specified syntax do in SQL Server?
>
>I know in Oracle you can do something like
>
>SELECT column1, (SELECT x FROM y WHERE q) AS column2 FROM table1;
>
>This works provided that the inner select ("inline view") returns one row only.
>
>Is this the same thing?
>
>Les
>
>
>>>Disclaimer: I don't have an Oracle testing environment or I would have tested this myself ;)
>>>
>>>In SQL Server a subquery such as
Select Column1 = <span style="background:yellow">(Select X From Y Where yadayada)</span>, Column2
>>>From Table1
>>>
>>>is possible. Will it work in Oracle?
>>>
>>>
>>>TIA
>>
>>No
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform