logo

SQL/PSQL Fundamentals - Desklib

   

Added on  2023-06-10

19 Pages812 Words53 Views
Running head: SQL/PSQL FUNDAMENTALS
SQL/PSQL Fundamentals
Name of the student:
Name of the University:
Author note:

1
SQL/PSQL FUNDAMENTALS
Table of Contents
Task 1...............................................................................................................................................2
Task 2...............................................................................................................................................4
Task 3...............................................................................................................................................8
Task 3.............................................................................................................................................12
Task 4.............................................................................................................................................17

2
SQL/PSQL FUNDAMENTALS
Task 1
1. Creating a query (Display all customer records)
SELECT * FROM CUSTOMER;
2. Limiting the number of outputs (Display only first 2 customer records)
SELECT * FROM CUSTOMER WHERE ROWNUM <= 2;

3
SQL/PSQL FUNDAMENTALS
3. Sorting a table
Ascending Order Sort
SELECT * FROM CUSTOMER
ORDER BY CUST_ID ASC;
Descending Order sort
SELECT * FROM CUSTOMER
ORDER BY CUST_ID DSC;

End of preview

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

Related Documents
Structured Query Language - PDF
|9
|1603
|187

Desklib Study Material with Solved Assignments, Essays, Dissertations
|29
|902
|306

The Operations Rejected by the System
|7
|1034
|382

SQL Server Management Studio | Report
|8
|925
|12

Assignment on Database SQL Query
|3
|324
|11

SQL Database in Decision Making
|17
|987
|178