Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Create a table called Money with the following fields and constraints. a. mid: int primary key auto_increment, code varchar(50) unique, cid: int, sid: int,

SQL

Create a table called Money with the following fields and constraints. a. mid: int primary key auto_increment, code varchar(50) unique, cid: int, sid: int, type: char(1), amount: float, mydatetime: datetime, note: varchar(255) b. All fields cannot have NULL values, except note. c. type should have only two values D: deposit, W: withdraw d. mid is the primary key, and the value should be auto increment by the DBMS. e. cid is a foreign key references to the id field in CPS3740.Customers table. f. code should be unique. g. sid is a foreign key references to the id field in CPS3740.Sources table

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

Step: 3

blur-text-image

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

Students also viewed these Databases questions

Question

1. What might have led to the misinformation?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago