stats170ab-2019: R_Hoofersdb.sql

File R_Hoofersdb.sql, 2.7 KB (added by Wail Yousef A Alkowaileet, 7 years ago)

Wisconsin Sailing Club Example

Line 
1--
2-- PostgreSQL database dump
3--
4
5-- Dumped from database version 10.4
6-- Dumped by pg_dump version 10.4
7
8SET statement_timeout = 0;
9SET lock_timeout = 0;
10SET idle_in_transaction_session_timeout = 0;
11SET client_encoding = 'SQL_ASCII';
12SET standard_conforming_strings = on;
13SELECT pg_catalog.set_config('search_path', '', false);
14SET check_function_bodies = false;
15SET client_min_messages = warning;
16SET row_security = off;
17
18--
19-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
20--
21
22CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
23
24
25--
26-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
27--
28
29COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
30
31
32SET default_tablespace = '';
33
34SET default_with_oids = false;
35
36--
37-- Name: Boats; Type: TABLE; Schema: public; Owner: postgres
38--
39
40CREATE TABLE public."Boats" (
41 bid integer NOT NULL,
42 bname character varying,
43 color character varying
44);
45
46
47ALTER TABLE public."Boats" OWNER TO postgres;
48
49--
50-- Name: Reserves; Type: TABLE; Schema: public; Owner: postgres
51--
52
53CREATE TABLE public."Reserves" (
54 sid integer,
55 bid integer,
56 date date
57);
58
59
60ALTER TABLE public."Reserves" OWNER TO postgres;
61
62--
63-- Name: Sailors; Type: TABLE; Schema: public; Owner: postgres
64--
65
66CREATE TABLE public."Sailors" (
67 sid integer NOT NULL,
68 sname character varying NOT NULL,
69 rating integer,
70 age numeric(5,1) DEFAULT NULL::numeric
71);
72
73
74ALTER TABLE public."Sailors" OWNER TO postgres;
75
76--
77-- Data for Name: Boats; Type: TABLE DATA; Schema: public; Owner: postgres
78--
79
80COPY public."Boats" (bid, bname, color) FROM stdin;
81101 Interlake blue
82102 Interlake red
83103 Clipper green
84104 Marine red
85\.
86
87
88--
89-- Data for Name: Reserves; Type: TABLE DATA; Schema: public; Owner: postgres
90--
91
92COPY public."Reserves" (sid, bid, date) FROM stdin;
9322 101 1998-10-10
9422 102 1998-10-10
9522 103 1998-10-08
9622 104 1998-10-07
9731 102 1998-11-10
9831 103 1998-11-06
9931 104 1998-11-12
10064 101 1998-09-05
10164 102 1998-09-08
10274 103 1998-09-08
103\N 103 1998-09-09
1041 \N 2001-01-11
1051 \N 2002-02-02
106\.
107
108
109--
110-- Data for Name: Sailors; Type: TABLE DATA; Schema: public; Owner: postgres
111--
112
113COPY public."Sailors" (sid, sname, rating, age) FROM stdin;
11422 Dustin 7 45.0
11529 Brutus 1 33.0
11631 Lubber 8 55.5
11732 Andy 8 25.5
11858 Rusty 10 35.0
11964 Horatio 7 35.0
12071 Zorba 10 16.0
12174 Horatio 9 35.0
12285 Art 4 25.5
12395 Bob 3 63.5
124101 Joan 3 \N
125107 Johannes \N 35.0
126\.
127
128
129--
130-- Name: Boats Boats_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
131--
132
133ALTER TABLE ONLY public."Boats"
134 ADD CONSTRAINT "Boats_pkey" PRIMARY KEY (bid);
135
136
137--
138-- Name: Sailors Sailors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
139--
140
141ALTER TABLE ONLY public."Sailors"
142 ADD CONSTRAINT "Sailors_pkey" PRIMARY KEY (sid);
143
144
145--
146-- PostgreSQL database dump complete
147--
148