O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

130 SQL Revision

Shez F Computer Science a-level Inglês 38 flashcards

Flashcards do conjunto (38)

  1. 1DatabaseOrganized collection of data for one or more purposes. Usually in a digital format. Who needs paper back databases. We're not in the Stone age. iStone 4s
  2. 2Data StructureHow information is structured in a database
  3. 3Data ManipulationMethods which data can be operated on.
  4. 4Data IntegrityMethods to enforce relationships within and between tables.
  5. 5Data IntegrityControls what can and cannot be done in a database.
  6. 6Domain IntegrityRestricts values in columns.
  7. 7Entity IntegrityControls rows in tables. For example; no two rows cannot be equal.
  8. 8Referential IntegrityMaintains relationships between tables.
  9. 9KeysRepresent an attribute that can be used to sort or uniquely identify tuples in a relation
  10. 10Primary KeyUniquely identify tuples in a relation
  11. 11Foreign KeyCross-reference data between relations.
  12. 12Candidate KeyFor any tuple in the relation, you need to have values in which uniquely identify that tuple.
  13. 13Properties of a Primary KeyCannot be Null
    Has to be Unique
    Each relation must have a primary key
    Using a primary Key ensures entity Integrity
  14. 14Properties of a Foreign KeyA key which identifies a key in another table is called the parent key
  15. 15INSERTAdding rows into a table
    INSERT INTO cunts VALUES (69, "Alex", "Stout");
  16. 16WHEREConditional clause. Allows us to choose from specific values in a table
  17. 17UPDATEWhere you want to change a specific field with in a table.
  18. 18DELETEDeleting records or fields based on the condition(if any).
  19. 19SELECTCan retrieve results from a table in a database
  20. 20SELECT *Selecting all records within a specific table
  21. 21SELECT DISTINCTWill remove any duplicates in the records in which you are trying to return
  22. 22INExplicitly allows values with in a table.
    SELECT name FROM emp WHERE city IN "Manchester";
  23. 23BETWEENDefined a range of values in which are defined.
    BETWEEN (lowestValue) AND (highestValue);
  24. 24LIKEAllows a search in pattern for the operator
    WHERE city LIKE "Man%"
  25. 25ANDIn order for something to return true, all conditions in which are specified must return true
  26. 26ORIn order for something to return true, any conditions in which are specified must return true.
  27. 27ORDER BYOrdering returned values in a specific Order
    ASC = Lowest > Highest
    DESC = Highest > Lowest
  28. 28LIMITLimiting how many results you want to return on your statement.
  29. 29GROUP BYLets you use aggregate functions on a specific row/coloumn
  30. 30Cartesian ProductReturns all possible values. SELECT *
    This isn't good btw.
  31. 31INNER JOINSIs a Cartesian product with a condition.
    Combining two tables, returning only the rows which satisfy some condition
  32. 32Natural JoinsCan be used if the two attributes of the join condition have the same name
  33. 33LEFT (OUTER) JOINUsing an inner join means some tuples are lost. Consider joining Tables A, B. Left join retains all the lost records of A
  34. 34RIGHT (OUTER) JOINRetains all the records for B
  35. 35FULL (OUTER) JOINRetains all possible records
  36. 36UNIONCombines the result set of two or more select statements
  37. 37IntersectionThe intersection of two sets; A, B. Will only return values which have the same values in each set
  38. 38EXCEPTWhen you want to find all the values in one set that does not appear in another

Informações

Descrição
SCC 130 Information Systems Revision SQL
Criado por
Shez F
Visualizações
5
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?