SlideServe
Menu
Préférences
© SlideServe · v2026

Querying

justis avatar
8 diapositives · 236 Views · Jul 25, 2014

Querying. Querying. Its about asking questions of the database in order to get some results The are 4 different types of queries that we can run. Different query types SELECT UPDATE INSERT DELETE (use with care!!). SELECT.

Querying - slide 1
01 / 8Querying
1 / 17

Télécharger la présentation

Querying
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Querying

  2. Querying • Its about asking questions of the database in order to get some results • The are 4 different types of queries that we can run Different query types • SELECT • UPDATE • INSERT • DELETE (use with care!!)

  3. SELECT This query is one which will bring data back from the database, so you’re able to use the information SELECT * FROM tableName WHERE x=y Returned Results

  4. INSERT This query allows you to add new records into the database table Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) INSERT INTO tableName(column1, column2, column3)VALUES (value1, value2, value3) Returned Results

  5. Challenges Bronze Select all of the information out of the film table Silver Select on the data from the film table where the rating is equal to 15 Select the data from the directors table where the director is from the USA. Gold Insert another three films into the film table but the films director must be James Cameron or Frank Darabont. You will also have to insert the Directors into the directors table Any SELECT results need to be screen printed and then put into a word document as results.

  6. Update This query allows you to update record(s)in the database table Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) UPDATE table_nameSET column1=value, column2=value2WHERE some_column=some_value Returned Results

  7. WARNING Be VERY careful when using the delete function Delete This query allows you to delete record(s)in the database table Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) DELETE FROM tableNameWHERE some_column = some_value Returned Results

  8. Challenges Bronze There has been a mistake in data that has been entered, and the wrong certification has been awarded to The Dark Knight, it’s now a 15 Silver Das Boot and The good the bad and the ugly need to be removed, update the list to show this Gold Come up with a could of queries of your own, and don’t forget to screenshot them and paste them into your word document.