-- create a table CREATE TABLE students ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, gender TEXT NOT NULL ); -- insert some values INSERT INTO students VALUES (1, 'Ryan', 'M'); INSERT INTO students VALUES (2, 'Joanna', 'F'); insert into students values (3,'Eric','M'); insert into students values (4,'Sophie','F'); -- fetch some values SELECT * FROM students WHERE gender = 'F'; select * from students where gender ='M'; select * from students where gender = 'M' or gender = 'F'; select * from students ;
To embed this project on your website, copy the following code and paste it into your website's HTML: