mysql - JOIN tables by DATE column in MYSQLI' -


Text after "div class =" itemprop = "text">

I have some tables with the time series whose first column corresponds to the date of the data. I tried to merge them together on the basis of that column, but the query takes a lot of time.

Since the series is not very short, I guess it is trying to search through several entries to join this command. What is a way to optimize search? Maybe use a hash function, or MYSQL knows that the data has already been sorted

Thank you, thank you, the code below which is part of the execution is delayed.

  Select a.PERIOD, a.INFLATION, b.GROSS_PRODUCT, c.EMPLOYMENT, d.EXCHANGE_RATE to add FLOOR_DATE to one of inflation Product B (a.PERIOD, 'Quarterly') B =. Include the period of employment on FLOOR_DATE (a.PERIOD, 'month') = join c.PERIOD PESO_DOLLAR d on FLOOR_DATE (d.PERIOD, 'month') = d.PERIOD  

I have made the FLOOR_DATE () order to match the corresponding date, rounding down to the nearest quarter or month.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -