Write SQL command to create above table “course” and insert the above values.   ccode cname C101 Database concepts and design C102 Software Engineering C103 Human Computer Interaction C104 Programming-2 C105 Multimedia

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  1. Write SQL command to create above table “course” and insert the above values.
  2.  

    ccode

    cname

    C101

    Database concepts and design

    C102

    Software Engineering

    C103

    Human Computer Interaction

    C104

    Programming-2

    C105

    Multimedia

    1. Write SQL command to create above table “student” with REFERENCES and insert the above values.

    Hints:- In table student ccode is a FOREIGN KEY.    

    sid

    sname

    ccode

    101

    Abdullah Ahmad

    C101

    102

    Ali

    C102

    103

    Hazmi

    C104

    104

    Khalid

    C102

    105

    Ali Ahmad

    C103

     
    1. Write SQL command to display sname(student name) from student table and corresponding cname(course name) from course table using inner join.

     

    Your output should be like this

    sname

    cname

    Abdullah Ahmad

    Database concepts and design

    Ali

    Software Engineering

    Hazmi

    Programming-2

    Khalid

    Software Engineering

    Ali Ahmad

    Human Computer Interaction

      
  3. (in a program mycmpiler)
2. In the exam you have to run the program and write the SQL code on the
answer sheet paper.
ccode
C101
C102
C103
C104
C105
sid
101
102
103
104
105
course
cname
Database concepts and design
Software Engineering
Your output should be like this
sname
Abdullah Ahmad
Human Computer Interaction
Programming-2
Multimedia
Ali
Hazmi
Khalid
Ali Ahmad
student
sname
Abdullah Ahmad
1. Write SQL command to create above table "course" and insert the above values.
Ali
Hazmi
Khalid
Ali Ahmad
2. Write SQL command to create above table "student" with REFERENCES and
insert the above values.
Hints:- In table student ccode is a FOREIGN KEY.
ccode
C101
C102
C104
C102
C103
3. Write SQL command to display sname(student name) from student table and
corresponding cname(course name) from course table using inner join.
cname
Database concepts and design
Software Engineering
Programming-2
Software Engineering
Human Computer Interaction
Transcribed Image Text:2. In the exam you have to run the program and write the SQL code on the answer sheet paper. ccode C101 C102 C103 C104 C105 sid 101 102 103 104 105 course cname Database concepts and design Software Engineering Your output should be like this sname Abdullah Ahmad Human Computer Interaction Programming-2 Multimedia Ali Hazmi Khalid Ali Ahmad student sname Abdullah Ahmad 1. Write SQL command to create above table "course" and insert the above values. Ali Hazmi Khalid Ali Ahmad 2. Write SQL command to create above table "student" with REFERENCES and insert the above values. Hints:- In table student ccode is a FOREIGN KEY. ccode C101 C102 C104 C102 C103 3. Write SQL command to display sname(student name) from student table and corresponding cname(course name) from course table using inner join. cname Database concepts and design Software Engineering Programming-2 Software Engineering Human Computer Interaction
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY