#
#   like
#
test select name from securities where symbol like '%11'
>_,TIMESTAMP,SYMBOL,TYPE,name
0,2011-04-06 01:47:24.194,ESZ11,S&P 500 E-Mini Dec11
1,2011-04-06 01:47:40.790,NQZ11,Nasdaq 100 E-Mini Dec11
2,2011-04-06 01:50:55.354,ESU11,S&P 500 E-Mini Sep11
3,2011-04-06 01:51:00.442,NQU11,Nasdaq 100 E-Mini Sep11
!end

test select name from securities where symbol like 'ES%'
>_,TIMESTAMP,SYMBOL,TYPE,name
0,2011-04-06 01:47:24.194,ESZ11,S&P 500 E-Mini Dec11
1,2011-04-06 01:50:55.354,ESU11,S&P 500 E-Mini Sep11
!end

test select name from securities where symbol like '__U%'
>_,TIMESTAMP,SYMBOL,TYPE,name
0,2011-04-06 01:50:55.354,ESU11,S&P 500 E-Mini Sep11
1,2011-04-06 01:51:00.442,NQU11,Nasdaq 100 E-Mini Sep11
!end

test select name from securities where symbol not like '%11'
>_,TIMESTAMP,SYMBOL,TYPE,name
0,2011-10-26 18:45:11.952,AAPL,Apple Inc
1,2011-10-26 18:47:18.381,GOOG,Google
!end

set max 10

test select sequence from alltypes where symbol like 'S0'
>_,TIMESTAMP,SYMBOL,TYPE,sequence
0,2011-01-01 00:00:00,S0,0
1,2011-01-01 00:00:01,S0,1
2,2011-01-01 00:00:02,S0,2
3,2011-01-01 00:00:03,S0,3
4,2011-01-01 00:00:04,S0,4
5,2011-01-01 00:00:05,S0,5
6,2011-01-01 00:00:06,S0,6
7,2011-01-01 00:00:07,S0,7
8,2011-01-01 00:00:08,S0,8
9,2011-01-01 00:00:09,S0,9
!end

test select sequence from alltypes where symbol like '_1'
>_,TIMESTAMP,SYMBOL,TYPE,sequence
0,2011-01-01 00:00:00.001,S1,0
1,2011-01-01 00:00:01,S1,1
2,2011-01-01 00:00:02.001,S1,2
3,2011-01-01 00:00:03,S1,3
4,2011-01-01 00:00:04.001,S1,4
5,2011-01-01 00:00:05,S1,5
6,2011-01-01 00:00:06.001,S1,6
7,2011-01-01 00:00:07,S1,7
8,2011-01-01 00:00:08.001,S1,8
9,2011-01-01 00:00:09,S1,9
!end

test select sequence from alltypes where symbol not like '%1'
>_,TIMESTAMP,SYMBOL,TYPE,sequence
0,2011-01-01 00:00:00,S0,0
1,2011-01-01 00:00:01,S0,1
2,2011-01-01 00:00:02,S0,2
3,2011-01-01 00:00:03,S0,3
4,2011-01-01 00:00:04,S0,4
5,2011-01-01 00:00:05,S0,5
6,2011-01-01 00:00:06,S0,6
7,2011-01-01 00:00:07,S0,7
8,2011-01-01 00:00:08,S0,8
9,2011-01-01 00:00:09,S0,9
!end

test select sequence from alltypes where 'test' like 'test'
>_,TIMESTAMP,SYMBOL,TYPE,sequence
0,2011-01-01 00:00:00,S0,0
1,2011-01-01 00:00:00.001,S1,0
2,2011-01-01 00:00:01,S0,1
3,2011-01-01 00:00:01,S1,1
4,2011-01-01 00:00:02,S0,2
5,2011-01-01 00:00:02.001,S1,2
6,2011-01-01 00:00:03,S0,3
7,2011-01-01 00:00:03,S1,3
8,2011-01-01 00:00:04,S0,4
9,2011-01-01 00:00:04.001,S1,4
!end

test select sequence from alltypes where '1' like '2'
!end

set max 20
