Please Help me to find the SQL Query I want to restrict user to enter duplicate value between From and To.
I have written the Query but it's not working, Here is my Query
SELECT intpkPciid
FROM Table1
WHERE @intFrom(userinputdata) BETWEEN intFrom AND intTO