insert 5 records into your Courses_xxxx table The fid, rid, aid should not be all the same among the 5 records. The enrollment number should be less than the room size. mysql> select * from Hotel; +---------+---------------+--------+ | hotelno | hotelname     | city   | +---------+---------------+--------+ | ch01    | Omni Shoreham | London | | ch02    | Phoenix Park  | London | | dc01    | Latham        | Berlin | | fb01    | Grosvenor     | London | | fb02    | Watergate     | Paris  | +---------+---------------+--------+   mysql> select * from Room; +--------+---------+--------+-------+ | roomno | hotelno | type   | price | +--------+---------+--------+-------+ |    501 | fb01    | single | 19.00 | |    601 | fb01    | double | 29.00 | |    701 | ch02    | single | 10.00 | |    701 | fb01    | family | 39.00 | |    801 | ch02    | double | 15.00 | |    901 | dc01    | single | 18.00 | |   1001 | ch01    | single | 29.99 | |   1001 | dc01    | double | 30.00 | |   1001 | fb02    | single | 58.00 | |   1101 | ch01    | family | 59.99 | |   1101 | dc01    | family | 35.00 | |   1101 | fb02    | double | 86.00 | +--------+---------+--------+-------+ 12 rows in set (0.00 sec)

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

insert 5 records into your Courses_xxxx table The fid, rid, aid should not be all the same among the 5 records. The enrollment number should be less than the room size.

mysql> select * from Hotel;

+---------+---------------+--------+

| hotelno | hotelname     | city   |

+---------+---------------+--------+

| ch01    | Omni Shoreham | London |

| ch02    | Phoenix Park  | London |

| dc01    | Latham        | Berlin |

| fb01    | Grosvenor     | London |

| fb02    | Watergate     | Paris  |

+---------+---------------+--------+

 

mysql> select * from Room;

+--------+---------+--------+-------+

| roomno | hotelno | type   | price |

+--------+---------+--------+-------+

|    501 | fb01    | single | 19.00 |

|    601 | fb01    | double | 29.00 |

|    701 | ch02    | single | 10.00 |

|    701 | fb01    | family | 39.00 |

|    801 | ch02    | double | 15.00 |

|    901 | dc01    | single | 18.00 |

|   1001 | ch01    | single | 29.99 |

|   1001 | dc01    | double | 30.00 |

|   1001 | fb02    | single | 58.00 |

|   1101 | ch01    | family | 59.99 |

|   1101 | dc01    | family | 35.00 |

|   1101 | fb02    | double | 86.00 |

+--------+---------+--------+-------+

12 rows in set (0.00 sec)

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

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