top of page

Week 1: Tables

Which of the following statements are true about heap organized tables?
Which of the following are valid types of table in Oracle Database?
Which of the following table types can you use to place some physical order on your data?
Which of the following choices will create a table?

Week 2:Columns and Data Types

Which of the following data types store numeric data in Oracle Database?
You can use a DATE data type to store time zone information
Which of the following data types can you use to store character data (strings)?
Which of the following choices create the table toys with a varchar2 column?

Week 3:Data Modeling

What should you consider when deciding which table and column to store your facts in?
Document based storage prevents data inconsistencies?
A fully normalized database using the relational model stores each fact once
You're building a book catalogue for a library. A colleague has proposed the following table to store these details: create table books ( book_title varchar2(100), pulication_date date, author_name varchar2(100) ); What are the disadvantages of storing the author's name on the book table?

Week 4: Foundations: Tables, Columns and Modeling Review

Quiz Which of the following table types allow you to store private data for a session?
Which of the following statements are true about index-organized tables (IOTs)?
Which of the following data types can you use to store binary data?
You're building a website for a vehicle retailer. It sells cars and vans. For both cars and vans, the application needs to store and display their: registration number price mileage You're creating the database tables to store this information. Which of the following table designs could you use to store this information?
Which of the following statements are true about the date data type?

Week 5:Select and Where

Which of the following characters can you use as wildcards in like conditions in Oracle Database?
A select * query will return all the visible columns in a table?
Which of the following where clauses will return rows from a table that store a NULL value in the color column?
Given the toys table with the columns toy_name, colour, and weight which stores these rows: TOY_NAME COLOR WEIGHT Baby Turtle green 10 Miss Snuggles red 5 Cuteasaurus blue 15 Which of the following queries will return this row: TOY_NAME COLOR WEIGHT Baby Turtle green 10

Week 6:Joins

Which of the following are valid SQL join types?
A full outer join returns all the rows from both tables in the join?
Which of the following statements are true about left outer joins?
You have tables storing details of bricks and colors: BRICKS COLOR SHAPE green cube yellow prism red cylinder COLORS COLOR RGB_HEX_VALUE red FF0000 green 00FF00 blue 0000FF You want to return the rows from each table which have a matching color in the other. Which of the following queries join the tables, returning these rows (in any order): COLOR SHAPE RGB_HEX_VALUE red cylinder FF0000 green cube 00FF00

Week 7:Aggregates and Group By

Which of the following functions can you use to aggregate rows?
Which of the following statements about group by are true?
Which of the following group by extensions can you use to get subtotals for the columns within it?
You have the table clothes which stores these rows: CLOTHING_TYPE CLOTHING_SIZE shirt XS shirt XXXL skirt M trousers L Mark a choice as correct if it displays the following single row of data: CT ---- 4

Week 8:Select, Joins and Group By Review

You have a table, BRICKS, which stores details of the COLOR and SHAPE of bricks. The rows in the table are: COLOR SHAPE blue cube blue cylinder green cube red cylinder red rectangular cuboid yellow rectangular cuboid Which of the following queries will return the rows from this table where the value for COLOR is green or red? i.e. these rows: COLOR SHAPE green cube red cylinder red rectangular cuboid
Your application has the tables countries and currencies. These store country and currency details respectively. The rows in these tables are (column names in bold): Countries COUNTRY_NAME CURRENCY_CODE USA USD India INR China CNY Currencies CURRENCY_CODE CURRENCY_NAME INR India Rupee EUR Euro GBP British Pound Using these data, you run the following query that left joins currencies and countries: select * from currencies curr left join countries coun on coun.currency_code = curr.currency_code; Which of the following choices contain a row this query will return? Note: For clarity the text "<null>" indicates a null value and the column headings: CURRENCY_CODE CURRENCY_NAME COUNTRY_NAME CURRENCY_CODE appear in every choice.
People FULL_NAME HEIGHT_IN_CM Mr. Tall 200 Master Medium 170 Miss Tiny 140 FULL_NAME and HEIGHT_IN_CM are the columns which hold people's names and their heights respectively. Which of the following queries only return rows for people 170 cm and smaller? i.e. given the table above, the query should return the following two rows: FULL_NAME HEIGHT_IN_CM Master Medium 170 Miss Tiny 140 Please select all that apply
Which of the following statements are true about a cross join?
You can use aggregate functions directly in a where clause like this: where count(*) > 10

Week 9:Insert and Commit

Which of the following statements about INSERT are true?
When you insert rows into a table, other users can see them before you issue a commit
Which of the following can you use to do a multi-table insert?
You create this table to store brick details: create table bricks ( color varchar2(10), shape varchar2(10), weight number ); Which of the following inserts will add a row to bricks that has: The color red The shape cylinder A null value for weight? i.e. after the insert, the querying the table should return this row: select * from bricks; COLOR SHAPE WEIGHT red cylinder <null> NB: <null> above means the value null.

Week 10:Update and Transactions

Which of the following statements about update are true?
Only one user can update a given row in a table at a time
Which of the following statements are true about database transactions?
You create the table toys and add the following rows: create table toys ( toy_name varchar2(30), price number ); insert into toys values ( 'Baby Turtle' , 5 ); insert into toys values ( 'Purple Ninja', 9 ); insert into toys values ( 'Cuteasaurus' , 20 ); commit; Which of the following choices will increase the price of all the rows by one? So after a correct choice, the prices of the toys are: select * from toys; TOY_NAME PRICE Baby Turtle 6 Purple Ninja 10 Cuteasaurus 21

Week 11:Delete and Truncate

Which of the following statements can you use to remove rows from a table in Oracle Database?
Truncate commits
Quiz Which of the following are benefits of using soft deletes to "remove" rows from your application? of the following statements can you use to remove rows from a table in Oracle Database?
You store the following animal details in this table: create table animals ( animal_name varchar2(30), birth_date date, species varchar2(30) ); insert into animals values ( 'Lonesome George', date'1912-01-01', 'tortoise' ); insert into animals values ( 'Smoky', date'1943-07-07', 'dog' ); insert into animals values ( 'Xiang Xiang', date'2001-09-09', 'panda' ); commit; Which of the following choices remove all the rows except the one for Lonesome George? So after a correct choice, when you query animals the only row you get is: select * from animals; ANIMAL_NAME BIRTH_DATE SPECIES Lonesome George 01-JAN-12 tortoise

Week 12:Foundations: Insert, Update and Delete Review

Your application stores toy details in this table: create table toys ( toy_id integer, toy_name varchar2(30), colour varchar2(10), price number(10, 2) ); Which of the following choices will insert a row into it?
Quiz Which of the following statements about lost updates are true?
True or false: In the following statement, Oracle Database will add each row in toys into at most one of blue_toys, cheap_toys or expensive_toys: insert first when colour = 'blue' then into blue_toys values (toy_name, price) when price >= 0 then into cheap_toys values (toy_name, price, colour) when price > 20 then into expensive_toys values (toy_name, price, colour) select toy_name, price, colour from toys;
Which of the following statements are true about deadlocks?
You've created this table to store details about bricks: create table bricks ( colour varchar2(10), shape varchar2(10) ); Which of the following choices add a row to the table and then remove it, so when you run this after the choice: select * from bricks; It returns no rows? You can assume that the table is empty before you run each choice. Please select all that apply.
Subscribe Form

Thanks for submitting!

©2021 by Infinity CS Academy

bottom of page