Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Please create the following tables in your Oracle account. student (sid, sname, major, age), where sid is primary key. take (sid, cno, grade), where sid

image text in transcribed
Please create the following tables in your Oracle account. student (sid, sname, major, age), where sid is primary key. take (sid, cno, grade), where sid and cno together is primary key, sid is a foreign key, cno is a course (cno, cname, dept, credits), where cno is primary key foreign key. In student table, add those students: s11, James, CS, 20 s22, Emily, CS, 22 s33, Sam, SE, 21 In the course table, there are 3 courses: M100, Algebra, Math, 3 C200, Java, CS, 4 C300, Database, CS, 4 In the take table, there are S11, M100, A S22, M100, B S11, C200, A 533, M100, S33, C300, F Write queries to check content of each table. Write a query to see who got F (show sid, cno). Write a query to see who got F (show student name, cno name). Finally, you play with other queries that you want to try

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students explore these related Databases questions