Level 3: The Riddler
“Riddle me this, riddle me that.” The ability to ask the right question can unlock as much information as you can handle, and in some cases more than you ever want to know. However, just asking questions isn’t enough, since in order to have questions answered, there must be data present in the first place. Being able to generate data and then know that it is safe for future use is vital, since you never know when some scrap of information might be useful in your next caper project.
“Riddle me this, riddle me that.” The ability to ask the right question can unlock as much information as you can handle, and in some cases more than you ever want to know. However, just asking questions isn’t enough, since in order to have questions answered, there must be data present in the first place. Being able to generate data and then know that it is safe for future use is vital, since you never know when some scrap of information might be useful in your next caper project.
- What does ‘INSERT’ do?
- What does ‘DROP’ do?
- What is the difference between T-SQL and PL/SQL?
- What does ‘UPDATE’ do?
- Why do database servers benefit from a lot of memory, and why do 64-bit operating systems help in this regard?
- Why is it a bad idea to run a test on a live database?
- Why is it difficult to use standard file by file backup methods on an active database server?
This problem is twofold. First, many database servers place locks on database
files that are currently in use. Most backup programs that try to do a file-by-file
backup will therefore be unable to create a copy of this file, as they cannot get
exclusive permissions to it. Second, while some database servers have only a
single file to backup a database, others have multiple files that can be stored in
different locations across possibly multiple physical hard disks. The problem can
be resolved in one of two potential ways. First, using the backup method within
the database server itself. Some programs such as Microsoft SQL Server allow
you to create a scheduled backup directly within the server application to a
location of your choosing. Others require you to use a scheduled task or another
on-demand type of backup solution. The second would be to use a backup
application that can talk directly to the database server, allowing the database to
be backed up using a different technique.
- When would you use an offline backup method versus an online backup?
- What is Replication?
- Is data in databases encrypted by default?
Level 4: The Librarian
Data Organization is critical to being able to navigate through large numbers of
tables and much larger quantities of data. Being able to look ahead to potential
applications and create and optimize tables in a way that allows them to grow
without having to rebuild them entirely can help save many hours of hassle.
Bananas are still optional and still tasty.
Data type Range Storage
- What is the difference between a ‘TINYINT’, an ‘INT’ and a ‘BIGINT’?
Data type Range Storage
bigint -2^63(-9,223,372,036,854,775,808)to2^63-1
(9,223,372,036,854,775,807) 8 Bytes
int -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) 4 Bytes
tinyint 0 to 255 1 Byte
int -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) 4 Bytes
tinyint 0 to 255 1 Byte
- How would you store files within a database?
- When would you use ‘char’ versus ‘varchar’?
- What is XML?
- What shows that a database server is running?
- What is WYSIWYG?
Creating an interface to a database that is not only functional but also looks nice
is a trick in itself, and can take a lot of work to get it just right.
- Why is it frowned upon to use ‘SELECT * ..’ in a large database?
- How would you get the quantity of results from a query?
- What is a Database Schema?
- What are Nested Queries?
No comments:
Post a Comment