Closed nddrylliog closed 12 years ago
Why isn't it returning anything?
It displays three coaches, can you check that the table coaches
is correctly filled up?
Just checked both the 'coaches' and 'players' tables are empty for me. I'll try dropping everything and running the import again.
Just tried again, checking tables from SQL Developer, 'coaches' and 'players' are empty.
Here's what I did:
sqlplus DB2012_G06/DB2012_G06 < documents/sql/drop.sql
sqlplus DB2012_G06/DB2012_G06 < documents/sql/schema.sql
sqlplus DB2012_G06/DB2012_G06 < documents/sql/data.sql
cd path/to/nba
bundle exec rake db:migrate
bundle exec rake import:all
And every table is fine except coaches and players.
fyi import:all
does the drop/schema/data
dance. Check that the triggers are okay, in the sqlplus
output and/or using SQLDeveloper.
In SQLDeveloper, in the 'triggers' tab, there are none listed.
How should I go about debugging them?
The sqlplus
output then. I'll try running the import on the production server to see if it works there.
The SQLplus output for which command? Sqlplus is only used for the schema.sql and data.sql files, not the actual import? On May 22, 2012 10:05 PM, "Yoan Blanc" < reply@reply.github.com> wrote:
The
sqlplus
output then. I'll try running the import on the production server to see if it works there.
Reply to this email directly or view it on GitHub: https://github.com/nddrylliog/cs322/issues/22#issuecomment-5857314
rake import:schema
which runs (among others) sqlplus … < schema.sql
. It should output something similar to trigger created
.
Bwahahaha.
$RAILS_ENV=production rake import:all
…
ORA-02393: exceeded call limit on CPU usage
Tasks: TOP => import:players
Fuuuuuuuuuuuuuuuuuuuuuuuuuuu.
I've run the import:schema
command on the production server, using SQLDeveloper you can check the triggers out. They should exist on your install as well. We'll sort this out. Good nite buddy!
Alrighty. I'll check that out. Night o/
Just checked it out now that queries are working, all good! Closing.
For coaches who coached at most 7 seasons but more than 1 season, who are the three more successful? (Success rate is season win percentage:
season_win / (season_win + season_loss))
. Be sure to count all seasons when computing the percentage.