GoConqr has a new look! Let us know what you think.

Flashcards

Week 7 - SQL Part I

Melina Mackey Computer Science English 5 cards

Week 7 - SQL Part I

Cards in this deck (5)

  1. 1Anatomy of SELECT statementAnatomy of SELECT statement
  2. 2Predicates and search conditions- Comparison (=, <, >, <=, >=)
    - Range e.g. BETWEEN x AND y
    - Set membership e.g. IN (x, y, z)
    - Pattern match e.g. WHERE city LIKE 'M%', WHERE unit_code LIKE 'FIT20__'
    - IS NULL
  3. 3ANSI joins- ON e.g. ...FROM student JOIN qualification ON student.sno = qualification.sno
    - USING - requires matching attribute names e.g. ...FROM student JOIN qualification USING (sno)
    - NATURAL - requires matching attribute names e.g. FROM student NATURAL JOIN qualification
  4. 4Oracle DATE datatype- Stored in internal format as date and time - Julian date is as number => can use arithmetic
    - Output controlled by formatting
    e.g. SELECT to_char(sysdate,'dd-Mon-yyyy') FROM dual; SELECT to_char(sysdate,'dd-Mon-yyyy hh:mi:ss PM') FROM dual
  5. 5Oracle internal attributes- sysdate: current date/time
    – systimestamp: current date/time as a timestamp
    - user: current logged in user

Information

Description
Computer Science (FIT2094: Databases) Flashcards on Week 7 - SQL Part I, created by Melina Mackey on 06/11/2020.
Created by
Melina Mackey
Views
0
History
  • Created by Melina Mackey · Oct 19, 2020
  • Copied by Melina Mackey · Oct 25, 2020
  • Copied by Melina Mackey · Nov 1, 2020
  • Copied by Melina Mackey · Nov 6, 2020
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?