Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Pubs (or Pubs2) sample tables to create SQL statements (1 per question) to accomplish the following (command and output required): List the first
Diagram of the pubs2 database This diagram shows the tables in the pubs2 database and some of the relationships among them. Figure A-1: Diagram of the pubs2 database TITLE AUTHOR au_ord royaltyper N au_id 1 au_id AUTHORS au_Iname au_fname phone address city state country postalcode 1 au_id 1 1 au_id AU PIX pic format_type bytesize title_id title_id N 1 BLURBS pixwidth_hor pixawidth_vert au_id au_id copy TITLES title type pubold price advance total_sales notes pubdate contract 1 N SALESDETAIL ord num qty discount N stor_id 1 DISCOUNTS discounttype stor_id sto: lowaty highqty discount title_id title_id title_id title_id 1 pub_id pub_id N N1 stor_id stor_id N stor_id stor_id lord_num ord_num 1 ROYSCHED lorange hirange royalty PUBLISHERS pub pub_name city state SALES stor id N and num date stor_id 1 STORES city state stor_id stor_name stor_address country postalcode payterms
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started