I have a table containing Customer information.
Not all of these columns have data in them for example:
________________________________________________________
Company : Address1 : Address2 : Address3 : Address4 :Add5
compa : 1 street : : Suffolk : UK :fgfgf
compb : 3 Road : Top Hill : Norfolk : dfdfdf :
What i need to do ( somehow) is to create a select query that ignores the blank columns and only returns the cols with data in them. Concatenating the cols together does not cure the problem, as if there are 2 blank cols next to each other then you end up with a blank row with a ',' on it.
Is there are way to 'shuffle' the cols up so only those with data in them get returned?
Any help would be appreciated.
Not all of these columns have data in them for example:
________________________________________________________
Company : Address1 : Address2 : Address3 : Address4 :Add5
compa : 1 street : : Suffolk : UK :fgfgf
compb : 3 Road : Top Hill : Norfolk : dfdfdf :
What i need to do ( somehow) is to create a select query that ignores the blank columns and only returns the cols with data in them. Concatenating the cols together does not cure the problem, as if there are 2 blank cols next to each other then you end up with a blank row with a ',' on it.
Is there are way to 'shuffle' the cols up so only those with data in them get returned?
Any help would be appreciated.