Unit 9 : SQL ( Part 1 ) Flashcards
1
Q
List out 2 broad categories of SQL Functions
A
- Data Definition Language ( DDL )
- Create Database, Tables, Indexs and Views
- Define access rights to those database objects
- Data Manipulation Language ( DML )
- Commands to insert, update, delete and retireve data within database tables
2
Q
How many words does basic command set has ?
A
- Less than 100 words
3
Q
Who prescribes a standard SQL?
A
- American National Standards Institute ( ANSI )
4
Q
Will there be several SQL dialects exists ?
A
- Yes
5
Q
List out 2 tasks must be completed before creating a database?
A
- Create database structure
- Create tables that will hold end-user data
- RDBMS creates physical files that will hold database
- RDBMS tends to differ from one to another
6
Q
What is schema?
A
- Group of database objects , such as tables and indexes that are related to each other
7
Q
How does Authentication process through DBMS? ( 2 )
A
- Verifies taht only registered users are able to access database
- Log on to RDBMS using user id and password created by database administrator
8
Q
What is data type selection is usually dictated by ?
A
- Nature of data and by intended use
- Need to pay close attention to expected use of attributes for sorting and data retrieval purposes
9
Q
What uses DECIMAL (L,D) for data types?
A
- Price
10
Q
What use INTEGER for data types?
A
- Whole numbers
11
Q
List out 2 data types for Character
A
- CHAR(L)
- VARCHAR(L) or VARCHAR2(L)
- Oracle users may use VARCHAR2 as well as VARCHAR
12
Q
List out 4 data types for Character
A
- NUMBER(L,D)
- INTEGER
- SMALLINT
- DECIMAL(L,D)
13
Q
List out data types for date
A
- DATE
14
Q
What specification does Primary Key contains ? ( 2 )
A
- NOT NULL
- UNIQUE
15
Q
What will RDBMS do after creating Primary Key?
A
- Automatically enforce referential integrity for foreign keys