$randNo = mt_rand(0,$ProductsCount);
$sql0 = "SELECT sku FROM catalog_product_flat_1 LIMIT ". $randNo . ",10";
$data2=$connection->query($sql2);
$result2=$data2->fetch();
I'm trying to get from my database random SKU from (200k products) which is 13 characters (30-40% of products) in length, So I thought about selecting 10 products and get the one with 13 chars how can I select the 13 chars from this selection? Or any other better way to approach this? I need the best possible speed.