I have a Products table with:
ProCodigo - Primary Key de Produto
ProNome
And another Price History table with:
HisCodigo - Primary Key de Histórico
HisData
HisPreco
ProCodigo - Foreign Key de Produto
I need to mount a SELECT that brings the products with the current price, that is the most recent price in the History table, but so far I have not been able to do it.
Can anyone help me?