Generate the tables attach the primary key and foreign key

Assignment Help Computer Engineering
Reference no: EM132903

Question

Customer
ID (Number) Name (Varchar)
10001 Akash Kumar
10002 Vijay Chopra
10003 Rahul Mishra

Transactions

ID (Number) CUST_ID(Number) STOCK_SYM(varchar) TYPE(varchar) QTY(Number)
1 10001 UNITECH BUY 100
2 10003 UNITECH SELL 200
3 10001 DLF BUY 500
4 10001 DELTA BUY 450
5 10002 DLF BUY 110


1. Generate the tables exposed above and use the data types mentioned in the column headers. The underlined columns in every table are the primary keys for that table. CUST_ID in transactions table is foreign key and references ID in Customer table. Please attach the primary key and foreign key constraints as well.

2. Populate table with the data shown above.

3. Show all the stocks, their quantity and the quantity invested in those stocks for ‘Akash Kumar' (You don't know his customer ID)

 

Reference no: EM132903

Questions Cloud

Generate a work breakdown structure code : Generate a Work Breakdown Structure Code
Generate a class name that starts with string variable : Generate a class Name that starts with string variable
Create a shadow on phrase html5 canvas : Create a shadow on phrase "HTML5 Canvas"
Accessing and reading a mouse : Accessing and reading a mouse
Generate the tables attach the primary key and foreign key : Generate the tables attach the primary key and foreign key
List the steps involved for conducting a job analysis : List the steps involved for conducting a Job Analysis Define Job Analysis and describe the uses of Job Analysis in a HRM context
Program of five to ten lines in assembly language : Program of five to ten lines in assembly language
Program for dissimilar values for real numbers : Program for dissimilar values for real numbers
Identify and discuss four characteristics of events : Identify and discuss four characteristics of events Using as example an event of your choice, elaborate on the benefits the event brings, in social and economic terms

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a white paper based on knowledge

Create a white paper based on knowledge

  Explain the method to create a scheme for vb mail order

Explain the method to create a scheme for VB Mail Order

  Program on matrix

Program on matrix

  Encipher a message using a keyword

The first program will encipher a message using a keyword and second program will decipher a message using a keyword.

  Design a dedicated datapath

Design a dedicated datapath

  What devices use to get efficient network communication

CNT Books has expanded considerably as you first got network up and running three years ago. It at the present occupies an entire floor in building, and its LAN has full-grown to contain several servers and more than 60 workstations.

  Bourne shell and design suitable functions

Bourne shell and design suitable functions

  Ip cameras to improve security for devry university

IP cameras to improve security for DeVry University.

  How to classify emerging technologies

How to classify emerging technologies Inscribe obviously and succinctly about information management systems using proper writing mechanics.

  Write a function called is_anagram

Write a function called is_anagram.

  Which references source page fault with lru page replacement

Which references source a page fault with LRU page replacement policy? Illustrate your intermediate working in table below with three columns.

  How to suggest a solution for the scenario of warehouse

How to Suggest a solution for the scenario of warehouse? Assume that the company has accumulated 20TB of data and that 20 percent per year growth is expected in size of Data Warehouse. Suggest a solution for this scenario with respect to software,..

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