-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRead_PPD.sql
More file actions
35 lines (31 loc) · 803 Bytes
/
Copy pathRead_PPD.sql
File metadata and controls
35 lines (31 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ------------------------------------------------
# Read_PPD.sql
# ------------------------------------------------
# Code provided as is and can be used or modified freely.
# ------------------------------------------------
# Author: BIN CHI
# Urban Big Data Centre at University of Glasgow
# Bin.Chi@glasgow.ac.uk
# Date: 1/4/2022
#Create a pricepaid table
CREATE TABLE pricepaid
(
transactionid text NOT NULL,
price bigint,
dateoftransfer date,
postcode text,
propertytype text,
oldnew text,
duration text,
paon text,
saon text,
street text,
locality text,
towncity text,
district text,
county text,
categorytype text,
recordstatus text
)
#Read in the Land Registry PPD dataset
COPY pricepaid FROM 'D:/OS_Data/PPD/pp-complete.csv' DELIMITERS ',' CSV QUOTE '"';