Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
13 votes
3 answers
2k views

Trading Card Game database schema for statistics

This database schema will be used in conjunction with various systems as related to an online Trading Card Game, mostly for permanent storage and statistics. Some example cases would include: JDBC ...
Phrancis's user avatar
  • 20.5k
6 votes
1 answer
114 views

Is there a way to optimize this aggregate postgreSQL statement by using CASE?

I have a working SQL statement which shows the following: Player Champion Role Total Kill/Death Ratio Total Kill+Assist/Death Ratio Total Win % Difference between Ratio from one month ago Difference ...
Othya's user avatar
  • 113
18 votes
1 answer
2k views

Tic-tac-toe in SQL with optimal AI

The simplest introduction to this code is to play it! Here's an SQL Fiddle. However, to enjoy it fully, you'll need a more interactive environment, like the psql ...
200_success's user avatar