Web Analytics

Questions › Computer Science

Computer Science Asked by a SnapAndSolve user · 15 minutes ago

List the names of those students who have obtained DIV I sorted by NAME. 2. Display a report, listing NAME,...

1. List the names of those students who have obtained DIV I sorted by NAME.
2. Display a report, listing NAME, STIPEND, SUBJECT and amount of stipend received in a year assuming that the STIPEND is paid every month.
3. To count the number of students who are either PHYSICS or COMPUTER SC graduates.
4. To insert a new row in the GRADUATE table: 11, "KAJOL", 300, "computer sc", 75, 1
(B) Give the output of following sql statement based on the above table
1. Select MIN(AVERAGE) from GRADUATE where SUBJECT="PHYSICS";
2. Select SUM(STIPEND) from GRADUATE WHERE div=2;

Answer

  1. The names of students who have obtained DIV I sorted by NAME are: ARJUN, DIWAKA, DIVYA, JOHN, KARAN, REKHA, ROBERT, RUBINA.

  2. The report listing NAME, STIPEND, SUBJECT, and yearly stipend amount is:
    - KARAN, 400, PHYSICS, 4800
    - DIWAKA, 450, COMP Sc, 5400
    - DIVYA, 300, CHEMISTR, 3600
    - REKHA, 350, PHYSICS, 4200
    - ARJUN, 500, MATHS, 6000
    - JOHN, 250, PHYSICS, 3000
    - ROBERT, 450, MATHS, 5400
    - RUBINA, 500, COMP Sc, 6000
    - SABINA, 400, CHEMISTR, 4800
    - VIKAS, 400, MATHS, 4800

  3. The number of students who are either PHYSICS or COMPUTER SC graduates is 5.

  4. To insert a new row in the GRADUATE table: INSERT INTO GRADUATE (S.N, NAME, STIPEN, SUBJECT, AVERAG, DI) VALUES (11, 'KAJOL', 300, 'computer sc', 75, 1);

  5. The output of the SQL statement 'Select MIN(AVERAGE) from GRADUATE where SUBJECT="PHYSICS";' is 63.

  6. The output of the SQL statement 'Select SUM(STIPEND) from GRADUATE WHERE div=2;' is 800.

Have a similar question?

Snap a photo of your homework and get a step-by-step answer in seconds. You can ask follow-up questions until it makes sense.

Solve my question free Computer Science help Find a computer science tutor

More computer science questions