Commit af3f53d8 authored by Haoyu Z's avatar Haoyu Z
Browse files
parents c123cf50 90104a76
dbname=dvdrental
user=joker
password=m
select address.phone from (select a.phone as phone, a.address_id as address_id from (select c.address_id as address_id from rental as r join customer as c on r.customer_id = c.customer_id and r.staff_id = 1) as first join address as a on first.address_id = a.address_id and a.city_id > 100) as second join address on second.address_id = address.address_id;
#!/bin/sh
set "PGPASSWORD=m"
dropdb dvdrental
createdb dvdrental
pg_restore -U joker -d dvdrental /home/joker/sql-provenance/provsql/scripts
psql dvdrental < ../config/setup.sql
psql dvdrental < ../config/func.sql
git pull
python3 ../src/provenance.py -q ../config/dvdrental_query.in -o dvdrental_output.txt ../config/dvdrental_config.txt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment