logo

Research and SQL Queries

   

Added on  2023-04-03

11 Pages685 Words73 Views
Assessment Item 4
Research and SQL Queries
Student ID:
Student Name:
5/26/2019
Research and SQL Queries_1
Report
Part A
Query 1
select vend.v_code, vend.v_name, count(pr.p_code) as number_of_products from vendor vend inner
join product pr on vend.v_code=pr.v_code group by vend.v_code, vend.v_name;
Research and SQL Queries_2
Query 2
select custm.cus_lname, sum(invc.inv_total) as 'Total_invoice_value' from customer custm inner join
invoice invc on custm.cus_code=invc.cus_code group by cus_lname;
Research and SQL Queries_3
Query 3
select concat(custm.cus_fname,' ' , custm.cus_lname) as CustomerName , count(invc.cus_code) as
'NumberOfInvoices' from customer custm inner join invoice invc on custm.cus_code=invc.cus_code
group by cus_fname, cus_lname;
Research and SQL Queries_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
NoSQL Database: Types and Uses
|9
|848
|395

NoSQL Database: Key-Value, Document-Based, Column-Based, Graph-Based
|11
|689
|420

Research and SQL Queries
|11
|690
|285

Research and SQL Queries
|10
|692
|446

Research and SQL Queries
|11
|831
|352

Relational Database Management System
|13
|1054
|113