Alter the Charity table and specifically the store column so that it will only accept values of
Fantastic news! We've Found the answer you've been seeking!
Question:
Alter the Charity table and specifically the store column so that it will only accept values of 'YES' and 'NO' Name your constraint
charity_store_ck
The test for this SQL query will be verify the existance of your constraint
Transcribed Image Text:
WORKERS CUSTOMER_ORDER PeopleID: INTEGER [ PFK PeopleID: INTEGER [ PFK ] HireDate: DATE TermDate: DATE SSN: CHAR(12) CustomerSince: DATE CHARITY CharityID: INTEGER [ PK ] ARTIST Name: CHAR(20) Address: CHAR(30) City: CHAR(30) State: CHAR(2) Zip: CHAR(10) Phone: CHAR(12) ContactID: INTEGER [ FK ] PeopleID: INTEGER [ PFK ] PEOPLE TaxIDNum: CHAR(12) ArtistSince: DATE PeopleID: INTEGER [ PK] FirstName: CHAR(15) +LastName: CHAR(15) Address: CHAR(30) City: CHAR(30) State: CHAR(2) Zip: CHAR(10) Phone: CHAR(12) CellPhone: CHAR(12) Email: VARCHAR(50) PeopleType: CHAR(4) ORDER OrderID: INTEGER [ PK ] OrderDate: DATE CustomerID: INTEGER [ FK ]Eb EmployeeID: INTEGER [ FK ] DONATION DonationID: INTEGER [ PK ] DonationDate: DATE ddCharityID: INTEGER [ FK ] EmployeeID: INTEGER [ FK ] ARTIST_ITEM ORDER_ITEM OrderID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] DateAquired: DATE PurchasePrice: DECIMAL(5, 2) ITEM_DONATION DonationID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] Price: DECIMAL(5, 2) Value: DECIMAL(5, 2) ITEM ItemID: INTEGER [ PK ] ITEM_TYPE ITEM_PICKUP ItemTypeID: INTEGER [ FK ] Size: CHAR(15) MaxPrice: DECIMAL(5, 2) eMinPrice: DECIMAL(5, 2) OwnerID: INTEGER ItemTypeID: INTEGER [ PK ] ItemID: INTEGER [ PFK ] Name: CHAR(25) Description: CHAR(35) Date: DATE WORKERS CUSTOMER_ORDER PeopleID: INTEGER [ PFK PeopleID: INTEGER [ PFK ] HireDate: DATE TermDate: DATE SSN: CHAR(12) CustomerSince: DATE CHARITY CharityID: INTEGER [ PK ] ARTIST Name: CHAR(20) Address: CHAR(30) City: CHAR(30) State: CHAR(2) Zip: CHAR(10) Phone: CHAR(12) ContactID: INTEGER [ FK ] PeopleID: INTEGER [ PFK ] PEOPLE TaxIDNum: CHAR(12) ArtistSince: DATE PeopleID: INTEGER [ PK] FirstName: CHAR(15) +LastName: CHAR(15) Address: CHAR(30) City: CHAR(30) State: CHAR(2) Zip: CHAR(10) Phone: CHAR(12) CellPhone: CHAR(12) Email: VARCHAR(50) PeopleType: CHAR(4) ORDER OrderID: INTEGER [ PK ] OrderDate: DATE CustomerID: INTEGER [ FK ]Eb EmployeeID: INTEGER [ FK ] DONATION DonationID: INTEGER [ PK ] DonationDate: DATE ddCharityID: INTEGER [ FK ] EmployeeID: INTEGER [ FK ] ARTIST_ITEM ORDER_ITEM OrderID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] DateAquired: DATE PurchasePrice: DECIMAL(5, 2) ITEM_DONATION DonationID: INTEGER [ PFK ] ItemID: INTEGER [ PFK ] Price: DECIMAL(5, 2) Value: DECIMAL(5, 2) ITEM ItemID: INTEGER [ PK ] ITEM_TYPE ITEM_PICKUP ItemTypeID: INTEGER [ FK ] Size: CHAR(15) MaxPrice: DECIMAL(5, 2) eMinPrice: DECIMAL(5, 2) OwnerID: INTEGER ItemTypeID: INTEGER [ PK ] ItemID: INTEGER [ PFK ] Name: CHAR(25) Description: CHAR(35) Date: DATE
Expert Answer:
Related Book For
Posted Date:
Students also viewed these civil engineering questions
-
How is an event handler registered so that it will be called during the capturing phase?
-
A football player punts the football so that it will have a "hang time" (time of flight) of 4.5 s and land 46 m away. If the ball leaves the player's foot 150 cm above the ground, what must be the...
-
How would you modify the JukeBox program so that it will play the new song as soon as a combo box item is selected (without having to press the Play button)?
-
Given that a quantity Q(t) is described by the exponential growth function Q(t) = 400e0.01t where t is measured in minutes, answer the following questions. (a) What is the growth constant k? k = (b)...
-
Laser atomic fluorescence excitation and emission spectra of sodium in an air-acetylene flame are shown here. In the excitation spectrum, the laser (bandwidth 0.03 nm) was scanned through various...
-
Two stretched cables both experience the same stress. The first cable has a radius of 3.5 10-3 m and is subject to a stretching force of 270 N. The radius of the second cable is 5.1 10-3 m....
-
An explosion in an LNG storage tank in the process of being repaired could have occurred as the result of static electricity, malfunctioning electrical equipment, an open flame in contact with the...
-
Rework in job costing, journal entry (continuation of 18-35). Assume that the 5 spoiled units of Whitefish Machine Shops Job #10 can be reworked for a total cost $1,800. A total cost of $5,000...
-
To what extent does the principle of distributive justice, as expounded upon by theorists like John Rawls and Amartya Sen, reconcile the ethical imperative of egalitarianism with the pragmatic...
-
The trial balance of Racer Internet at March 31, 2012, follows: Adjustment data at March, 31, 2012 a. Unearned service revenue still unearned, $500. b. Prepaid rent still in force, $2,000. c....
-
If a sequence of function is convergent to a point ( lim) then the limit is unique
-
As we finish up this course, we would be remiss if we didn't take some time to look back on the time we've spent together as well as looking forward toward your respective futures. As you work on...
-
Hadley buys 7 boxes of markers with 8 in each box. Delaney buys 6 boxes of markers with 12 markers in each box. How many markers did Hadley and Delaney buy in all
-
1A. If personal income is the currently the same in two countries "Country Alpha" and "Country Beta," but Country Alpha has a faster annual growth rate in personal incomes, which country will have a...
-
In what ways can digital technology help brands interact directly with individuals and deliver personalized communications based on insights about individuals or groups of similar people? How are...
-
1. Donald Trump has criticized the imbalance in auto trade between the United States and Japan. Discuss his perspective. Why does the imbalance exist? Would typical trade policy tools such as tariffs...
-
A project has an overhead cost of 1140 per month, and a normal direct cost for the entire project of $8220 for a 12 month duration, and $9530 for the crashed costs for an 8 months duration. A penalty...
-
Reichenbach Co., organized in 2018, has set up a single account for all intangible assets. The following summary discloses the debit entries that have been recorded during 2018 and 2019. Instructions...
-
Explain two different ways of changing the speed of a movie.
-
Create and test an HTML document that describes an unordered list of at least four states. Each element of the list must have a nested list of at least three cities in the state.
-
In what directory are templates placed?
-
Calculate: (a) \(f=a /(b c)\), where \(a=2.34\mathrm{~mm}^{2}, b=54.26\mathrm{~m}\), and \(c=0.14\mu \mathrm{m}\); (b) \(g=k t^{3}\), where \(k=1.208\times 10^{-2}\mathrm{~s}^{-3}\) and...
-
Which of these is a hierarchical approach of subordination of individuals that work together and contribute to serve a common goal? Formal organization Informal structures Functional structure ...
-
A sound organization Prevents corruption Enhances creativity None of the above All of the above
Study smarter with the SolutionInn App