select top 2 * from tablename
where ref=你的ref
说实话,没看懂LZ的意思