i have a "roads" geodatabase in access. there is a table "nodes" which has fields ID(auto number), Shape(OLE Object) , Position_X(number) Position_Y(number) and node_number(number). Field node_number has duplicated values. i want to make a new table so that my field node_number do not have duplicate values. when i do it does not allow me. here is query.
SELECT distinct node_number, POINT_X, POINT_Y, Shape FROM nodes;
error message is that i can't have shape with unique value. when i remove distinct it does. i.e following query works.
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes;
how to solve this problem.....
regards
@rtist
2 1265 NeoPa 32,557
Recognized Expert Moderator MVP
I'm not sure you can get around it - that's what the err msg is trying to say.
Grouping on all those fields may work - just an idea.
MMcCarthy 14,534
Recognized Expert Moderator MVP
i have a "roads" geodatabase in access. there is a table "nodes" which has fields ID(auto number), Shape(OLE Object) , Position_X(number) Position_Y(number) and node_number(number). Field node_number has duplicated values. i want to make a new table so that my field node_number do not have duplicate values. when i do it does not allow me. here is query.
SELECT distinct node_number, POINT_X, POINT_Y, Shape FROM nodes;
error message is that i can't have shape with unique value. when i remove distinct it does. i.e following query works.
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes;
how to solve this problem.....
regards
@rtist
Because Shape is an OLE Object it is probably causing problems.
As NeoPa says try a GROUP BY first including shape in the group by then excluding it. -
-
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes
-
GROUP BY node_number, POINT_X, POINT_Y, Shape;
-
or -
-
SELECT node_number, POINT_X, POINT_Y, Shape FROM nodes
-
GROUP BY node_number, POINT_X, POINT_Y;
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: sridevi |
last post by:
Hello
How to export data from ms-access database to excel worksheet using ASP.
mainly i need to export data to multiple worksheets. it is very urgent to
us.
i have a sample code which works...
|
by: gary.scott |
last post by:
Aaaaaarrgghh ! (that's better)
I am trying to convert a field within my Oracle 9i Database that is of
type BLOB (but this BLOB may contain a combination of clobs/varchars or
images such as gif...
|
by: TrvlOrm |
last post by:
I am having great difficulty in these asp scripts, using VBscript and
JavaScript.
I have 4 files that all need to be linked together.
The first file "Books.html" - needs to search for a Book...
|
by: Jucius |
last post by:
After a common use of Access with a Delphi Application, I restart the
application an it does not succeed in accessing the database. (after 3
months of use, nothing special was done !)
I try to use...
|
by: ral amo |
last post by:
We've a project for which we are using MS Access as the back end and VB
as front end. there are three terminals fromn whichusers access the
system. The table has 17 rows. When the number of records...
| |
by: Xeijin |
last post by:
URGENT
I have an assignment to hand in tomorrow, I need to know how to perform
numeric calculations in access, I dont know very much about databases
so consider this a beginner's query!
Well...
|
by: Cheryl Langdon |
last post by:
Hello everyone,
This is my first attempt at getting help in this manner. Please
forgive me if this is an inappropriate request.
I suddenly find myself in urgent need of instruction on how to...
|
by: TexCube |
last post by:
Hello everyone,
I have an urgent question. Can data be pulled from an access database table to create a directory that can be printed out and bound together?
I need to have each row of a...
|
by: =?Utf-8?B?TUNN?= |
last post by:
I'm sure the answer to my question varies depending on the situation, but I
am looking for a general "best practice".
If I have an asp.net application and I load certain data from a database,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |