In order to shorten the content of a database table, I divide it into 12 tables by month. Therefore, every table has the same structure. I name those tables with different names, like t_04_2004, t_05_2004 ...
Now I want to select a distinct value of a column from those 12 tables, is it possible to do it by sql statement? otherwise, i have to select the distinct value of a column from each table, push them into an array and popup the min one which sounds not wise..
tia
Now I want to select a distinct value of a column from those 12 tables, is it possible to do it by sql statement? otherwise, i have to select the distinct value of a column from each table, push them into an array and popup the min one which sounds not wise..
tia