Skip to content
Snippets Groups Projects
Commit 90104a76 authored by haoyuz3's avatar haoyuz3
Browse files

add scripts

parent ea092031
No related branches found
No related tags found
No related merge requests found
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;
File moved
File moved
File added
#!/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
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment