Question: Make a SQL from below and the descriptions for each SQL using the tables given below 1. Show Referential Integrity has been establish. (Eg. Try
Make a SQL from below and the descriptions for each SQL using the tables given below
1. Show Referential Integrity has been establish. (Eg. Try deleting something that is
already ordered)
2. Join several tables together.
3. Show several layers of Nested Query.
4. Make a View (Eg. with new heading).
5. An SQL with several compounded conditions.
6. Using the functions such as (Sum, Count, Avg, Max, Min) together with a Group by
Clause.
7. Show the use of Having Clause.
8. Using Aliases.
9. Changing the output titles produce (maybe use || ).
Tables_in_yngah | | CUSTOMER | EMPLOYEE | ITEM | ORDERLINE | ORDERS 5 rows in set (0.000 sec) MariaDB [yngah]> SELECT * FROM CUSTOMER; | CUSTNUM | CUSTFNAME | CUSTLNAME | PHONE | 91810 | LEE |93010 | BILL 94410 | FULTON | 96410 I AL | 99710 JAMES | | | CARL | RAVEN | BROWN SMITH JAKE 5 rows in set (0.000 sec) -+ | 51010 | BRYCE DER I | 52020 | MACY DER I | 53030 | DANNA DER I || 54040 | FROST LIVERY I | 55050 | RAUL LIVERY | +-+ MariaDB [yngah]> SELECT FROM EMPLOYEE; | EMPID | EMPLNAME | EMPFNAME | EMPPHONE PTYPE I | PRESTON | TANNER I VO | KERR | YANG --+ 5 rows in set (0.000 sec) | EMAIL | 423-456-8564 | LEE @GMAIL.COM | 64 SAMSUNG STREET | 141-755-6438 | BILL@GMAIL.COM | 85 CART STREET | 633-123-6151 | FULTON@GMAIL.COM | 71 GROVE STREET | 643-123-9234 | AL@GMAIL.COM | 67 CRYSTAL STREET | 123-456-8888 | JAMES@GMAIL.COM | 12 JUMP STREET | DELIVERYSTREETADDR | STATE | CITY | MIAMI | 17412 | | SAN DIEGO | 73522 | NASHVILLE | 84324 | BUFFALO | 31340 | | MACON | 31610 | | EMPEMAIL | EMPSTREETADDR | EMPSTATE | EMPCITY | 233-473-4561 | BRYCE @GMAIL.COM | 92 MARY STREET | 546-123-6523 | MACY@GMAIL.COM | 82 DELLA STREET | 413-766-1345 | DANNA@GMAIL.COM | 17 KATE ROAD | 623-412-6218 | FROST@GMAIL.COM | 12 BOSTON STREET | NY | 723-464-6534 | RAUL@GMAIL.COM | 24 LENNON LANE | TN I GA | FL | FL | CA | TN | NY | GA | CA | MACON | MIAMI IZCODE I | EMPZCODE | EMPHOURRATE | EM | 31610 | 17412 | SAN DIEGO | 73522 | BUFFALO | 31340 | NASHVILLE | 84324 I I I |--- 31.00 | OR 34.00 | OR 33.00 | OR 29.50 | DE 32.50 | DE
Step by Step Solution
There are 3 Steps involved in it
With the information and screenshots provided I can construct various SQL queries that perform the requested actions Here they are 1 Show Referential Integrity has been established sql DELETE FROM ITE... View full answer
Get step-by-step solutions from verified subject matter experts
