I want to have a table with 2 columns. Key and Value. The value can be of 3 different data types (date, double, string)....
Now in my front end applications which access the table i want to receive the data in the correct data types. i.e. date as date, string as string and so on....
One way i thought about is that i create 3 tables. so depending on what table i am selecting the value from i will do the CAST in the select statement. It however doesnt seems to be a very clean solution. Any other idea i think of doesnt seem to be normalized well. Can anyone share their thoughts on this ?