hello,
do you have some sort of tutorial on how to build the MAPI library on
Windows (for use in an external program that connects to monet) ?
thanks,
erin.
Hi,
I have a database with 52 columns and 7 million rows.
The columns are Date (timestamp data type), Customer (real data type) and a bunch of other columns that indicate values for each customer on each date (all of these columns are of real data type).
The 'Date' column contains 5 unique values.
The 'Customer' column contains 1.7 million unique values.
1. The following query returns instantly: SELECT "CUSTOMER" FROM "TABLE".
2. The following query takes a long time (stopped after a few minutes): SELECT "CUSTOMER" FROM "TABLE" GROUP BY "CUSTOMER".
3. The following query returns instantly: SELECT "DATE", "CUSTOMER" FROM "TABLE" GROUP BY "DATE", "CUSTOMER".
4. The following query takes a long time (stopped after a few minutes): SELECT "CUSTOMER", "DATE" from "TABLE" GROUP BY "CUSTOMER", "DATE".
* Note that the only difference between query 1 and query 2 are the addition of a group by clause to query 2.
* Note that the only difference between query 3 and query 4 are the order of columns in the select and group by clauses.
Is there a way to work around this? I'm really stuck.
Thanks in advance,
Elad
_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_ya…
Hi there,
Is there a ways to extract days of week (1-7) from a timestamp
columns? 10-08-2008 will result: Sunday or 1; 11-08-2008 will result:
Monday or 2
thanks,
Aviad
Hi,
First i have to say that MonetDb is amazing database.
Now, I'm using MonetDb Odbc. i m trying to execute command that
contains create function statement and i get general error.
My function is :
create function create_date(y int, m int, d int) returns date external
name mtime.date .
any ideas?
Tnx and keep the amazing job.
Aviad.
Hi,
If a user places an index on a varchar column will the actual character
storage move to an intermediate (or final) column with only unique
instances of each string. Or will the storage in the original table
definition still contain all materialized string, instead of pointers to
the index?
Stefan
Hi,
SQL92:
6) "X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z".
If between is equivalent to the above, why would call it between? I
wonder why the order should be Y < Z for it to work. Wouldn't it be much
more functional if it took two arbitrary numbers where order doesn't count?
Stefan
Hello,
I have run in some unexpected troubles related to the serial datatype.
Is it possible to force the next value to be higher than the highest
value already present in the sequence?
The behavior I now see is counter intuitive and starts to fill the empty
values before this value first.
Stefan
Due to a bug in Monet5, I am forced to run a more recent version,
compiling the sql cvs module has the following result:
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-I../../../../src/backends/monet5 -I../../..
-I../../../../src/backends/monet5 -I../../include
-I../../../../src/backends/monet5/../../include -I../../common
-I../../../../src/backends/monet5/../../common -I../../storage
-I../../../../src/backends/monet5/../../storage -I../../server
-I../../../../src/backends/monet5/../../server
-I/opt/cherokee/include/MonetDB5/atoms
-I/opt/cherokee/include/MonetDB5/compiler
-I/opt/cherokee/include/MonetDB5/kernel
-I/opt/cherokee/include/MonetDB5/mal
-I/opt/cherokee/include/MonetDB5/optimizer
-I/opt/cherokee/include/MonetDB5/scheduler
-I/opt/cherokee/include/MonetDB5 -I/opt/cherokee/include/MonetDB
-I/opt/cherokee/include/MonetDB/mapilib -I/opt/cherokee/include/MonetDB
-I/opt/cherokee/include/MonetDB/common
-I/opt/cherokee/include/MonetDB/gdk -DLIBSQL -Wall -Wextra -std=c99 -g
-Werror-implicit-function-declaration -Werror -Wpointer-arith
-Wdeclaration-after-statement -Wundef -Wp,-D_FORTIFY_SOURCE=2 -c
sql_bpm.c -fPIC -DPIC -o .libs/lib_sql_la-sql_bpm.o
cc1: warnings being treated as errors
../../../../src/backends/monet5/sql_bpm.mx: In functie ‘send_part’:
../../../../src/backends/monet5/sql_bpm.mx:272: fout: impliciete
declaratie van functie ‘RMTfindconn’
../../../../src/backends/monet5/sql_bpm.mx:272: fout: assignment makes
pointer from integer without a cast
../../../../src/backends/monet5/sql_bpm.mx:276: fout: impliciete
declaratie van functie ‘RMTinternalput’
../../../../src/backends/monet5/sql_bpm.mx:276: fout: assignment makes
pointer from integer without a cast
../../../../src/backends/monet5/sql_bpm.mx: In functie ‘get_part’:
../../../../src/backends/monet5/sql_bpm.mx:339: fout: assignment makes
pointer from integer without a cast
../../../../src/backends/monet5/sql_bpm.mx:343: fout: impliciete
declaratie van functie ‘RMTinternalget’
../../../../src/backends/monet5/sql_bpm.mx:343: fout: assignment makes
pointer from integer without a cast
make[7]: *** [lib_sql_la-sql_bpm.lo] Fout 1
make[7]: Map '/mnt/dv/skinkie/monetdb/sql/Linux/src/backends/monet5'
wordt verlaten
make[6]: *** [all] Fout 2