Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6087649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:53:40+00:00 2026-05-23T11:53:40+00:00

How can i turn a table from this form: S_ID SUBJECT MARK 1 English

  • 0

How can i turn a table from this form:

S_ID          SUBJECT          MARK
1             English          90
1             Math             40
1             Computer         30
2             English          85
2             Math             10
2             Computer         06
3             English          10
3             Math             20
3             Computer         40

To this form

S_ID       English        Math         Computer
1          90             40           30
2          85             10           06
3          10             20           40

using SQL code,

I’m using MS Access 2010,

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:53:40+00:00Added an answer on May 23, 2026 at 11:53 am
    SELECT S_ID ,
           MAX(CASE WHEN subject = 'English' THEN mark ELSE null END) AS English,
           MAX(CASE WHEN subject = 'Math' THEN mark ELSE null END) AS Math,
           MAX(CASE WHEN subject = 'Computer' THEN mark ELSE null END) AS Computer
    FROM myTable
    GROUP BY S_ID 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using NUnit, I can turn off shadow copy so that my test assemblies
How can I turn this behavoir off? It happens when you enter a close
Basically I want to do this: delete top( 100 ) from table order by
Can someone please show me how to do this basic thing using Zend Framework
I am using Ember.js to create a table from a json feed. I have
In a SQL database I have a table, Table1 . This table is related
I got a tableview with guests(VM's) which i can turn on/off/reboot, this works perfectly
Given a table with schema like this: id1 id2 day number How can I
I'd like a daemonizer that can turn an arbitrary, generic script or command into
Does anyone know how you can turn off autocompletion on a textfield in Django?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.