create table employees(emp_id int(10) NOT NULL, first_name varchar(20), last_name varchar(20) not nu

an anonymous user · August 06, 2022
-- 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');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';
Output
(Run the program to view its output)

Comments

Please sign up or log in to contribute to the discussion.