Sponsor Area

NCERT Solutions for Class 12 Help.html Computer Science With Python Chapter 9 Databases Concepts And SQL

Databases Concepts And SQL Here is the CBSE Help.html Chapter 9 for Class 12 students. Summary and detailed explanation of the lesson, including the definitions of difficult words. All of the exercises and questions and answers from the lesson's back end have been completed. NCERT Solutions for Class 12 Help.html Databases Concepts And SQL Chapter 9 NCERT Solutions for Class 12 Help.html Databases Concepts And SQL Chapter 9 The following is a summary in Hindi and English for the academic year 2025-26. You can save these solutions to your computer or use the Class 12 Help.html.

Question 1
CBSEENCO12011598

Write SQL queries for (i) to (iv) and find outputs for SQL queries (v) to (viii), which are based on the tables.

DVD

DCODE  DTITLE   DTYPE 
F101 Henry Martin  Folk
C102 Dhrupad Classical
C101 The Planets Classical
F102 Universal Soldier Folk
R102 A day in life Rock


MEMBER

MID

NAME

DCODE

ISSUEDATE

101

AGAM SINGH

R102

2017-11-30

103

ARTH JOSEPH

F102

2016-12-13

102

NISHA HANS

C101

2017-07-24

  1. To display all details from the table MEMBER in descending order of ISSUEDATE.
  2. To display the DCODE and DTITLE of all Folk Type DVDs from the table DVD.
  3. To display the DTYPE and number of DVDs in each DTYPE from the table DVD.
  4. To display all NAME and ISSUEDATE of those members from the table MEMBER who have DVDs issued (i.e ISSUEDATE) in the year 2017.
  5. SELECT MIN(ISSUEDATE) FROM MEMBER;
  6. SELECT DISTINCT DTYPE FROM DVD;
  7. SELECT D.DCODE,NAME,DTITLE
  8. FROM DVD D, MEMBER M WHERE D.DCODE=M.DCODE; SELECT DTITLE FROM DVD
  9. WHERE DTYPE NOT IN ( ' Folk ' , ' Classical ' );

 

Solution

(i) SELECT * FROM MEMBER ORDER BY ISSUEDATE DESC;

(ii)SELECT DCODE,DTITLE FROM DVD WHERE DTYPE=’Folk’;

(iii)SELECT COUNT(*),DTYPE FROM DVD GROUP BY DTYPE;

(iv) SELECT NAME, ISSUEDATE FROM MEMBER WHERE
      ISSUEDATE>=’2017-01-01’ AND ISSUEDATE<=’2017-12-31’;

(v) MIN(ISSUEDATE)
     2016-12-13

(vi)DISTINCT DTYPE
     Folk
     Classical
     Rock

(vii) 

DCODE  NAME   DTITLE  
R102 AGAM SINGH  A day in life
F102 ARTH JOSEPH Universal Soldier
C101 NISHA HANS The Planets


(viii) DTITLE
       A day in life

Sponsor Area