Skip to content

Instantly share code, notes, and snippets.

View LarryBattle's full-sized avatar

Larry Battle LarryBattle

View GitHub Profile
@LarryBattle
LarryBattle / graph-es6.js
Last active March 10, 2016 16:52 — forked from kevinfjbecker/bfs.html
Breadth-first Graph Traversal in ES6
"use strict";
const G = {
vertices: [{
edges: [1, 4]
}, {
edges: [0, 2, 3, 4]
}, {
edges: [1, 3]
}, {
edges: [1, 2, 4]
1. List employees (names) who have a bigger salary than their boss
SELECT
e.`name`
FROM
employees AS e
INNER JOIN employees AS b ON e.bossid = b.employeeid
WHERE
e.salary > b.salary