MYSQL DISTINCT SELECT FROM MULTIPLE COLUMNS?
-
what SQL statement can i use to achieve NAME SESSION TYPE MATHS ENG HIST ANA 1990 SSCE A* B C JONES 1990 SSCE D A B+ From the following database? NAME SESSION TYPE COURSE GRADE ANA 1990 SSCE MATHS A* ANA 1990 SSCE ENG B ANA 1990 SSCE HIST C JONES 1990 SSCE MATHS D JONES 1990 SSCE ENG A JONES 1990 SSCE HIST B+
-
Answer:
You are not selecting from multiple columns, you are selecting from multiple rows and putting the results into multiple columns. And, no, I don't know the solution mainly because your table is not normalized, therefore making it hard to do a SQL selection.
Flora at Yahoo! Answers Visit the source
Related Q & A:
- How to decrypt multiple columns?Best solution by Stack Overflow
- How to skip columns empty in CSV file when importing into MySQL table using LOAD DATA INFILE?Best solution by Stack Overflow
- How to select all articles and their similar articles from MySQL?Best solution by Stack Overflow
- How to store multiple record in Mysql variable?Best solution by Stack Overflow
- how to insert multiple rows from MySQL with checkbox?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.