Create the table, Database Management System

Assignment Help:

Question:

Using the data model express the following queries in SQL.

(a) Create the Table named "Cinema" and make the cinema_code to be the primary key of the relation and the Town and Manager number to be the Foreign key of the table. What are the assumptions you have to make for the code to compile successfully?

(b) Add a new column in the table named Cinema to store the telephone number of the cinema.

(c) Add a new record in the Cinema Table with the following values:

1783_DB table.png

(d) Modify the population value for Cardiff from 300,000 to 350,000.

(e) List all the cinema names and the town in which the film ‘Star Wars' has been shown.

(f) List all the film names and their respective film taking (the number of shows) which has been played at Rex found in Cardiff.

(g) Create a view named Cinema_Rex_View which will shows all the films played at Rex found in Cardiff. The views should have the following columns.


Related Discussions:- Create the table

Two approaches to store relations in distributed database, What are the two...

What are the two approaches to store relations in distributed database? a) Replication b) Fragmentation

Define physical and logical data independence, Define physical and logical ...

Define physical and logical data independence. How does this architecture help in achieving these? Data independence entails that change in one view must not need a change in t

Datawarehouse, 1) Define a job scheduling strategy that will meet business ...

1) Define a job scheduling strategy that will meet business requirement of reporting availability by 6am CST for the following cubes? Show the job scheduling dependencies in a pict

Reflects organisational structure, Reflects organisational structure: Many ...

Reflects organisational structure: Many organizations are distributed over various locations. If an organisation has many offices in dissimilar cities, databases used in such an ap

What is a checkpoint, What is a checkpoint? List the operations to be perfo...

What is a checkpoint? List the operations to be performed by the system when a checkpoint is to be taken. What does the recovery system do if there is a crash? There is large n

What is the function of io/m signal in the 8085, What is the function of IO...

What is the function of IO/M signal in the 8085? It is a status signal. It is used to differentiate among memory locations and I/O operations. When this signal is low (IO/M = 0

Define single valued and multivalued attributes, Define single valued and m...

Define single valued and multivalued attributes. Single valued attributes: attributes with a single value for a particular entity are known as single valued attributes. Mult

Need customer management program, Project Description: This is a Custome...

Project Description: This is a Customer Management project. Customer data is presented in a text file. The program can load this text data into its database columns. The data ma

Determine Which is not a consequence of concurrent operation, Determine Whi...

Determine Which is not a consequence of concurrent operations? Ans: Update anomaly.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd