suppose the records in a table containing the records below :
inventbatchid itemid a2 a3 a4 PIC3
PO10901 AB0001 A DX 20 c:\photo\abc135.jpg
PO10901 AB0001 A DX 20 c:\photo\abc13512321321.jpg
PO10901 AB0001 A DX 20 c:\photo\ac135.jpg
In this case, which record will be returned by "MAX" function ? Tks
select inventbatchid,itemid,a2,a3,a4,
Tent,
max(case typeid when 'ImgS' then pic else '' end) as 'PIC3',
max(case typeid when 'sketchA' then pic else '' end) as 'PIC2',
max(case typeid when 'sketchB' then pic else '' end) as 'PIC1'
into #tmp3 from #tmp2
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
This award recognizes a member of Experts Exchange who has made outstanding contributions to the community within their first year as an expert. The Rookie of the Year is awarded to a new expert who has the highest number of quality contributions.