Search in DB with many companies
janmib
Member Posts: 8
I need a way to find eg. a customer name - this customer name
may be in one of 150 companies in the database.
And I need a list if the name exists in more than one comp.
Ideas anyone ?
may be in one of 150 companies in the database.
And I need a list if the name exists in more than one comp.
Ideas anyone ?
0
Comments
-
If the database runs on a SQL engine I would create a view and base a table on that I think.
Other possibility is to create a function with a lot of changecompanies in a loop on the companytable and running isempties on the customer table. Be sure to have an index on the Name field.0 -
Huh....
Define var Customers, var Companies (t:2000000006) Compynies.findfirst ; repeat Customers.changecopmany(Comanies.name) ; if Customers.get.... then.... until Companies.next = 0 ;
0 -
Malajlo wrote:Huh....
Define var Customers, var Companies (t:2000000006) Compynies.findfirst ; repeat Customers.changecopmany(Comanies.name) ; if Customers.get.... then.... until Companies.next = 0 ;
If you want to loop on your variable, you should use FINDSET and NOT FINDFIRST!!!!!Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
