How to distinct data by command

neramit
Member Posts: 46
after do setrange command i have many duplicate record
What command do distinct data
anyone know please tell me
](*,)
What command do distinct data
anyone know please tell me
](*,)
0
Comments
-
What do you mean with duplicate records?
What is it you are trieing to do?
:? :roll:0 -
duplicate mean
Command in SQL
Select Distinct CustomerID from Orders'
In navision have function or command to do Yes/No
i want to select once data if duplicate
Exsample data
item1
item1
item1
item2
result
item1
item2
O:)0 -
I thought/was affraid of you meant this
No, this is no default function in navision.
You can do other things/tricks of course... 8)0 -
Thank You0
-
This is one of the very few things in Navision that I consider an actual shortcoming.0
-
The easiest way to solve it is making a temporary table with the duplicate fields as primairy key fields
Like the posting buffer in cu. 80 & 90.0 -
Right, you could fill up a temporary Customer variable by looping through the sales line table, and there are probably 10000 other ways to do this, like marking the records or using some code to skip records. It would be so much easier though if we had the DISTINCT keyword, that should be available in every DBMS. Especially when you consider that the Navision backend can be SQL Server, but we can't use its potential to the fullest.0
-
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions