Is it ok to store data of different data types as a single universal data type, say 'image' in SQL? I will also store the data type value in another column and use this value inside my code to convert the data back into its proper type. The advantage I get by doing this - I can avoid joining n number of tables. Can some one point me to the down sides of storing data in this way?
This is a pretty bad idea for several reasons: