Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization regarding lesson control. Dropped a redundant column in …
…chapters table, as we can query the max sec in sqlcons table.
- Loading branch information
Nate Allen
committed
May 8, 2012
1 parent
92435bd
commit 64f804c
Showing
6 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h3>Ch4-2 : Count (cont.)</h3> | ||
<p> | ||
To further assist in data analysis, we can employ the <code>group by<code> clause. | ||
<br /> <br /> | ||
This addition allows us to "group" aggregate function results together based on values in a column. | ||
<br /><code>select count(*) from students</code> | ||
<br /><code>select count(*) from students where fname like 'S%'</code> | ||
<br / > | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class DropmaxlessonFromChapters < ActiveRecord::Migration | ||
def up | ||
remove_column :chapters, :maxlesson | ||
end | ||
|
||
def down | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters