Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

MySQL

Name: Digger Nick 2013-07-04 16:26

Got a mySQL question,

  I'm trying to figure out the best way of doing this I have a table for time slots, and what I want is to have a groups of these slots with ids unique to the group.

Would it be better to use a junction table or would the way it is work just fine?

+------------+------------+---------+------------+
|  Group Id  |   Slot id  |   Time  |    Date    |
+------------+------------+---------+------------+
|     1      |      1     | 2 bongs | Nov 5 1605 |
+------------+------------+---------+------------+
|     1      |      2     | 3 bongs | Nov 5 1605 |
+------------+------------+---------+------------+
|     2      |      1     | 1 bongs | Nov 12 1605|
+------------+------------+---------+------------+
|     2      |      2     | 7 bongs | Nov 12 1605|
+------------+------------+---------+------------+

Name: Anonymous 2013-07-04 16:28

I'm trying to avoid having fifty tables for each individual group just so I can have a unique primary keys.

Name: Anonymous 2013-07-04 16:31

This is not quality at all. Don't fuck with me.

remaining time: 01:50:00

Name: Anonymous 2013-07-04 16:31

nevermind I guess it doesn't hurt to have slot id be unique and just increment through the groups and aggregate the slot id's by the group id.

Name: Anonymous 2013-07-04 16:34

>>4
Yep nevermind. I can spam the board for 3 months if I want to. MUHAHAHAH 3 months without /prog/ !!!
That's what you get when you try to fuck with the ELITE.

Name: Anonymous 2013-07-04 16:52

>>5
MUHAHAHAH 3 months without /prog/ !!!
Come on, don't be such a childish retard.

Name: Anonymous 2013-07-04 17:12

>>5
Bitch, my dad can spam the board for three years.

Name: Anonymous 2013-07-04 18:02

I should make my Frozen Chef bot more general.

Name: Anonymous 2013-12-22 9:56

YOU HAVE BEEN VISITED BY LE GREEN SAD NEGRO FROGE OF SADDNESS
REPOST THIS IN 100`000 threads or be a frog!

`
           ████████     ██████       
         █░░░░░░░░██ ██░░░░░░█      
        █░░░░░░░░░░░█░░░░░░░░░█     
       █░░░░░░░███░░░█░░░░░░░░░█    
       █░░░░███░░░███░█░░░████░█    
      █░░░██░░░░░░░░███░██░░░░██    
     █░░░░░░░░░░░░░░░░░█░░░░░░░░███ 
    █░░░░░░░░░░░░░██████░░░░░████░░█
    █░░░░░░░░░█████░░░████░░██░░██░░█
   ██░░░░░░░███░░░░░░░░░░█░░░░░░░░███
  █░░░░░░░░░░░░░░█████████░░░█████████
 █░░░░░░░░░░█████ ████   ████ █████   █
 █░░░░░░░░░░█     █ ███  █    ███ █   █
█░░░░░░░░░░░░█   ████ ████   ██ ██████
░░░░░░░░░░░░░█████████░░░████████░░░█
░░░░░░░░░░░░░░░░█░░░░░█░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░██░░░░█░░░░░░██ 
░░░░░░░░░░░░░░░░░░██░░░░░░░███████  
░░░░░░░░░░░░░░░░██░░░░░░░░░░█░░░░░█ 
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
░░░░░░░░░░░█████████░░░░░░░░░░░░░░██
░░░░░░░░░░█▒▒▒▒▒▒▒▒███████████████▒▒█
░░░░░░░░░█▒▒███████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░░░░░░█▒▒▒▒▒▒▒▒▒█████████████████
░░░░░░░░░░████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░░░░░░░░░░░░░░░██████████████████
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█    
██░░░░░░░░░░░░░░░░░░░░░░░░░░░██     
▓██░░░░░░░░░░░░░░░░░░░░░░░░██       
▓▓▓███░░░░░░░░░░░░░░░░░░░░█         
▓▓▓▓▓▓███░░░░░░░░░░░░░░░██          
▓▓▓▓▓▓▓▓▓███████████████▓▓█         
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██       
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█       
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█

Name: Anonymous 2013-12-23 12:11

>>21
>21
>dubs
nice :^)

Don't change these.
Name: Email:
Entire Thread Thread List