I'd like to get a table which shows students and the marks they receive for all of their subjects in one query.
This is my table structure:
Table: markdetails
## studid ## ## subjectid ##  ## marks ##
     A1            3                50
     A1            4                60
     A1            5                70
     B1            3                60
     B1            4                80
     C1            5                95
Table: student info
Actual Structure:
## studid ##  ## name ##
      A1          Raam
      B1          Vivek
      c1          Alex
I want the result set to look like this:
Table: Student Info
## studid ## ## name## ## subjectid_3 ## ## subjectid_4 ## ## subjectid_5 ##
      A1        Raam        50                60                 70
      B1        Vivek       60                80                null
      c1        Alex       null              null                95
How can I accomplish this in SQLite?