shepshedlad
MIS
Hi
I need to retrieve the first value from 2 columns that contain multiple values e.g
Act Name
200113 ALLIED BAKERIES BRADFORD
200113 ALLIED BAKERIES STOCKPORT
200116 SPEEDIBAKE
200116 SPEEDIBAKE BRADFORD
200116 SPEEDIBAKE WAKEFIELD
200117 SPARKS BAKERY
would give
Act Name
200113 ALLIED BAKERIES BRADFORD
200116 SPEEDIBAKE
200117 SPARKS BAKERY
My SQL (still very much a beginner here) is:
SELECT DISTINCT [custlist].[main act number], [custlist].[Customer Name]
FROM [custlist];
Any help would obviously be greatly appreciated.
kind regards
Rachel
I need to retrieve the first value from 2 columns that contain multiple values e.g
Act Name
200113 ALLIED BAKERIES BRADFORD
200113 ALLIED BAKERIES STOCKPORT
200116 SPEEDIBAKE
200116 SPEEDIBAKE BRADFORD
200116 SPEEDIBAKE WAKEFIELD
200117 SPARKS BAKERY
would give
Act Name
200113 ALLIED BAKERIES BRADFORD
200116 SPEEDIBAKE
200117 SPARKS BAKERY
My SQL (still very much a beginner here) is:
SELECT DISTINCT [custlist].[main act number], [custlist].[Customer Name]
FROM [custlist];
Any help would obviously be greatly appreciated.
kind regards
Rachel