Sql  list students name who never borrowed/ reserve a book

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Sql 

list students name who never borrowed/ reserve a book 

XAMPP or
| 100 | 101 | 2000-07-17|
15 rows in set (0.000 sec)
MariaDB [tentaq4]> select • from student;
| sid | sname I discount age
45 1
SE
35 |
EE
22 | Dustin
| 28 | Yuppy
29 | Brustus
31 | Larken
| 32 | Andy
Guppy
58 Rusty
00°L
00°6
| 00°T
SS
25
00 8
| 00°8
00°S
SE
| SE
35
SE
64 Herti
71 | Zorba
74 | Herti
00°L
10.00
9-
| 00°6
00°E
SE
25
85
Art
| 00°E
| 00°E
| E9
| 6T
95 | Bob
13 rows in set (0.000 sec)
MariaDB (tentaq4]> describe student;
+-
| Field I Type
| Null | Key | Default | Extra |
smallint(6) | NO
| varchar(20) | YES |
float (6,2) | YES I
| tinyint(4) | YES
| PRI
NULL
PTS
sname
discount
NULL
ade
אחךך
4 rows in set (0.010 sec)
MariaDB [tentaq4]> describe book;
---
+.
| Field | Type
| Null | Key | Default | Extra |
bid I
smallint(6) | NO
PRI | NULL
bname I | YES
varchar (20)
theme varchar(15) | YES
NULL
3 rows in set (0.006 sec)
MariaDB [tentaq4]> describe reservation;
| Field | Type
| Null | Key | Default | Extra |
Transcribed Image Text:XAMPP or | 100 | 101 | 2000-07-17| 15 rows in set (0.000 sec) MariaDB [tentaq4]> select • from student; | sid | sname I discount age 45 1 SE 35 | EE 22 | Dustin | 28 | Yuppy 29 | Brustus 31 | Larken | 32 | Andy Guppy 58 Rusty 00°L 00°6 | 00°T SS 25 00 8 | 00°8 00°S SE | SE 35 SE 64 Herti 71 | Zorba 74 | Herti 00°L 10.00 9- | 00°6 00°E SE 25 85 Art | 00°E | 00°E | E9 | 6T 95 | Bob 13 rows in set (0.000 sec) MariaDB (tentaq4]> describe student; +- | Field I Type | Null | Key | Default | Extra | smallint(6) | NO | varchar(20) | YES | float (6,2) | YES I | tinyint(4) | YES | PRI NULL PTS sname discount NULL ade אחךך 4 rows in set (0.010 sec) MariaDB [tentaq4]> describe book; --- +. | Field | Type | Null | Key | Default | Extra | bid I smallint(6) | NO PRI | NULL bname I | YES varchar (20) theme varchar(15) | YES NULL 3 rows in set (0.006 sec) MariaDB [tentaq4]> describe reservation; | Field | Type | Null | Key | Default | Extra |
MariaDB (tentaq4]> INSERT INTO Reservation VALUES(100,101,STR_TO DATE('17
Query OK, 1 row affected (0.008 sec)
MariaDB [tentaq4]> show tables;
Tables_in_tentaq4 |
book
reservation
student
3 rows in set (0.003 sec)
MariaDB (tentaq4]> select from book;
| bid | bname
| theme
Tet
101 | Lake Travels | Drama
102 Star War
|Fiction
Adventure
103 Flipper
104 Red Eye
Horror
4 rows in set (0.001 sec)
MariaDB [tentaq4]> select from reservation;
| sid | bid | rday
22 | 101
22 |
1996-11-10 I
TOT
102 1996-11-10
22 | 103 | 1998-08-10
22 | 104 | 1998-07-10
31 | 102 | 1998-11-11
31 | 103 | 1998-06-11
31 | 104 1998-11-12
58 103 1996-12-11
19
101
64 | 102 | 1998-08-05
60-80-8661
71 | 102 | 2000-07-15
71
74 103 1998-08-05
100 | 101 | 2000-07-15
| 100 | 101 | 2000-07-17
S0-80-666T EOT
-----+
15 rows in set (0.000 sec)
MariaDB (tentaq4]> select * from student;
Transcribed Image Text:MariaDB (tentaq4]> INSERT INTO Reservation VALUES(100,101,STR_TO DATE('17 Query OK, 1 row affected (0.008 sec) MariaDB [tentaq4]> show tables; Tables_in_tentaq4 | book reservation student 3 rows in set (0.003 sec) MariaDB (tentaq4]> select from book; | bid | bname | theme Tet 101 | Lake Travels | Drama 102 Star War |Fiction Adventure 103 Flipper 104 Red Eye Horror 4 rows in set (0.001 sec) MariaDB [tentaq4]> select from reservation; | sid | bid | rday 22 | 101 22 | 1996-11-10 I TOT 102 1996-11-10 22 | 103 | 1998-08-10 22 | 104 | 1998-07-10 31 | 102 | 1998-11-11 31 | 103 | 1998-06-11 31 | 104 1998-11-12 58 103 1996-12-11 19 101 64 | 102 | 1998-08-05 60-80-8661 71 | 102 | 2000-07-15 71 74 103 1998-08-05 100 | 101 | 2000-07-15 | 100 | 101 | 2000-07-17 S0-80-666T EOT -----+ 15 rows in set (0.000 sec) MariaDB (tentaq4]> select * from student;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY