Docsity

SQL Assignment from KICSIT - HCI Lab, Study notes of Database Management Systems (DBMS)

Toggle sidebar
bg1
Dr. A. Q. Khan Institute of Computer Sciences and Information Technology (KICSIT)
(HCI LAB)
Assignment 1 (13 March 2020)
The last date of the assignment: 19 March 2020
Instructions:
- Submit the assignment in hard copy
- Use Chapter no. 3 of book for reference, all the study material is available there.
- Late assignments will not be submitted.
- For any further queries leave a private comment at google classroom (nrevyq5)
1. What are the two types of SQL functions? Define and give examples
2. What are character functions and case manipulation functions?
3. What is implicit and explicit data conversion?
4. What arithmetic operations can be performed with dates?
5. What is the purpose of the following character manipulation functions:
Function Purpose Example query
LOWER(column|expression)
UPPER(column|expression)
INITCAP(column|expression)
CONCAT
SUBSTR
LENGTH
INSTR
LPAD
RPAD
TRIM
REPLACE
pf3

Partial preview of the text

Download SQL Assignment from KICSIT - HCI Lab and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

Dr. A. Q. Khan Institute of Computer Sciences and Information Technology (KICSIT)

(HCI LAB)

Assignment 1 (13 March 2020)

The last date of the assignment: 19 March 2020

Instructions:

  • Submit the assignment in hard copy
  • Use Chapter no. 3 of book for reference, all the study material is available there.
  • Late assignments will not be submitted.
  • For any further queries leave a private comment at google classroom (nrevyq5)
    1. What are the two types of SQL functions? Define and give examples
    2. What are character functions and case manipulation functions?
    3. What is implicit and explicit data conversion?
    4. What arithmetic operations can be performed with dates?
    5. What is the purpose of the following character manipulation functions: Function Purpose Example query LOWER( column|expression ) UPPER( column|expression ) INITCAP( column|expression ) CONCAT SUBSTR LENGTH INSTR LPAD RPAD TRIM REPLACE
  1. What is the purpose of the following character number functions: Function Purpose Example query ROUND TRUNC MOD
  2. What is the purpose of the following general functions: Function Purpose Example query NVL NVL NULLIF COALSECE CASE NVL
  3. What is the purpose of the following conversion functions: Function Purpose Example query TO_CHAR TO_NUMBER TO_DATE
  4. Write Queries for the following problems: a. Write a query to display the current date