When you use DISTINCT in a Select statement, you are saying that you only want one row in the result set for each distinct set of values. The result set will not have any two rows that have the same values in every column.
Let's say in table SOP30300, you have the following data:
INV001 Items: ABC, DEF, GHI
INV002 Items: DEF, JKL, MNO
INV003 Items: MNO
Then you run this statement:
SELECT DISTINCT itemnmbr
FROM dbo.SOP30300
The result set should be:
ABC,DEF,GHI,JKL,MNO
This blog was created to help Program leads, solution architects and administrators of different enterprise solutions including ERP, CRM, SCM, WMS, PLM, Business Intelligence and many more.
Subscribe to:
Post Comments (Atom)
e-Commerce discount types
In the world of retail today every retailer is trying to find ways and be creative to attract online customers. To attract your attention an...
-
The first time that you log in to Microsoft Dynamics GP 9.0, you can select to have default information that is specific to your job display...
-
I've filled out the survey and chose the functionalities I think would benefit a lot of industries. Below is a summary of the survey I s...
-
This month Microsoft announced the availability of Dynamics GP 2013 demo which you can download here . Most of the improvements were geare...
3 comments:
using GROUP BY will produce the same result.
ex: SELECT itemnmbr
FROM dbo.SOP30300
group by itemnmbr
Mills
http://gp-dynamics.com
Nice dispatch and this enter helped me alot in my college assignement. Gratefulness you on your information.
Nice brief and this enter helped me alot in my college assignement. Gratefulness you as your information.
Post a Comment