null
US
Entrar
Registre-se gratuitamente
Registre-se
Detectamos que o JavaScript não está habilitado no teu navegador. Habilite o Javascript para o funcionamento correto do nosso site. Por favor, leia os
Termos e Condições
para mais informações.
Próximo
Copiar e Editar
Você deve estar logado para concluir esta ação!
Inscreva-se gratuitamente
3597322
Databases
Descrição
This is a small mind map showing different queries and a bunch of questions i've encountered in tests
Sem etiquetas
database
computer science
sql
mysql
ict
gcse
Mapa Mental por
Alex Baine
, atualizado more than 1 year ago
Mais
Menos
Criado por
Alex Baine
aproximadamente 9 anos atrás
29
0
0
Resumo de Recurso
Databases
Test
Databases
What is meant by the term 'database'
A structured set of storage to hold data
Difference between flat-file and relational
Flat FIle
Contains a single set of data, a table
Relational
Contains multiple tables connecting via foreign keys and primary keys
Advantages
More organised, neater
Less physical storage needed
DBMS
Describe what is meant by a DBMS
A database management system provides an interface for the user
A DBMS allows the separation of applications from the data. Why is this important?
If you want to change the structure it won't affect the data
Tables
Explain the relationship between entities and tables
An entity is a single person, place or thing where data can be stored
Explain the difference between a primary key and a foreign key
A primary key keeps the value unique while a foreign key connects 2 tables
Advantages of electronic database
You can search for a specific item
Takes up less physical room
SQL
Describe what is meant by SQL in regards to databases
Structured Query Language is a language used to query your databases. You can add items, delete items and also search for items.
Queries
Table name: Members | 14343 | Fiona | Gibson | GF6 3KL | 07722 235678
Write an SQL statement to add this record to the database
INSERT INTO 'Members' WHERE('ID','FirstName','LastName','PostCode','PhoneNo') VALUES (14343, 'Fiona', 'Gibson','GF63KL',07722235678);
There has been a mistake in one of the data items in the table. Change the postcode to 'HF5 3SF'
UPDATE 'Members' SET PostCode = 'HF5 3SF' WHERE PostCode = 'GF63KL';
Extract all information in the FirstName and LastName fields
SELECT * FROM 'Members' (FirstName, LastName);
Validation, Verification and Data Integrity
State what is meant by the following terms.
Data Integrity
The answer that is expected
Validation
Check if answer is reasonable
Verification
Check if data is true
Describe the following methods of data validation
Presence check
Check if all information has been included
Range check
Check if answer exceeds maximum
Format check
Check if answer matches the data type
Queries
SELECT * FROM table_name;
Selects all data from 'table_name'
INSERT INTO table_name VALUES (val1, val2);
Inserts values into 'table_name'
UPDATE 'table_name' SET column1 = "value" WHERE column1 != "value";
Update 'table_name' where column1 doesn't equal 'value' and set it to 'value'
DELETE FROM table_name WHERE column1 = "Delete me!";
Delete where column1 is equal to "Delete me!"
Quer criar seus próprios
Mapas Mentais
gratuitos
com a GoConqr?
Saiba mais
.
Semelhante
FLAT FILE VS RELATIONAL DATABASE
rosiejones
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Networks
Will8324
General ICT Quiz
leahshaw
ICT Revison Flash Cards
Arun Johal
Online World - Learning Aim A
andysedge
Business Aims and ICT Strategies
scrt
User Interfaces
Skeletor
Data Types
Jacob Sedore
Explore a Biblioteca