|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Saturday, February 10, 2007 12:11 PM
Points: 91,
Visits: 1
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, October 05, 2004 5:41 AM
Points: 1,
Visits: 1
|
|
That's wonderful, but what is the solution?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, June 08, 2006 2:26 AM
Points: 170,
Visits: 1
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, June 29, 2005 6:07 PM
Points: 1,
Visits: 1
|
|
Is this article for real? You must be very new to ADO programming to just be hitting this.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Saturday, February 10, 2007 12:11 PM
Points: 91,
Visits: 1
|
|
quote: Is this article for real? You must be very new to ADO programming to just be hitting this.
That would be an incorrect assumption but thanks for the feedback anyway. The thing is, I probably never would have run across this if it wasn't for the cut and paste programming I happend to be doing at the time. Typically I would have written the sql statement by hand in which case I would have aliased the fields accordingly. Yes GRN - you are correct quote: use a alias i suppose !!
Although there are several solutions to this problem the best is to alias the rating as "Article Rating" and "Book Rating", thus no ambiguity. The purpose of this Tip was not to uncover some deep dark secret of ADO but rather to give other programmers something to think about when creating sql statements that return record sets in ADO.
|
|
|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Monday, October 10, 2011 2:00 PM
Points: 297,
Visits: 329
|
|
Once the Join is done, there are no P. and A. qualifiers anymore. You simply have to alias the fieldnames to something meaningful. I suppose it's considered a 'feature' since many times the identically named fields would have identical data (but then why return both?).
Student of SQL and Golf, Master of Neither
|
|
|
|