I have 20 or so tables which share one field.
To start off on a low level I want to join all the fields of the tables on the common field, but I am having trouble getting rid of the common field being duplicated in the results
SELECT * FROM table1 INNER JOIN table2 ON table1.a = table2.a
Do I...
Ah, thats one solution that I know but what I am really trying to ask is that lets say I take a book name and I want to find out what genre(s) it is in, meaning I only want to list the columns in the row that have a true value without necessarily knowing the column names.
SELECT * FROM Table...
I have a database with a 15 columns
1 is a title
14 other are true/false categories containing genre types
For example:
BookName | Scifi |Fantasy |Mystery
Star Trek | True | True | False
How would I select the book name and all the values that are true for that specific book so that I get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.