Latex takes care of the number of tables by itself. Like it will automatically number the table as Table 4 etc. I want to use this number in the text.
For example, if I write "See Table 4" and later on I insert one more table above it then Table 4 becomes Table 5 but my text still says Table 4 which is inconsistent.
\label{name}after the table caption and then you can refer to the table by\ref{name}in the text. LaTeX will take care of updating the number. You will need to compile the document twice to get the referencing right. – mythealias Mar 03 '13 at 19:04