Jump to content

trouble with select statement


jakebur01

Recommended Posts

With that said you can use reserved words as column names, but you have to enclose them like so:  `primary`.

 

Now to the bigger question --- your table structure has implemented the classic repeating group (primary, secondary, third) which I assume from the example is a foreign key to a Breed table.  Really that should be a many to many.

 

 

Tables should be dog_account, breed, dog_breed, where dog_breed is something like:  (dog_id, breed_id, percent).

 

Then you wouldn't have to construct ugly or queries like the one you're doing now.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.