Solution:
The first four subparts have been answered as per Chegg guidelines, please repost others.
1)
SELECT description, MIN(P_QOH), unitPrice FROM Product. WHERE unitPrice<'10.00'
2)
SELECT description, MIN(P_QOH), P_INDATE FROM Product. WHERE P_INDATE >'January 20, 2012'
3)
SELECT description, P_QOH, unitPrice, SUM(unitPrice) AS TOTValue FROM Product.
4)
SELECT prdoductID, recieveDate, (recieveDate+90) AS ExpDate FROM Product.
5)
SELECT productID FROM Supply WHERE vendorNumber= '21344' OR vendorNumber= '24288'
6)
SELECT description, P_INDATE, price, date FROM Product WHERE (P_INDATE> 'January 15 2015' AND price<'50') OR vendorNumber= '24288'
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Answer all questions on paper: Consider the database model below The database model FIGURE 7.1 CUSTOMER...
Creating SQL Queries: IUCT 1SOMER P DESCRIPT P INDATE P.0OH P MN p RCE P DISCOUNT as DE CUS LNAME Cus ANAME aus INITIA auS AREACODE CuS PHONE CUs BALANCE VENDOR UNE V NAVE V CONTACT V AREACCDE V PHONE V STATE V ORDER INVOCE INV NUMEER CUS CODE INV DATE TNE NUMEER P 00DE UNE UNITS UNE PRICE MROME BMP NIM MP TITLE EMP LNAME BMP RNAME eMP INITIAL BMP DCB EMP HIRE DATE EMP AREACODE EMP PHONE CREATE...
2. Find the maximum QOH of all products. it generates INVOICE PK IN NUMBER FK1CuS_CODE INV_DATE contains CUSTOMER PK CUS_CODE CUS_LNAME CUS FNAME CUS INITIAL CUS AREACODE CUS PHONE CUS_BALANCE + LINE PKFK1 INV_NUMBER +PX LINE NUMBER FK2 P CODE LINE_UNITS LINE_PRICE is found in VENDOR PKY_CODE V_NAME CONTACT HF - Supplies PRODUCT PK ecoot P_DESCRIPT P_INDATE P QOH P_MIN P PRICE P_DISCOUNT FK1V_CODE V_AREACODE V_PHONE V_STATE V_ORDER
We will use a simple database composed of the following tables: CUSTOMER, INVOICE, LINE, PRODUCT, and VENDOR. This database model is shown in Figure 1. The database model in Figure 1 reflects the following business rules: - A customer may generate many invoices. Each invoice is generated by one customer. - An invoice contains one or more invoice lines. Each invoice line is associated with one invoice. - Each invoice line references one product. A product may be found in...
DML: Illustrative DataBase Column DataType SizeDecimal Domain PK? FK? Positions PRODUCT LINE PCODE PDESCRIPT Character1-35 Character 8 P INDATE Date P ONHAND Numeric P MIN P PRICE P DISCOUNT Numeric V CODE Numeric601000000 VENDOR PRODUCT Valid date Numeric Numeric z 0 0.00 & s 1.00 V NAME Character 1-35 V CONTACT Character 1 2 V AREACODE Numeric V PHONE Numeric Character Character 100 & 5 999 e 1010000 Alphabetic Y. 'N V ORDER Questions Given the metadata above for columns...
Need to find the partial and transitive dependencies of the following fields: cust_code = code that identifies a customer cus_lname = customer last name cus_areacode = area code of the 7 digit phone number of a customer cus_initial = customer initials cus_balance = balance to be paid by the customer cus_phone = 7 digit phone number cus_fname = customer first name inv_number = number representing an invoice inv_date = date of the invoice line_number = an invoice contains many items...
What would I have to write into the MySQL Workbench query to execute these commands? - Show all vendor information with vendor contact information in upper case like "SMITH". - Show the customer balance in total, in average, in minimized and in maximized value. - Show all customer information whose balance is greater than $500. - Aggregate the total cost of products grouped by V_CODE, and only show the records with total exceeds $500, and list the records in descending...
Consider the following relations. Product: (Product#, p-description, p-indate, p-price) Vendor: (V-code, v-name, v-address) Purchase: (Product#, V-code, date) Write an SQL query to list the prices of the products that were purchased on 9 December 2019
Please highlight was is needed. I have completed # 2, 6, and I beleive 7. Everything related to show 7 needs to be highlighted purple which was everything with capital letters needs to be highlighted purple which I have done. The yellow highlight shows all the empty lines which are highlighted already as well. If I could get the rest done that would be great. 1. All SQL scripts should be written to execute in a SQL Server 2016 database....
this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...
this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...