Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Say we have a table named TradingBook with fields: TradeId, CounterpartyID, BuyorSell, Ticker, PriceDealt, and NumberOfShares, and a table named Counterparties with fields: CounterpartyID, LongName,

image text in transcribed

Say we have a table named TradingBook with fields: TradeId, CounterpartyID, BuyorSell, Ticker, PriceDealt, and NumberOfShares, and a table named Counterparties with fields: CounterpartyID, LongName, and Country. None of these fields is allowed to be missing in the database and the primary key for each of these tables is the first field. (e) Write the CREATE TABLE SQL instruction that creates the second table. You are free to choose details such as data type but make sure you make meaningful choices. (f) Write the CREATE TABLE SQL instruction that creates the first table ensuring you create a relationship between it and the second table. (g) Write a SQL instruction that displays all the trade information (TradeId, CounterpartyID, Buyor Sell, Ticker, PriceDealt, and NumberDfShares) for all trades with counterparties domiciled in Bahamas (Country $=$ 'Bahamas'). CS.VS.946||

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

How would you describe your typical day at work?

Answered: 1 week ago