- Write a query to display all records in the orders table
SELECT * FROM orders;
- Show me the employees whose name starts with A.
SELECT * FROM employees WHERE first_name LIKE 'A%';
Note: ILIKE
can be used for case-insensitive search.
SELECT * FROM orders;
SELECT * FROM employees WHERE first_name LIKE 'A%';
Note: ILIKE
can be used for case-insensitive search.
This is the final capstone for this portion of the class.
This capstone is intended to demonstrate your mastery of basic git, project documentation (README, comments), writing unit tests, javascript, jQuery, basic-to-intermediate Angular, and basic API integrations.
Project Criteria:
# this makes the "delete" key work rather than | |
# just entering a ~ | |
"\e[3~": delete-char | |
# these allow you to use ctrl+left/right arrow keys | |
# to jump the cursor over words | |
"\e[5C": forward-word | |
"\e[5D": backward-word |
require 'spec_helper' | |
describe '/api/v2/favorites', :api do | |
let!(:facility) { FactoryGirl.create(:facility) } | |
let!(:user) { FactoryGirl.create(:user, facility: facility) } | |
let!(:user2) { FactoryGirl.create(:user, facility: facility) } | |
let!(:other_user) { FactoryGirl.create(:user, facility: facility) } | |
before(:each) { user.reset_authentication_token! } | |
describe 'POST' do |
** Will - I spy with my little eye (via. Instagram)
class CreateLineItems < ActiveRecord::Migration | |
def change | |
create_table :line_items do |t| | |
t.references :order | |
t.references :product | |
t.integer :quantity | |
t.boolean :delivered | |
end | |
end | |
end |