logo

SQLite Assignment

   

Added on  2023-03-31

9 Pages851 Words184 Views
Running head: SQLITE ASSIGNMENT
SQLite Assignment
Name of the Student
Name of the University
Author’s note:
SQLite Assignment_1
1SQLITE ASSIGNMENT
Part A:
Query 1: select vendor.V_CODE, V_NAME, COUNT(P_CODE) AS
NumberOfProducts
From vendor
Inner Join product
On vendor.V_CODE = product.V_CODE
Group By vendor.V_CODE;
Query 2: Select CUS_LNAME, ROUND(SUM(INV_TOTAL), 2) as
Total_invoice_value
From customer
inner join invoice
on customer.CUS_CODE = invoice.CUS_CODE
SQLite Assignment_2
2SQLITE ASSIGNMENT
group by customer.CUS_CODE;
Query 3: Select CUS_LNAME, Count(INV_TOTAL) as Num_Of_Invoices
From customer
inner join invoice
on customer.CUS_CODE = invoice.CUS_CODE
group by customer.CUS_CODE;
Query 4: Select LINE_UNITS, ROUND(SUM(LINE_PRICE), 2) as 'Total unit price'
from line
Group by LINE_UNITS;
SQLite Assignment_3

End of preview

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

Related Documents
Relational Database Management System
|13
|1054
|113

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

Database Module- Assignment
|13
|272
|56

Research and SQL Queries
|11
|831
|352

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

Database Assignment Module
|13
|375
|111