You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
585 B
20 lines
585 B
CREATE TABLE t(indiv INT, grp STRING, val INT)
|
|
INSERT INTO t VALUES(1, 'A', 1)
|
|
INSERT INTO t VALUES(1, 'A', 2)
|
|
INSERT INTO t VALUES(1, 'A', 3)
|
|
INSERT INTO t VALUES(1, 'A', 4)
|
|
INSERT INTO t VALUES(2, 'A', 2)
|
|
INSERT INTO t VALUES(2, 'A', 2)
|
|
INSERT INTO t VALUES(2, 'A', 4)
|
|
INSERT INTO t VALUES(2, 'A', 8)
|
|
INSERT INTO t VALUES(3, 'B', 10)
|
|
INSERT INTO t VALUES(3, 'B', 20)
|
|
INSERT INTO t VALUES(3, 'B', 30)
|
|
INSERT INTO t VALUES(3, 'B', 40)
|
|
INSERT INTO t VALUES(4, 'B', 20)
|
|
INSERT INTO t VALUES(4, 'B', 20)
|
|
INSERT INTO t VALUES(4, 'B', 40)
|
|
INSERT INTO t VALUES(4, 'B', 80)
|
|
|
|
|
|
SELECT * FROM t |