-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ichn-hu/master
merge ass2 into branch
- Loading branch information
Showing
317 changed files
with
2,524 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
docs/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CREATE TABLE employee ( | ||
id INT PRIMARY KEY, | ||
name VARCHAR(32), | ||
office VARCHAR(32), | ||
age INT | ||
); | ||
|
||
CREATE TABLE book ( | ||
id INT PRIMARY KEY, | ||
name VARCHAR(32), | ||
author VARCHAR(32), | ||
publisher VARCHAR(32) | ||
); | ||
|
||
CREATE TABLE record ( | ||
book_id INT, | ||
employee_id INT, | ||
time DATE, | ||
FOREIGN KEY (book_id) REFERENCES book(id), | ||
FOREIGN KEY (employee_id) REFERENCES employee(id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name = 'Jones'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id = 1 OR id = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id != 1 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE age >= 25 and age <= 30 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name LIKE 'J%' | ||
ORDER BY age; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT DISTINCT publisher | ||
FROM book | ||
ORDER BY publisher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT DISTINCT book_id | ||
FROM record | ||
WHERE time >= '2016-10-31' | ||
ORDER BY book_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SELECT e.id, e.name, COUNT(*) as num | ||
FROM employee AS e, record | ||
WHERE e.id = record.employee_id | ||
GROUP BY e.id | ||
HAVING num > 1 | ||
ORDER BY num DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CREATE TABLE employee ( | ||
id INT(16), | ||
name VARCHAR(32), | ||
office VARCHAR(32), | ||
age INT(8), | ||
PRIMARY KEY (id) | ||
); | ||
CREATE TABLE book ( | ||
id INT(16), | ||
name VARCHAR(32), | ||
author VARCHAR(32), | ||
publisher VARCHAR(32), | ||
PRIMARY KEY (id) | ||
); | ||
CREATE TABLE record ( | ||
book_id INT(16), | ||
employee_id INT(16), | ||
time DATE, | ||
FOREIGN KEY (book_id) REFERENCES book (id), | ||
FOREIGN KEY (employee_id) REFERENCES employee (id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name='Jones'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id=1 OR id=2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id!=1 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE age>=25 AND age<=30 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name LIKE 'J%' | ||
ORDER BY age; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT DISTINCT publisher | ||
FROM book | ||
ORDER BY publisher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT DISTINCT book_id | ||
FROM record | ||
WHERE time > 2016-10-31 | ||
ORDER BY book_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SELECT id,name,count(book_id) AS num | ||
FROM record,employee | ||
WHERE id=employee_id | ||
GROUP BY id | ||
HAVING count(book_id)>1 | ||
ORDER BY num; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CREATE TABLE employee( | ||
id INT NOT NULL, | ||
name VARCHAR(32), | ||
office VARCHAR(32), | ||
age INT, | ||
PRIMARY KEY(id), | ||
CHECK (id>=0 AND id<=100) | ||
); | ||
CREATE TABLE book( | ||
id INT NOT NULL, | ||
name VARCHAR(32), | ||
author VARCHAR(32), | ||
publisher VARCHAR(32), | ||
PRIMARY KEY(id) | ||
); | ||
CREATE TABLE record( | ||
book_id INT NOT NULL, | ||
employee_id INT NOT NULL, | ||
time DATE, | ||
FOREIGN KEY (book_id) REFERENCES book(id), | ||
FOREIGN KEY (employee_id) REFERENCES employee(id) | ||
); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name="Jones"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id=1 or id = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE id!=1 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT name | ||
FROM employee | ||
WHERE age BETWEEN 25 AND 30 | ||
ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT * | ||
FROM employee | ||
WHERE name LIKE "J%" | ||
ORDER BY age; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT publisher | ||
FROM book | ||
GROUP BY publisher | ||
HAVING count(id)>2 | ||
ORDER BY publisher ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SELECT DISTINCT book_id AS id | ||
FROM record | ||
WHERE time > '2016-10-31' | ||
ORDER BY book_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT id,name,count(id) AS num | ||
FROM employee JOIN record ON id = employee_id | ||
GROUP BY id,name | ||
HAVING num>1 | ||
ORDER BY num DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CREATE TABLE employee | ||
( | ||
id INT NOT NULL, | ||
name VARCHAR(32), | ||
office VARCHAR(32), | ||
age INT, | ||
check (age <= 100 and age >= 0), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE book | ||
( | ||
id INT NOT NULL, | ||
name VARCHAR(32), | ||
author VARCHAR(32), | ||
publisher VARCHAR(32), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE record | ||
( | ||
book_id INT, | ||
employee_id INT, | ||
time DATE, | ||
FOREIGN KEY(book_id) references book(id), | ||
FOREIGN KEY(employee_id) references employee(id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select * | ||
from employee | ||
where name='Jones'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
select name | ||
from employee | ||
where id='1' or id='2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select name | ||
from employee | ||
where id!='1' | ||
order by id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select name | ||
from employee | ||
where age>=25 and age<=30 | ||
order by id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select * | ||
from employee | ||
where name like 'J%' | ||
order by age; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select distinct x.publisher | ||
from book as x,book as y | ||
where x.publisher=y.publisher and x.name!=y.name | ||
order by publisher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
select book_id | ||
from record | ||
where time>'2016-10-31' | ||
order by book_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
select employee.id,employee.name,count(record.employee_id) | ||
from record,employee | ||
where record.employee_id=employee.id | ||
group by employee.id | ||
having count(record.employee_id)>=2 | ||
order by count(record.employee_id) desc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
create table employee( | ||
id int, | ||
name varchar(32), | ||
office varchar(32), | ||
age smallint, | ||
primary key(id) | ||
); | ||
|
||
create table book( | ||
id int, | ||
name varchar(32), | ||
author varchar(32), | ||
publisher varchar(32), | ||
primary key(id) | ||
); | ||
|
||
create table record( | ||
book_id int, | ||
employee_id int, | ||
time date, | ||
foreign key(book_id)references book(id), | ||
foreign key(employee_id)references employee(id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT * FROM employee WHERE name="Jones" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT name FROM employee WHERE id = 1 OR id = 2 ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT name FROM employee WHERE id != 1 ORDER BY id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT name FROM employee WHERE age <= 30 AND age >= 25 ORDER BY id ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT * FROM employee WHERE name LIKE "J%" ORDER BY age ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SELECT DISTINCT X.publisher FROM book AS X , book AS Y | ||
WHERE X.name != Y.name AND X.publisher = Y.publisher ORDER BY publisher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SELECT DISTINCT book_id FROM record | ||
WHERE time > "2016-10-31" ORDER BY book_id ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SELECT employee.id, employee.name, COUNT(record.employee_id) | ||
AS num FROM (employee INNER JOIN record | ||
ON employee.id = record.employee_id ) | ||
GROUP BY employee.id | ||
HAVING COUNT(record.employee_id) >=2 | ||
ORDER BY COUNT(record.employee_id) DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CREATE TABLE employee | ||
( id VARCHAR(32) NOT NULL PRIMARY KEY, | ||
name CHAR(32) NOT NULL, | ||
office CHAR(32) NOT NULL, | ||
age INT NOT NULL CHECK(age >= 0 AND age <= 100)); | ||
|
||
CREATE TABLE book | ||
( id VARCHAR(32) NOT NULL PRIMARY KEY, | ||
name CHAR(32) NOT NULL, | ||
author CHAR(32) NOT NULL, | ||
publisher CHAR(32) NOT NULL); | ||
|
||
CREATE TABLE record | ||
( book_id VARCHAR(32) NOT NULL, | ||
employee_id CHAR(32) NOT NULL, | ||
time DATE NOT NULL, | ||
FOREIGN KEY (book_id) REFERENCES book(id), | ||
FOREIGN KEY (employee_id) REFERENCES employee(id)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Query all fields for employees named Jones | ||
SELECT | ||
* | ||
FROM | ||
employee | ||
WHERE | ||
name = 'Jones'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Query the name of employees with ID equals to 1 or 2 (order does not matter) | ||
SELECT | ||
name | ||
FROM | ||
employee | ||
WHERE | ||
id IN (1, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Query the name of all employees except the one whose ID is 1 (ordered by ID) | ||
SELECT | ||
name | ||
FROM | ||
employee | ||
WHERE | ||
id <> 1 | ||
ORDER BY | ||
id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Query the name of all employees with age between 25 and 30 (inclusively, | ||
-- ordered by ID) | ||
SELECT | ||
name | ||
FROM | ||
employee | ||
WHERE | ||
age BETWEEN 25 AND 30 | ||
ORDER BY | ||
id; |
Oops, something went wrong.