logo

Database Module Assignment

13 Pages366 Words40 Views
   

Added on  2020-03-28

Database Module Assignment

   Added on 2020-03-28

ShareRelated Documents
Student ID –
Date -
Database Assignment
Module Tutor –
1 | P a g e
Database Module Assignment_1
Report
Queries
Q-1:
select INV_NUMBER, sum(LINE_TOTAL) as 'InvoiceTotal' from Line group by
INV_NUMBER;
2 | P a g e
Database Module Assignment_2
Q-2:
select V_Code 'VendorCode', V_Name 'VendorName', V_Contact 'VendorContact',
V_Areacode 'AreaCode',
V_Phone 'VendorPhone', V_State 'VendorState', V_Order 'VendorOrder' from vendor where
v_state is null;
3 | P a g e
Database Module Assignment_3
Q-3:
select Cus_Code 'CustomerCode', Cus_Lname 'CustomerLastName', Cus_Fname
'CustomerFirstName',
Cus_Initial 'CustomerInitial', Cus_Areacode 'AreaCode', Cus_Phone 'CustomerPhone',
Cus_Balance 'CustomerBalance'
from customer where cus_balance>200 and cus_balance<300;
4 | P a g e
Database Module Assignment_4

End of preview

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

Related Documents
Database Module | Assignment
|13
|332
|92

Database Assignment Module
|13
|375
|111

Database Module- Assignment
|13
|272
|56

Show Sums of Line Totals for Each Invoice
|6
|479
|147

Show sums of line totals for each invoice.. Query:.
|6
|460
|212

Structured Query Language (SQL) Assignment
|4
|451
|190