Nov 16, 2007 #1 vgeng Technical User Feb 5, 2003 15 BE I have the following table A B C and I would like to create one query to get A B A C anyone an idea ? thanks regards
I have the following table A B C and I would like to create one query to get A B A C anyone an idea ? thanks regards
Nov 16, 2007 #2 dinger2121 Programmer Sep 11, 2007 439 US could you be a little more specific. If they are like datatypes, you could look at using a union query. Upvote 0 Downvote
could you be a little more specific. If they are like datatypes, you could look at using a union query.
Nov 16, 2007 #3 JoeAtWork Programmer Jul 31, 2005 2,285 CA I have a feeling you've left crucial information out, but the following should do exactly what you are asking for Code: SELECT A, B As Whatever FROM TheTable UNION SELECT A, C As Whatever FROM TheTable I suspect your root problem is an unormalized table structure, as what you are asking for implies that the field names contain data. Upvote 0 Downvote
I have a feeling you've left crucial information out, but the following should do exactly what you are asking for Code: SELECT A, B As Whatever FROM TheTable UNION SELECT A, C As Whatever FROM TheTable I suspect your root problem is an unormalized table structure, as what you are asking for implies that the field names contain data.