In the example, I made an error in mapping the numbers to indices. It should
be {1,1,1,0,0,0,0,0,1,1}
Thank you David for the solution and pointing out the error.
Mehmet
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Table-lookup-in-Postgresql-tp5749327p5749455.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.