<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Tahoma">Richard Huxton wrote:<br>
> Mezei Zoltán wrote:<br>
> Q1. Why are you storing a numeric in a varchar?<br>
<br>
Because it's not always numeric info. :/<br>
<br>
> Q2. How many unique values does anumber have? And how many rows in<br>
> subscriber?<br>
<br>
About 10k distinct anumbers and 20k rows. Nothing special...<br>
<br>
> Q3. What happens if you create the index on plain (anumber) and
then<br>
> test against '555555555'?<br>
<br>
Nothing, everything is the same - the problem lies on the other table's
index usage, using this index is fine.<br>
<br>
Zizi</font><font face="Tahoma"></font><br>
</small>
</body>
</html>