Skip to content

Commit

Permalink
Update data types in alasql tables
Browse files Browse the repository at this point in the history
Changed numbers to numeric data type from strings.
  • Loading branch information
leemc-data-ed committed Feb 13, 2024
1 parent e8e8fd2 commit 552f637
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sql_joins/sql_joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ try {
<script>
alasql("DROP TABLE IF EXISTS disease;");
alasql("create table disease (subject_id integer, lung_cancer boolean);");
alasql("INSERT INTO disease VALUES ('3','TRUE');");
alasql("INSERT INTO disease VALUES ('5','FALSE');");
alasql("INSERT INTO disease VALUES ('8','FALSE');");
alasql("INSERT INTO disease VALUES (3,'TRUE');");
alasql("INSERT INTO disease VALUES (5,'FALSE');");
alasql("INSERT INTO disease VALUES (8,'FALSE');");
</script>
@end
@AlaSQL.buildTable_smoking
<script>
alasql("DROP TABLE IF EXISTS smoking;");
alasql("create table smoking (subject_id integer, smoking_pack_years integer);");
alasql("INSERT INTO smoking VALUES ('2','10');");
alasql("INSERT INTO smoking VALUES ('3','10');");
alasql("INSERT INTO smoking VALUES ('4','0');");
alasql("INSERT INTO smoking VALUES (2,10);");
alasql("INSERT INTO smoking VALUES (3,10);");
alasql("INSERT INTO smoking VALUES (4,0);");
</script>
@end
Expand Down

0 comments on commit 552f637

Please sign in to comment.