Skip to content

Nando Theeßen#99

Open
NandoTheessen wants to merge 1 commit intobloominstituteoftechnology:masterfrom
NandoTheessen:master
Open

Nando Theeßen#99
NandoTheessen wants to merge 1 commit intobloominstituteoftechnology:masterfrom
NandoTheessen:master

Conversation

@NandoTheessen
Copy link

@NandoTheessen NandoTheessen commented Sep 7, 2018

DB Setup

  • open db for chat system
  • write CREATE TABLE statement for organization
  • write CREATE TABLE statement for channel
  • write CREATE TABLE statement for user
  • write CREATE TABLE statement for message
  • make sure tables have appropriate foreign keys
  • add additional join tables, if necessary
  • insert users & organization
  • add 10 messages
  • add users to channels

write SELECT queries

  • list all organization names
  • list all channel names
  • list all channels in a specific org by org name
  • list all messages in a specific channel by channel name general in order of post_time, descending
  • list all channels to which Alice belongs
  • list all users that belong to channel general
  • list all message in all channels by user Alice
  • list all messages in random by user Bob
  • list count of messages across all channels per user

Stretch

  • SELECT Query - list count of messages per user per channel

- Added seed data to db-setup.sql
- Started adding queries to queries.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant