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 Number Of Shares, and a table named Counterparties with

 

Say we have a table named TradingBook with fields: TradeId, CounterpartyID, BuyOrSell, Ticker, PriceDealt, and Number Of Shares, 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, Buy OrSell, Ticker, PriceDealt, and Number Of Shares) for all trades with counterparties domiciled in Bahamas (Country='Bahamas'). [

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

Starting Out With Java From Control Structures Through Data Structures

Authors: Tony Gaddis

6th Edition

0133957055, 978-0133957051

Students also viewed these Programming questions

Question

1. Describe qualitative research and its assumptions.

Answered: 1 week ago