SELECT min(<desired data>) FROM table1 JOIN table2 ON (table1.data_field = table2.data_field);
2007/9/27, Stefan Schwarzer <stefan.schwarzer@xxxxxxxxxxxx
>:
Hi there,my aim is to plot a line graph for a single country but for two orthree variables. Now, one could use two different y-axis (if thereare two data sets with different units); but it's not really theright way to analyse data.One should rather normalize them to a base year to enhancecomparisons. To achieve this, one would set the values for a specificyear to 1 (or 100) and put the other values of all variables inrelation to it.Thus, taking two variables, say,
Fish Catch- in Thousand Metric Tons- data available for 1975 to 2005andTotal Population- in Million People- data available for 1960 to 2005Country is Kenya.The "smallest common year" would be 1975. One needs thus to set thevalues for that year to 1 (or 100), and calculate the other values ofthe variables in respect to the needed factor.Now the question is how to find that "smallest common year"automatically, via SQL or PHP?Can anyone give me a hint? Thanks for any help!Stef____________________________________________________________________
Stefan SchwarzerLean Back and Relax - Enjoy some Nature Photography :Appetite for Global Dat a? UNEP GEP Data Portal:____________________________________________________________________
--
William Leite Araújo
Estudante de paternidade - 24a semana