For following Relational Model, write SQL DDL commands for questions asked. i) ii) * FID fType
Fantastic news! We've Found the answer you've been seeking!
Question:
For following Relational Model, write SQL DDL commands for questions asked.
Transcribed Image Text:
← i) ii) * FID • fType fName iii) fRelease Date. fLength *fLanguage * fRating FILM PK (FID) ( iv) ← SS_FILM NUMBER (10) VARCHAR2 (100 CHAR) VARCHAR2 (40 CHAR) DATE NUMBER (4,2) VARCHAR2 (30 CHAR) VARCHAR2 (10) e PF PF SS FILM ACTOR * contractPay advancePay fID alD NUMBER (10,2) NUMBER (10,2) NUMBER (10) NUMBER (10) FILM_ACTOR_PK (fID, alD) FILM ACTOR_FILM_FK (FID) FILM_ACTOR_ACTOR_FK (aID) PalD SS_ACTOR NUMBER (10) VARCHAR2 (30) VARCHAR2 (30) CHAR (1) fName *fLname *aGender ACTOR_PK (aID) SS_ACTOR TALENT NUMBER (10) PF alD NUMBER (10) PF TID To create primary ke of SS_ACTOR_TALENT table. < ( ACTOR_TALENT_PK (tID, alD) ACTOR TALENT_ACTOR_FK (aID) ACTOR TALENT TALENT_FK (tID) PtID *tName SS TALENT tDescription TALENT PK (tID) www To add a constraint to enforce that column fID in SS_FILM table has minimum 6 digits ← NUMBER (10) VARCHAR2 (50) VARCHAR2 (100) To allow "F" or "M" or" U" as only possible value for aGender column of SS_ACTOR table< To create foreign keys for SS_FILM_ACTOR table ← i) ii) * FID • fType fName iii) fRelease Date. fLength *fLanguage * fRating FILM PK (FID) ( iv) ← SS_FILM NUMBER (10) VARCHAR2 (100 CHAR) VARCHAR2 (40 CHAR) DATE NUMBER (4,2) VARCHAR2 (30 CHAR) VARCHAR2 (10) e PF PF SS FILM ACTOR * contractPay advancePay fID alD NUMBER (10,2) NUMBER (10,2) NUMBER (10) NUMBER (10) FILM_ACTOR_PK (fID, alD) FILM ACTOR_FILM_FK (FID) FILM_ACTOR_ACTOR_FK (aID) PalD SS_ACTOR NUMBER (10) VARCHAR2 (30) VARCHAR2 (30) CHAR (1) fName *fLname *aGender ACTOR_PK (aID) SS_ACTOR TALENT NUMBER (10) PF alD NUMBER (10) PF TID To create primary ke of SS_ACTOR_TALENT table. < ( ACTOR_TALENT_PK (tID, alD) ACTOR TALENT_ACTOR_FK (aID) ACTOR TALENT TALENT_FK (tID) PtID *tName SS TALENT tDescription TALENT PK (tID) www To add a constraint to enforce that column fID in SS_FILM table has minimum 6 digits ← NUMBER (10) VARCHAR2 (50) VARCHAR2 (100) To allow "F" or "M" or" U" as only possible value for aGender column of SS_ACTOR table< To create foreign keys for SS_FILM_ACTOR table
Expert Answer:
Answer rating: 100% (QA)
Sure lets address each of the SQL DDL commands based on the requirements you provided i To create the primary key for the SSACTORTALENT table we would ... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these databases questions
-
BDO's revenue after insurance claims fell from Php68.3 billion in 2016 to Php64.6 billion in 2017. Does it necessarily mean that BDO made less profit in 2017 than in 2016? Explain your answer. (20...
-
Question 3 Consider a medical match problem with three hospitals, h1, h2 and h3, and four doctors d1, d2, d3 and d4. The capacities are 9h = 2 and 9h3 1, 9h2 = 1. The preferences = are given by the...
-
Create the relational diagram. Use the database shown in Figure P3.24 to answer this Problem. ROBCOR is an aircraft charter company that supplies on-demand charter flight services using a fleet of...
-
In Exercises 1114, graph each equation in a rectangular coordinate system. If two functions are indicated, graph both in the same system. Then use your graphs to identify each relations domain and...
-
Determine by direct integration the moment of inertia of the shaded area with respect to the x axis. y =kx2 + c
-
McMullen Company purchased tool sharpening equipment on May 1 for $162,000. The equipment was expected to have a useful life of three years, or 12,000 operating hours, and a residual value of $3,600....
-
Graph the expectation function for the logistic growth model (12.34) for \(\theta_{1}=10, \theta_{2}=2\), and values of \(\theta_{3}=0.25,1,2,3\), respectively. Overlay these plots on the same set of...
-
Jones Group has been generating stable after-tax return on equity (ROE) despite declining operating income. Explain how it might be able to maintain its stable after-tax ROE.
-
Harley-Davidson, inc. (HOG), is a leading motorcycle manufacturer in the United States. The company manufactures and sells a number of different types of motorcycles, a complete line of motorcycle...
-
Peyton Smith enjoys listening to all types of music and owns countless CDs. Over the years, Peyton has gained a local reputation for knowledge of music from classical to rap and the ability to put...
-
The following table shows the frequency of outcomes when two distinguishable coins were tossed 6,000 times and the uppermost faces were observed. Outcome HH HT TH TT Frequency 1,600 1,450 1,700 1,250...
-
As an FX trader, you have just called a trader at a bank to get quotes for the British pound for the spot, 30-day, 90-day, and 180-day forward rates. Your counterpart stated, "We trade sterling at...
-
Mortgage Balance A 25-year mortgage at interest compounded monthly with a monthly payment of $258.96 has an unpaid balance of $5,000 after 280 months. Find the unpaid balance after 281 months.
-
There are mutual funds that invest in stocks of socially responsible or ethical or green companies. Perform a web search to identify at least three such funds and look up their performance. How have...
-
A 5 year USA Treasure bond yields 4% and a 10 year treasury bond yields 5%. You own a 7.5 year bond issued by Apple Inc. it yields 6.25%. What is the credit risk premium on your bond? A 5 year USA...
-
10 Trixie has $300,000 to invest and has the following two investment options: (1) investing or borrowing at the riskless rate of 3%, and (2) a stock portfolio that has an expected return of 9%/year...
-
involves maintaining complete record of all cost incurred from their in currency to their charge two departments products and services. O Cost system O Cost asignment O Cost bookkeeping Cost...
-
The MIT Sloan School of Management is one of the leading business schools in the U.S. The following table contains the tuition data for the masters program in the Sloan School of Management. a. Use...
-
One of your vendors recommends using an MDBMS. How would you explain this recommendation to your project leader?
-
Write a query to display the manager name, department name, department phone number, employee name, customer name, invoice date, and invoice total for the department manager of the employee who made...
-
Martial Arts R Us (MARU) needs a database. MARU is a martial arts school with hundreds of students. It is necessary to keep track of all the different classes that are being offered, who is assigned...
-
Example 17.5 showed that a thin film whose thickness is one quarter of the wavelength of light in the film serves as an antireflection coating when coated on glass. In Example 17.5, \(n_{\text {film...
-
Give a specific example of a process that has the energy changes and transfers described. (For example, if the question states " \(\Delta E_{\mathrm{th}}>0, W=0\)," you are to describe a process that...
-
Give a specific example of a process that has the energy changes and transfers described. (For example, if the question states " \(\Delta E_{\mathrm{th}}>0, W=0\)," you are to describe a process that...
Study smarter with the SolutionInn App