Solved

How to use Nested Query in From Clause with SQLCE?

Posted on 2009-04-14
2
697 Views
Last Modified: 2013-11-17
I have been looking at many web posting stating that "Nested Query in FROM clause" works with SQL Compact Edition 3.5 SP1.  I have tried many selects but continue to get
Major Error 0x80040E14, Minor Error 25501
> select volser from (select * from tif)
There was an error parsing the query. [ Token line number = 2,Token line offset = 1,Token in error = ) ]
This query is as simple as I can make it - display one field from a subquery that selects all rows from a table it exist in.
The status line on SSMS recognizes and states that I have SQL CE 3.5.5692.0 installed.
Any suggestions?
select volser from (select * from tif)

Open in new window

0
Comment
Question by:tonysap
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 total points
ID: 24143409
please try to give the subquery an alias name:
select volser from (select * from tif) sq

Open in new window

0
 

Author Closing Comment

by:tonysap
ID: 31570202
In none of the examples did I see a reference to naming the subquery - tks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question