Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

PostgreSQL Quiz

@PostgreSQL Night 2014-09-12

Livres associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir
  • Soyez le premier à commenter

PostgreSQL Quiz

  1. 1. PostgreSQL Quiz Fujii Masao (@fujii_masao) PostgreSQL Night 2014.09.11
  2. 2. Q1. How many rows can this query return? =# SELECT * FROM hoge WHERE id = (random() * 100)::int % 2; Precondition: there is the following table "hoge" having two rows. =# SELECT * FROM hoge; id ---- 0 1 (2 rows) Please choose every possible answers! (A) 0 row (B) 1 row (C) 2 rows (D) 3 rows
  3. 3. Q1. How many rows can this query return? =# SELECT * FROM hoge WHERE id = (random() * 100)::int % 2; Precondition: there is the following table "hoge" having two rows. =# SELECT * FROM hoge; id ---- 0 1 (2 rows) Please choose every possible answers! (A) 0 row (B) 1 row (C) 2 rows (D) 3 rows Correct answers are (A), (B) and (C)
  4. 4. Q2. Which queries can run successfully on PostgreSQL 9.4? Precondition: there is the following table "hoge" having two rows. =# SELECT * FROM hoge; id ---- 0 1 (2 rows) Please choose every possible answers! (A) SELECT; (B) SELECT hoge; (C) FROM hoge; (D) TABLE hoge;
  5. 5. Q2. Which queries can run successfully on PostgreSQL 9.4? Precondition: there is the following table "hoge" having two rows. =# SELECT * FROM hoge; id ---- 0 1 (2 rows) Please choose every possible answers! (A) SELECT; (B) SELECT hoge; (C) FROM hoge; (D) TABLE hoge; Correct answers are (A) and (D)
  6. 6. Thank you!

×