Published
Edited
Jun 12, 2022
Insert cell
Insert cell
Insert cell
`(${_.range(-1,10).join('), (')})`;
Insert cell
client1 = {
// create a new client
const c = new DuckDBClient();

await c.query(`CREATE TABLE month_in(month_in INTEGER)`);
await c.query(`INSERT INTO month_in VALUES (${_.range(-1,10).join('), (')})`);
await c.query(`CREATE TABLE employees_0_in(employees_0_in INTEGER)`);
await c.query(`INSERT INTO employees_0_in VALUES (${_.range(1,10,1/*3*/).join('), (')})`);
await c.query(`CREATE TABLE npv_i_in(npv_i_in float)`);
await c.query(`INSERT INTO npv_i_in VALUES (${_.range(-0.1,0.1,0.01/*0.05*/).join('), (')})`);

return c;
}
Insert cell
Insert cell
client1
select * from month_in cross join employees_0_in cross join npv_i_in
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more