Question: I have tables with the same name in 2 different schemas. What I want to do is get a count comparison in the 2 tables in the format

TableName : Count1 : Count2

How can I achieve this via Hive query?

Answer: 
As you can see in the [SELECT command documentation](https://redis.io/commands/select):

> 
> Select the Redis logical database having the specified zero-based
>  numeric index. New connections always use the database 0.
> 
> 
> 

which means that you're supposed to pass an integer (in your case that would be 1), so it should look like this: `keys, err := conn.Do("SELECT","1")`

In general Redis databases are assigned numbers starting from 0, and you have to configure in the [redis.conf](http://download.redis.io/redis-stable/redis.conf) how many of them you want to have (by default you have 16 at indexes from 0 to 15):

```
# Set the number of databases. The default database is DB 0, you can select
# a different one on a per-connection basis using SELECT <dbid> where
# dbid is a number between 0 and 'databases'-1
databases 16

```
Redis support 16 database. You can switch a DB using an integer starting from 0 to 15