Question

Assume the following employees.sql file: create table employees (    id INTEGER NOT NULL PRIMARY KEY...

Assume the following employees.sql file:

create table employees (
   id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT NOT NULL,
   first_name VARCHAR(50),
   last_name VARCHAR(50),
   email VARCHAR(50),
   age INT,
   gender VARCHAR(50),
   company VARCHAR(50)
);
insert into employees (id, first_name, last_name, email, age, gender, company) values (1, 'Nicolas', 'Skeates', 'nskeates0@zdnet.com', 50, 'Male', 'Kwinu');
insert into employees (id, first_name, last_name, email, age, gender, company) values (2, 'Valentijn', 'Digwood', 'vdigwood1@washingtonpost.com', 40, 'Male', 'Yabox');
insert into employees (id, first_name, last_name, email, age, gender, company) values (3, 'Vita', 'Arlow', 'varlow2@jugem.jp', 39, 'Female', 'Photospace');
insert into employees (id, first_name, last_name, email, age, gender, company) values (4, 'Wilie', 'Lanning', 'wlanning3@wp.com', 31, 'Female', 'Flashset');
insert into employees (id, first_name, last_name, email, age, gender, company) values (5, 'Lemuel', 'Hannah', 'lhannah4@state.gov', 26, 'Male', 'Oyoloo');
insert into employees (id, first_name, last_name, email, age, gender, company) values (6, 'Prescott', 'Elstub', 'pelstub5@abc.net.au', 43, 'Male', 'Feedmix');
insert into employees (id, first_name, last_name, email, age, gender, company) values (7, 'Andie', 'Balston', 'abalston6@soup.io', 43, 'Male', 'Zoombeat');
insert into employees (id, first_name, last_name, email, age, gender, company) values (8, 'Bayard', 'Marryatt', 'bmarryatt7@umn.edu', 42, 'Male', 'Teklist');

insert into employees (id, first_name, last_name, email, age, gender, company) values (333, 'Archibaldo', 'Vanyatin', 'avanyatin98@seattletimes.com', 58, 'Male', 'Gigazoom');
insert into employees (id, first_name, last_name, email, age, gender, company) values (334, 'Albie', 'Callis', 'acallis99@theglobeandmail.com', 26, 'Male', 'Gigazoom');

insert into employees (id, first_name, last_name, email, age, gender, company) values (317, 'Lona', 'Rivett', 'lrivett8s@pagesperso-orange.fr', 29, 'Female', 'Babblestorm');

insert into employees (id, first_name, last_name, email, age, gender, company) values (9, 'Neron', 'Barnaby', 'nbarnaby8@nationalgeographic.com', 25, 'Male', 'Voolia');
insert into employees (id, first_name, last_name, email, age, gender, company) values (10, 'Marti', 'Quinion', 'mquinion9@barnesandnoble.com', 37, 'Female', 'Gigazoom');
insert into employees (id, first_name, last_name, email, age, gender, company) values (11, 'Jackelyn', 'Scrinage', 'jscrinagea@yolasite.com', 53, 'Female', 'Thoughtbridge');
insert into employees (id, first_name, last_name, email, age, gender, company) values (12, 'Kev', 'Sterke', 'ksterkeb@washingtonpost.com', 41, 'Male', 'Gigazoom');
insert into employees (id, first_name, last_name, email, age, gender, company) values (13, 'Lamar', 'Matzeitis', 'lmatzeitisc@xrea.com', 35, 'Male', 'Dynazzy');

insert into employees (id, first_name, last_name, email, age, gender, company) values (345, 'Kaspar', 'Walby', 'kwalby9k@shinystat.com', 34, 'Male', 'Gigazoom');
insert into employees (id, first_name, last_name, email, age, gender, company) values (14, 'Winfred', 'Reside', 'wresided@webs.com', 40, 'Male', 'Wikibox');

Do the following:

1. Download the employees.sql file (data given above)
2. Use Sqlite Browser to create an SQlite3 database.
3. Write a Node.JS application that displays every Employee in JSON format.

4. Output all the employees who work at Gigazoom

5. Output every male in JSON format

6. Output every female that works at Babblestorm in JSON format

7. Output the name of everyone who is 26 years old (just text, not JSON)

State the commands to successfully accomplish the statements above for full credit/thumbs up! Thanks!

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Assume the following employees.sql file: create table employees (    id INTEGER NOT NULL PRIMARY KEY...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,   ...

    Given (Oracle) SQL Script " CREATE TABLE Members(    MemberID NUMBER(4) NOT NULL PRIMARY KEY,    MFirst VARCHAR(25) NOT NULL,    MLast VARCHAR(25) NOT NULL,    Street VARCHAR(64) NOT NULL,    City VARCHAR(25) NOT NULL,    State VARCHAR(2) NOT NULL,    ZipCode NUMBER(5) NOT NULL,    CreditLimit NUMBER(7,2) NOT NULL,    Gender VARCHAR(1) NOT NULL CHECK (Gender IN('F','M')) ); CREATE TABLE Employees(    EmployeeID NUMBER(3) NOT NULL PRIMARY KEY,    EFirst VARCHAR(25) NOT NULL,    ELast VARCHAR(25) NOT NULL,   ...

  • The database(or the tables) are follow: CREATE TABLE employees ( id SERIAL NOT NULL PRIMARY KEY,...

    The database(or the tables) are follow: CREATE TABLE employees ( id SERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL, salary REAL NOT NULL DEFAULT 25000.0 ); CREATE TABLE employee_audit_log ( employee_id INTEGER NOT NULL, occurred_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); INSERT INTO employees(name, salary) VALUES ('Arnold Schwarznegger', 35000), ('Yuri Gargarin', 27000), ('Anakin Skywalker', 450000), ('Said Faroghi', 15000), ('Zino Holwerda', 8500); 1. Create a trigger for the employees table so that a new row is inserted in employee audit_log...

  • CREATE TABLE actor( id INTEGER NOT NULL, name VARCHAR(100), PRIMARY KEY (id) ); SELECT name FROM...

    CREATE TABLE actor( id INTEGER NOT NULL, name VARCHAR(100), PRIMARY KEY (id) ); SELECT name FROM actor WHERE name LIKE 'M%'; Q. How to run explain plan on the above query and display its output?

  • CREATE TABLE DEPT ( DEPTNO INTEGER NOT NULL, DNAME VARCHAR(14), LOC VARCHAR(13), PRIMARY KEY (DEPTNO)); INSERT...

    CREATE TABLE DEPT ( DEPTNO INTEGER NOT NULL, DNAME VARCHAR(14), LOC VARCHAR(13), PRIMARY KEY (DEPTNO)); INSERT INTO DEPT VALUES (10,'SPORTS','NEW YORK'); INSERT INTO DEPT VALUES (20,'HOME','DALLAS'); INSERT INTO DEPT VALUES (30,'OUTDOOR','CHICAGO'); INSERT INTO DEPT VALUES (40,'CLOTHING','BOSTON'); CREATE TABLE EMP ( EMPNO INTEGER NOT NULL, ENAME VARCHAR(10), JOB VARCHAR(9), MGR INTEGER, SAL FLOAT, COMM FLOAT, DEPTNO INTEGER NOT NULL, FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO), FOREIGN KEY (MGR) REFERENCES EMP(EMPNO), PRIMARY KEY (EMPNO)); INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL, 5000,NULL,10); INSERT INTO...

  • CREATE TABLE Users (               userId varchar (30) NOT NULL,               pass varchar (30),     

    CREATE TABLE Users (               userId varchar (30) NOT NULL,               pass varchar (30),               fname varchar (50),               lname varchar (50),               email varchar (50),               gender char(1),               age integer,               banned boolean,               PRIMARY KEY (userId),               UNIQUE(email)) CREATE TABLE FavSellers (               userId varchar (30),               sellerId varchar (30),               PRIMARY KEY (userId, sellerId),               FOREIGN KEY(userId) references Users,               FOREIGN KEY(sellerId) references Users(userId)) CREATE TABLE Items (               itemId integer,               title varchar (50),              ...

  • SQL I have a database CREATE TABLE vendor ( vid CHAR(2) NOT NULL, vname VARCHAR(25) NOT...

    SQL I have a database CREATE TABLE vendor ( vid CHAR(2) NOT NULL, vname VARCHAR(25) NOT NULL, PRIMARY KEY (vid) ); CREATE TABLE category ( catid CHAR(2) NOT NULL, catname VARCHAR(25) NOT NULL, PRIMARY KEY (catid) ); CREATE TABLE product ( pid CHAR(3) NOT NULL, pname VARCHAR(25) NOT NULL, price NUMERIC (7,2) NOT NULL, vid CHAR(2) NOT NULL, categoryid CHAR(2) NOT NULL, PRIMARY KEY (pid)); CREATE TABLE region ( rid CHAR NOT NULL, rname VARCHAR(25) NOT NULL, PRIMARY KEY (rid)...

  • USE colonial; CREATE TABLE CUSTOMER (CUSTOMER_NUM CHAR(4) PRIMARY KEY, LAST_NAME CHAR(30) NOT NULL, FIRST_NAME CHAR (30),...

    USE colonial; CREATE TABLE CUSTOMER (CUSTOMER_NUM CHAR(4) PRIMARY KEY, LAST_NAME CHAR(30) NOT NULL, FIRST_NAME CHAR (30), ADDRESS CHAR(35), CITY CHAR(35), STATE CHAR(2), POSTAL_CODE CHAR(5), PHONE CHAR(12) ); CREATE TABLE RESERVATION (RESERVATION_ID CHAR(7) PRIMARY KEY, TRIP_ID DECIMAL(3,0), TRIP_DATE DATE, NUM_PERSONS DECIMAL(3,0), TRIP_PRICE DECIMAL(6,2), OTHER_FEES DECIMAL(6,2), CUSTOMER_NUM CHAR(4) ); CREATE TABLE TRIP (TRIP_ID DECIMAL(3,0) PRIMARY KEY, TRIP_NAME CHAR(75), START_LOCATION CHAR(50), STATE CHAR(2), DISTANCE DECIMAL(4,0), MAX_GRP_SIZE DECIMAL(4,0), TYPE CHAR(20), SEASON CHAR(20) ); CREATE TABLE TRIP_GUIDES (TRIP_ID DECIMAL(3,0), GUIDE_NUM CHAR(4), PRIMARY KEY (TRIP_ID, GUIDE_NUM)...

  • USE colonial; CREATE TABLE CUSTOMER (CUSTOMER_NUM CHAR(4) PRIMARY KEY, LAST_NAME CHAR(30) NOT NULL, FIRST_NAME CHAR (30),...

    USE colonial; CREATE TABLE CUSTOMER (CUSTOMER_NUM CHAR(4) PRIMARY KEY, LAST_NAME CHAR(30) NOT NULL, FIRST_NAME CHAR (30), ADDRESS CHAR(35), CITY CHAR(35), STATE CHAR(2), POSTAL_CODE CHAR(5), PHONE CHAR(12) ); CREATE TABLE RESERVATION (RESERVATION_ID CHAR(7) PRIMARY KEY, TRIP_ID DECIMAL(3,0), TRIP_DATE DATE, NUM_PERSONS DECIMAL(3,0), TRIP_PRICE DECIMAL(6,2), OTHER_FEES DECIMAL(6,2), CUSTOMER_NUM CHAR(4) ); CREATE TABLE TRIP (TRIP_ID DECIMAL(3,0) PRIMARY KEY, TRIP_NAME CHAR(75), START_LOCATION CHAR(50), STATE CHAR(2), DISTANCE DECIMAL(4,0), MAX_GRP_SIZE DECIMAL(4,0), TYPE CHAR(20), SEASON CHAR(20) ); CREATE TABLE TRIP_GUIDES (TRIP_ID DECIMAL(3,0), GUIDE_NUM CHAR(4), PRIMARY KEY (TRIP_ID, GUIDE_NUM)...

  • The file PO2_07.xlsx includes data on 32 employees at the (fictional) company Beta Technologies. Find the...

    The file PO2_07.xlsx includes data on 32 employees at the (fictional) company Beta Technologies. Find the mean, median, and standard deviation of Annual Salary, broken down by each of the following categories. Round your answers to the nearest whole dollar, if necessary a. Gender Mean Gender Male Female $78187 $ 69135 $ 66,200 $ 69136 $ 35667 * $ 35667 Median Std Dev Comment on your findings. Females are getting paid less than males. b. A recoded version of Education,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT