You can use AS: Select a.field1 AS fieldonefromtablea, b.field1 AS fieldonefromtableb etc....
HTH Niels -----Oorspronkelijk bericht----- Van: Chris Hagwood [mailto:[EMAIL PROTECTED] Verzonden: donderdag 30 september 2004 15:30 Aan: [EMAIL PROTECTED] Onderwerp: [ASP] table aliases How do I reference a field name with it's table? I need the same table twice in a query, and normally I would do: Select a.field1, b.field1 from table1 as a, table2 as b where a.key=b.key Then, in the ASP, I want to write objRS("a.field1") but I can't. It says ordinal cannot be found. Is there a different way that I am supposed to be doing this? [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
