Quiz Questions Flashcards
(44 cards)
In access you can save a definition of an import to be used again, oui or non
Oui this is true!!!
In access an id column is always the primary key and cannot be removed. True or false
False
In access the column you create an index on must have unique values, yes or no?
Negative
Sql stands for
Structured query language
T or f: in sql server, the order of the column is very important and is reflected in how they are physically stored.
False!
In both access and sql every table MUST have a unique column that is the primary key!
Absolutely
What is the name of a join that only the same values are placed in the joining column?
Inner join
A table with 19 columns tagged as a BIT uses __________ space to store them.
Is it 1, 2, 3, or 4 bytes
3
The char data type uses _______ bytes per character?
One
Var char data type uses _________ per charactor. Is it:
1 byte? 2?
1 byte with 2 bytes for overhead
Or 2 bytes with 2 bytes for overhead
1 byte with 2 bytes for overhead
Nvarchar data type uses ______ per character
1 byte? 2?
1 byte with 2 bytes for overhead
Or 2 bytes with 2 bytes for overhead
2 bytes with 2 bytes for overhead
To remove a table from the database you use the\_\_\_\_\_\_\_\_\_\_\_ sql statement. Is the answer: delete Alter Drop Or remove
Drop
To remove a row from a table you use the\_\_\_\_\_\_\_\_\_\_\_ sql statement. Is the answer: delete Alter Drop Or remove
Delete
The alter command only works on databases and not tables?
False
There can only be one database per sql instance
Negative
All column take up the same space on a database
False
File groups are used to? Ensure each database is unique Control where the tables are stored Help keep the names straight File groups arent part of sql
Control where the files are stored
When you try to insert a record between two existing record and there is no room on the page then:
A) new page is used and pointers are put in place
B) page is split evenly and the record is inserted
C) an error is issued
D) the database is reorganized
page is split evenly and the record is inserted
Tables can be created using (chose all that apply) A) ssms B) t-sql C)dos D)java
A) ssms
B) t-sql
A database must have at least one file group?
Yes? No?
Correct
Databases can only have one file group!
Yes? No? Maybe so?
No they can have many
Database files must be on the same device and cannot be spread over other devices!
True or false?
False
There is only one log file for each file group within a database?
Yes or no?
No
When using two physical drives, it is recommend that the production database be:
A) on the same drive as the log file
B) on a different drive than the log file
C) spread across both drives
D) be on a drive that is tune for high write and slow reads
on a different drive than the log file