I have to enter a value of the last row of a table to another table.Therefore within the insert query i've used to select query to get the value i want. The query executes without any error. But it gives the 1st row of the table instead of the last row.
Here is my query
SELECT top 1 ref_no FROM MASTER_CAL