Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047)

Size: px
Start display at page:

Download "Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047)"

Transcription

1 Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047) Study Material for: Student :10:53 Examine the following SQL statement: CREATE TABLE INSTRUCTORS ( ID NUMBER(20), NAME VARCHAR2(30), STATUS CHAR, DEPARTMENT NUMBER(7,-3), OFFICE_HOURS INTERVAL DAY TO SECOND, START_DATE TIMESTAMP WITH LOCAL TIME ZONE ); What is true of the statement? C: The precision for DAY in OFFICE_HOURS is 2. C is correct. Without any specification for precision for DAY, INTERVAL DAY TO SECOND defaults to two digits. A, B, and D are incorrect. The STATUS column's datatype does not need a precision, CHAR without precision defaults to one character. The DEPARTMENT column's datatype is correct, the negative 3 indicates the level of detail at which a value will be rounded. The START_DATE datatype will not store the time zone offset; for that, you would need to see the TIMESTAMP WITH TIME ZONE datatype. Chapter 2, Using DDL Statements to Create and Manage Tables: 2.04 List the Data Types That Are Available for Columns OBJECTIVE: List the data types that are available for columns. You are tasked with creating a CHECK constraint to ensure that any incoming data is in the 5 plus 4 ZIP code mode. In other words, you want numbers to look like this: You want to reject any numbers that do not look like this. Which of the following defines the pattern? D: '^[[:digit:]]{5}-[[:digit:]]{4}$' LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 1

2 D is correct. The character class [:digit:] is the ideal way to reference numerics. The ^ and $ operators anchor the pattern to the beginning and end of the string, preventing extraneous leading or trailing characters. A, B, and C are incorrect. The pattern [1-9] omits zeros. Chapter 17, Regular Expression Support: Regular Expressions and CHECK Constraints OBJECTIVE: Regular expressions and CHECK constraints. Click the Exhibit button. Examine the illustration. Which of the following are valid queries against this data model? (Choose two.) B: SELECT D.TITLE, I.LAST_NAME, C.START_DATE FROM INSTRUCTORS I JOIN CLASSES C ON I.INSTRUCTOR_ID = C.INSTRUCTOR_ID JOIN DEPARTMENTS D ON I.DEPARTMENT_ID = D.DEPARTMENT_ID; C: SELECT D.TITLE, I.LAST_NAME, C.START_DATE FROM INSTRUCTORS I NATURAL JOIN CLASSES C NATURAL JOIN DEPARTMENTS D; B and C are correct. The syntax for joining multiple tables consists of the keyword JOIN and its associated ON clause repeated as required. For natural joins, no ON clause is required, just the NATURAL JOIN clause is repeated. A and D are incorrect. The use of two columns in the USING clause is incorrect. The run-on JOIN clauses without the associated ON clauses are not correct. Chapter 8, Displaying Data from Multiple Tables: 8.01 Write SELECT Statements to Access Data from More Than One Table Using Equijoins and Non-Equijoins OBJECTIVE: Write SELECT statements to access data from more than one table using equijoins and nonequijoins. Examine the following data listing for table INSTRUCTORS: ID LAST_NAME VACATION PAY_RATE DEPARTMENT_ID Smith Jones Cohen Green LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 2

3 5 Riley Simpson Bryant Now examine the following SELECT statement (line numbers added): 01 SELECT DEPARTMENT_ID, LAST_NAME 02 FROM INSTRUCTORS 03 WHERE VACATION < OR PAY_RATE < AND DEPARTMENT_ID NOT IN (1,2,7); Which of the following are true for this statement? (Choose two.) B: It will return two rows. B is correct. A quick glance at the WHERE clause, and you should be able to tell that the WHERE clause has an AND comparison at the end. The rules of operator precedence require that AND be processed before OR. This means that the expressions PAY_RATE < 60 AND DEPARTMENT_ID NOT IN (1, 2, 7) are evaluated and compared first, so the best solution is to review the rows of data for this comparison first. Only the second row returns a TRUE for this comparison. Given that the remaining comparison uses an OR, you can now glance at the VACATION column and see that two values return a TRUE, one of which is row 2, and the other is row 6. These are the rows returned by the SELECT statement. A, C, and D are incorrect. The OR comparison is evaluated last, not first. Also, NULL values, even though they are NOT IN the list of values shown for DEPARTMENT_ID, result in a FALSE return nevertheless. NULL errs on the side of FALSE. Is NULL, the unknown number, not within the list of values of 1, 2, and 7? Maybe it is, maybe it isn't-we can't tell. In such situations, SQL errs on the side of FALSE. OBJECTIVE: Limit the rows that are retrieved by a query. Examine the following SQL code: CREATE TABLE REGIONS ( REGION_ID NUMBER(7) UNIQUE, REGION_NAME VARCHAR2(30), MANAGER_ID NUMBER(11) ); CREATE TABLE OFFICES ( OFFICE_ID NUMBER(11) PRIMARY KEY, REGION_ID NUMBER(11,2), CONSTRAINT OFRE FOREIGN KEY (REGION_ID) REFERENCES REGIONS (REGION_ID) ); What will be the result of the preceding SQL statements? D: The constraint OFRE will be created successfully. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 3

4 D is correct. The foreign key will be created successfully. A, B, and C are incorrect. Two tables will be created, but the first has three columns, and the second only has two columns. The syntax of a FOREIGN KEY constraint requires that the referenced table's column have a UNIQUE constraint. This means that the referenced column may instead have a PRIMARY KEY constraint, which is a combination of UNIQUE and NOT NULL, and in fact this is often what is done in practice, but only the UNIQUE constraint is required. Even though the level of detail that can be stored in the OFFICES table's REGION_ID column is greater than what can be stored in the parent table REGIONS's REGION_ID column, the constraint will still work, since the smaller value datatype is going into the larger value datatype, and no precision will be lost. Chapter 2, Using DDL Statements to Create and Manage Tables: 2.05 Explain How Constraints Are Created at the Time of Table Creation OBJECTIVE: Explain how constraints are created at the time of table creation. Click the Exhibit button. Examine this illustration. You are tasked to write a query that will perform the following: * Query the PAY_RATE for each instructor. PAY_RATE contains the annual salary for each instructor. * Determine the base PAY_RATE if it were increased by 5 percent. * Throw in a one-time annual bonus of $200 for the year. * Show the monthly rate of pay for the increased annual PAY_RATE, including the once-per-year bonus. Which of the following queries will accomplish this task? B: SELECT (200 + PAY_RATE * 1.05)/12 NEW_SALARY FROM INSTRUCTORS; B is correct. The rules of operator precedence ensure that the portions of the expression within the parentheses will be executed first. Within the parentheses is one operation of addition, and one of multiplication. The rules of operator precedence dictate that the multiplication will be executed first, and then the addition. A, C, and D are incorrect. None of these reflect the intended equation. Answer A adds the bonus to the pay rate but then multiplies the 1.05 multiplier (representing a 5 percent increase). In Answer C, the pay rate is increased and then converted to the monthly rate, and after that the bonus is added-to each monthly rate, which is not the intent. In Answer D, a similar bad formula is indicated. Chapter 4, Retrieving Data Using the SQL SELECT Statement: 4.02 List the Capabilities of SQL SELECT Statements OBJECTIVE: List the capabilities of the SQL SELECT statement. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 4

5 Click the Exhibit button. Examine the illustration. You are tasked to create a report that joins data from INSTRUCTORS, STAFF, and DEPARTMENTS, and groups the data by department and EXEMPT status. The query will use the same select list and join but will not need each grouped set of rows-for example, you'll only need groups for certain departments, but not others. Your database is large and the production system is taxed heavily during the day. What feature can you use to ensure that you only return the grouped data you require, and avoid unwanted and unnecessary processing? C: GROUPING SETS C is correct. GROUPING SETS can be used with GROUP BY to process only those grouped sets that you specify, and ignore the others. A, B, and D are incorrect. Chapter 13, Generating Reports by Grouping Related Data: Use GROUPING SETS to Produce a Single Result Set OBJECTIVE: Use GROUPING SETS to produce a single result set. Which of the following datatypes can be used with a PRIMARY KEY constraint? D: TIMESTAMP WITH LOCAL TIME ZONE D is correct. The TIMESTAMP WITH LOCAL TIME ZONE datatype can be used with a PRIMARY KEY constraint. A, B, and C are incorrect. CLOB, BLOB, and TIMESTAMP WITH TIME ZONE cannot be used with a PRIMARY KEY. Think about the size of CLOB and BLOB and you'll realize they don't lend themselves well to the creation of an index, which a PRIMARY KEY column requires. The same is true for the TIMESTAMP WITH TIME ZONE datatype, which may store a value containing of a time zone offset. Chapter 2, Using DDL Statements to Create and Manage Tables: 2.05 Explain How Constraints Are Created at the Time of Table Creation. Also see Chapter 10, Creating Other Schema Objects: Create and Maintain Indexes OBJECTIVE: Explain how constraints are created at the time of table creation. Examine the following SQL code: CREATE TABLE STUDENTS LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 5

6 ( STUDENT_ID NUMBER(13) PRIMARY KEY, F_NAME VARCHAR2(25), L_NAME VARCHAR2(35), SSN VARCHAR2(11), STATUS VARCHAR2(30), REG_DATE TIMESTAMP ); CREATE SEQUENCE STUDENT_ID_SEQUENCE; Which of the following are valid INSERT statements for this table? (Choose two.) B: INSERT INTO STUDENTS VALUES ( STUDENT_ID_SEQUENCE.NEXTVAL, (SELECT 'JOE' FROM DUAL), 'SCHMOE', NULL, 'ACTIVE', SYSDATE); D: INSERT INTO STUDENTS ( STUDENT_ID, F_NAME, L_NAME, REG_DATE) SELECT STUDENT_ID_SEQUENCE.NEXTVAL, 'JOE', 'SCHMOE', SYSTIMESTAMP FROM DUAL; B and D are correct. In Answer B the syntax is correct, including the use of the scalar subquery. There is no difficulty entering SYSDATE into a column of the TIMESTAMP datatype. Answer D is an INSERT with a subquery. A and C are incorrect. In Answer A, the two-column inline view that selects 'JOE' and 'SCHMOE' from DUAL is not acceptable in this context. It leaves the values list short one value. In Answer C, the keyword AS should not be used with the subquery. It also supplies too many values. Chapter 3, Manipulating Data: 3.02 Insert Rows into a Table, and Chapter 15, Manipulating Large Data Sets: Manipulate Data Using Subqueries OBJECTIVE: Insert rows into a table. Click the Exhibit button. Examine the Illustration. Which of the following SQL statements is valid? B: SELECT I.LAST_NAME, C.START_DATE FROM INSTRUCTORS I JOIN CLASSES C USING (INSTRUCTOR_ID) WHERE START_DATE BETWEEN SYSTIMESTAMP AND TO_DATE('01-JUN-10', 'DD-MON-RR'); B is correct. The USING specification for INSTRUCTOR_ID does not clash with the use of the table alias elsewhere in the SELECT statement, provided that the table alias does not LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 6

7 prefix the column on which the join criteria are based, which is specified in USING as INSTRUCTOR_ID. A, C, and D are incorrect. In Answer A, the use of a NATURAL JOIN prevents the table name prefix from being used on the join column, which is INSTRUCTOR_ID. In Answer C, there is no such thing as a LEFT INNER join. In Answer D, the use of a table alias on the join column INSTRUCTOR_ID clashes with the USING specification on the column. Chapter 4, Retrieving Data Using the SQL SELECT Statement: 4.01 Execute a Basic SELECT Statement, and Chapter 8, Displaying Data from Multiple Tables: 8.01 Write SELECT Statements to Access Data from More Than One Table Using Equijoins and NonEquijoins OBJECTIVE: Write SELECT statements to access data from more than one table using equijoins and nonequijoins. Examine the following SQL code: CREATE TABLE STUDENTS ( STUDENT_ID NUMBER(13) PRIMARY KEY, F_NAME VARCHAR2(25), L_NAME VARCHAR2(35) NOT NULL, SSN VARCHAR2(11) UNIQUE, STATUS VARCHAR2(30)); ALTER TABLE STUDENTS SET UNUSED COLUMN SSN; What is the result of the ALTER TABLE statement at the end of the code listing? D: You can now add a new column to the table with the name SSN. D is correct. Once a column has been set to UNUSED, the column name is now available for a new column that you might choose to add to the table. A, B, and C are incorrect. Setting a column to UNUSED is comparable to dropping it altogether for all practical purposes-the column is no longer visible when the table's structure is described with the DESC command, and you can no longer query on the column. It is as though it has been dropped, although it remains internally stored with the table, awaiting some future time when you might choose to finally drop it. Chapter 11, Managing Schema Objects, Drop Columns and Set Column UNUSED OBJECTIVE: Drop columns and set column UNUSED. Click the Exhibit button. Examine the following illustration. Someone in your organization enters the following code while working with a server located in the 'Asia/Macau' time zone: LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 7

8 INSERT INTO TRANSACTIONS VALUES (1, SYSTIMESTAMP); Later, someone in your office located in the 'Europe/Vienna' time zone queries the TRANSACTIONS table, as follows: SELECT EXTRACT (TIMEZONE_REGION FROM TRANS_ENTRY) FROM TRANSACTIONS WHERE TRANS_ID = 1; What is the output of the query? B: Europe/Vienna B is correct. The TIMESTAMP WITH LOCAL TIME ZONE does not store information about the source time zone or offset, but it normalizes the time for the local system that queries it. A, C, and D are incorrect. Chapter 6, Using Single-Row Functions to Customize Output: 6.04 Managing Data in Different Time Zones-Use Various Datetime Functions OBJECTIVE: Manage data in different time zones; use various datetime functions. Click the Exhibit button. Examine the illustration. Next, examine the data listing for the table COURSE_CATALOG: ID MAJOR COURSE CLASS CREDITS SEATS Business Accounting Business Accounting Business Accounting Business Finance Law Constitution Law Tort Engineering Physics Engineering Physics Engineering Physics Note that there are nine rows of data. Now examine the following statement: SELECT MAJOR, COURSE, COUNT(CLASS), SUM(CREDITS) FROM COURSE_CATALOG GROUP BY CUBE (MAJOR, COURSE); How many rows of output will this query produce? C: 14 C is correct. The CUBE operation will produce one row for each grouped set of MAJOR and COURSE values, which will result in 5 rows. It will add one summary row for each unique LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 8

9 COURSE value, of which there are 5. It will add one summary row for each unique MAJOR value, of which there are 3. Finally it will add one grand total summary row for the entire data listing, of which there is, well, one. Add those numbers together and you get 14. A, B, and D are incorrect. Chapter 13, Generating Reports by Grouping Related Data: Use the CUBE Operation to Produce Crosstabulation Values OBJECTIVE: Use the CUBE operation to produce crosstabulation values. Examine the following SQL statement: SELECT TO_TIMESTAMP('MAY 01 11','MON DD RR') + TO_YMINTERVAL('1-1') + TO_DSINTERVAL(INTERVAL '75' MINUTE) FROM DUAL; Which of the following is the result? D: 01-JUN AM D is correct. The function TO_YMINTERVAL converts the string '1-1' into a time interval of one year, one month. The TO_DSINTERVAL function converts the enclosed literal value to one hour, 15 minutes. The TIMESTAMP representation of the combined result of adding all the values together is shown in Answer D. A, B, and C are incorrect. Chapter 6, Using Single-Row Functions to Customize Output: 6.03 Describe the Use of Conversion Functions OBJECTIVE: Describe the use of conversion functions. Which of the following are valid CREATE TABLE statements? (Choose two.) A: CREATE TABLE REGIONS (REGION_ID NUMBER(7) PRIMARY KEY USING INDEX (CREATE INDEX RI_IND ON REGIONS(REGION_ID)), REGION_NAME VARCHAR2(30), MANAGER_ID NUMBER(11) NOT NULL); C: CREATE TABLE REGIONS (REGION_ID NUMBER(7) UNIQUE USING INDEX (CREATE INDEX RI_IND LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 9

10 ON REGIONS(REGION_ID)), REGION_NAME VARCHAR2(30), MANAGER_ID NUMBER(11) NOT NULL); A and C are correct. The USING INDEX clause can be used to create an index for only the PRIMARY KEY and UNIQUE constraints. B and D are incorrect. Chapter 11, Managing Schema Objects: Create Indexes Using the CREATE TABLE Statement OBJECTIVE: Create indexes using the CREATE TABLE statement. Identify the true statements about the CREATE SEQUENCE statement. (Choose two.) A: If CYCLE is omitted, NOCYCLE is the default. D: If CYCLE is specified, MAXVALUE may be negative. A and D are correct. NOCYCLE is the default and does not need to be specified in the CREATE SEQUENCE statement. If CYCLE is specified, however, then NOCYCLE does not apply. If CYCLE is specified, MAXVALUE may be negative, provided that MINVALUE is less than MAXVALUE. B and C are incorrect. If CYCLE is specified and MINVALUE is omitted, the default minimum value is 1 for ascending sequences. If CYCLE is specified, MINVALUE is not necessarily required and will default to 1 if omitted. MAXVALUE must be specified as higher than 1 in such a situation. Chapter 10, Creating Other Schema Objects: Create, Maintain, and Use Sequences OBJECTIVE: Create, maintain, and use sequences. Examine the following data listing for a table STUDENTS: ROWNUM ID NAME SCORE JONES 2 2 SMITH SIMPSON 25 Note the presence of the pseudocolumn ROWNUM. Note that row 3 is completely NULL. Also note that the SCORE for JONES is NULL. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 10

11 Now examine the following SELECT statement: SELECT COUNT(*), AVG(SCORE) FROM STUDENTS; What will be the result of this query? D: 5, 20 D is correct. Even though row 3 is completely NULL, the COUNT function will count it as a valid row when using the asterisk feature. However, AVG will ignore NULL values when computing averages. A, B, and C are incorrect. Chapter 7, Reporting Aggregated Data Using the Group Functions: 7.02 Describe the Use of Group Functions OBJECTIVE: Describe the use of group functions. A multitable INSERT statement: (Choose two.) B: Can have multiple WHEN conditions. D: Can insert one row into multiple tables. B and D are correct. A multitable INSERT can have many WHEN conditions. It can insert rows into one or more tables. A and C are incorrect. A multitable INSERT can be conditional, or unconditional. It is based on one subquery. Chapter 15, Manipulating Large Data Sets: Describe the Features of Multitable INSERTs and Use the Following Types of Multitable INSERTs: Unconditional, Conditional, and Pivot OBJECTIVE: Describe the features of multitable INSERTs, and use the following types of multitable INSERTs: unconditional, conditional, and pivot. Examine the following SQL code (line numbers added): 01 MERGE INTO STAFF S 02 USING (SELECT INSTRUCTOR_ID, 'INSTRUCTOR' NEW_TITLE, 03 FIRST_NAME, LAST_NAME, EMPNO 04 FROM INSTRUCTORS) I LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 11

12 05 ON (S.EMPNO = I.EMPNO) 06 WHEN MATCHED THEN UPDATE SET TITLE = NEW_TITLE 07 WHEN NOT MATCHED THEN INSERT (STAFF_ID, FIRSTNAME, LASTNAME) 08 VALUES ((INSTRUCTOR_ID+1000), FIRST_NAME, LAST_NAME); Which of the following statements is true of the MERGE statement? C: A WHERE clause could be added to the UPDATE operation after line 6 and before line 7. C is correct. The UPDATE operation accepts the optional WHERE clause. A, B, and D are incorrect. DELETE is allowed with MERGE. The inline view is also valid. The combined DML operations are processed in one pass through the database, which is the advantage to using MERGE. Chapter 15, Manipulating Large Data Sets: Merge Rows in a Table OBJECTIVE: Merge rows in a table. Click the Exhibit button. Examine the illustration. Now examine the following query: SELECT LEVEL, LPAD(' ', LEVEL*2) LASTNAME AS LASTNAME, PRIOR LASTNAME AS BOSS FROM STAFF START WITH STAFF_ID = 1 CONNECT BY PRIOR STAFF_ID = SUPERVISOR_ID; Examine the output listing from this query: LEVEL LASTNAME BOSS LeGrange 2 Chen LeGrange 2 Marie LeGrange 3 Cramerica Marie 2 Franken LeGrange 3 Merckle Franken 4 Linkletter Merckle 3 Charles Franken What would you have to change in the query to reverse the direction of this query from top-down through the hierarchy to bottom-up? C: START WITH LASTNAME = 'Linkletter' CONNECT BY STAFF_ID = PRIOR SUPERVISOR_ID; C is correct. Reversing the position of PRIOR is the key to reversing the direction in which SQL is traversing the self-join table. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 12

13 A, B, and D are incorrect. Chapter 16, Hierarchical Retrieval: Interpret the Concept of a Hierarchical Query OBJECTIVE: Interpret the concept of a hierarchical query. Click the Exhibit button. Examine the illustration. Which of the following SQL statements is likely to result in an error? B: SELECT (SELECT OFFICE_PHONE FROM STAFF), FIRST_NAME, LAST_NAME FROM INSTRUCTORS; B is correct. The statement being used as a scalar subquery can return multiple rows. It isn't syntactically incorrect, but it runs the risk of resulting in an execution error. A, C, and D are incorrect. Answer A uses an inline view in the FROM statement. Answer C uses an inline view, which can return multiple rows. Answer D uses a scalar subquery, as indicated by the WHERE clause that identifies a row by its primary key value. All are valid and well-formed statements. Chapter 9, Retrieving Data Using Subqueries: 9.06 Use Scalar Subqueries in SQL. Also Chapter 10, Creating Other Schema Objects: Create and Use Simple and Complex Views OBJECTIVE: Use scalar subqueries in SQL, and create simple and complex views, and retrieve data from views. Click the Exhibit button. Examine the illustration. You are tasked with creating a query that will show a list of instructors in the INSTRUCTORS table who have the same names as staff in the STAFF table. Which of the following queries will satisfy the requirement? (Choose two.) A: SELECT I.FIRST_NAME, I.LAST_NAME FROM INSTRUCTORS I WHERE I.FIRST_NAME I.LAST_NAME IN (SELECT FIRSTNAME LASTNAME FROM STAFF); C: SELECT I.FIRST_NAME, I.LAST_NAME FROM INSTRUCTORS I WHERE (I.FIRST_NAME, I.LAST_NAME) IN (SELECT FIRSTNAME, LASTNAME FROM STAFF); LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 13

14 A and C are correct. Answer A uses concatenation correctly in this context to compare all of the names in INSTRUCTORS to any and all of the names in STAFF. Answer C is an example of a multiple-column subquery. B and D are incorrect. Answer B uses correct syntax in a technical sense, but the logic of the query doesn't support the task. Instead it finds instructors whose first name happens to match any first names among the staff, and then it makes a separate comparison for matching last names. Answer D is the same as Answer C with one difference, and that is its choice of an equal sign as a comparison operator, instead of the keyword IN. The equal sign means that only exact matches will occur and the subquery is expected to return only one row, which is not likely. If it returns more rows than one, an execution error will result. Chapter 9, Retrieving Data Using Subqueries: 9.04 Write single-row and multiple-row subqueries OBJECTIVE: Write single-row and multiple-row subqueries. Click the Exhibit button. Examine the illustration. You are tasked with producing a report that shows the names of the instructors in each department who have the highest pay rate. Which of the following are you least likely to use in creating your query? A: A hierarchical query A is correct. You are least likely to use a hierarchical query. B, C, and D are incorrect. You are most likely to use a correlated subquery. The subquery will most likely use a GROUP BY and an aggregate function to determine the set of instructors with the highest pay rate for the correlated subquery. Chapter 9, Retrieving Data Using Subqueries: 9.07 Solve Problems with Correlated Subqueries OBJECTIVE: Solve problems with correlated subqueries. Examine the following SQL code: CREATE TABLE TRANSACTIONS ( TRANS_ID NUMBER(11), TRANS_ENTRY TIMESTAMP WITH LOCAL TIME ZONE, ENTERED_BY NUMBER(11), STATUS VARCHAR2(20) ); ALTER TABLE TRANSACTIONS SET UNUSED COLUMN ENTERED_BY; Which of the following statements will drop the unused columns? LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 14

15 A: ALTER TABLE TRANSACTIONS DROP UNUSED COLUMNS; A is correct. Once a column has been set to UNUSED, it can no longer be specified by name. The DROP UNUSED COLUMNS clause will drop all outstanding unused columns that might happen to exist within the table. B, C, and D are incorrect. Chapter 11, Managing Schema Objects: Drop Columns and Set Column UNUSED OBJECTIVE: Drop columns and set column UNUSED. Examine the following SQL code executed from within the user account ADMIN: CREATE TABLE REGIONS ( REGION_ID NUMBER(7) PRIMARY KEY, REGION_NAME VARCHAR2(30), MANAGER_ID NUMBER(11) NOT NULL); CREATE VIEW REGIONS_VW AS SELECT * FROM REGIONS; CREATE PUBLIC SYNONYM REG FOR ADMIN.REGIONS; DROP TABLE REGIONS; Which of the following statements correctly describes the results after the preceding statements are executed? C: One index is dropped. C is correct. When the table is created, the inclusion of the PRIMARY KEY constraint will create the constraint as well as an index to support the constraint. A, B, and D are incorrect. The public synonym exists independently of any object. The same is not true of a view, but the view will not be dropped automatically; instead, it will be automatically rendered INVALID. And while the PRIMARY KEY constraint creates its own index, the NOT NULL constraint does not create an index. Chapter 4, Retrieving Data Using the SQL SELECT Statement: 4.03 Describe How Schema Objects Work, and Chapter 11, Managing Schema Objects: Add Constraints OBJECTIVE: Describe how schema objects work. To sort rows in a query that uses set operators, which of the following is valid? A: ORDER BY position. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 15

16 A is correct. When set operators are present, you can sort by position or by expressions from the first SELECT statement at the top. B, C, and D are incorrect. Chapter 12, Using the Set Operators: Control the Order of Rows Returned OBJECTIVE: Control the order of rows returned when set operators are present. Click the Exhibit button. Examine the illustration. Then examine the following code: WITH STAFF_STATISTICS AS ( SELECT DEPARTMENT_ID, COUNT(STAFF_ID) CT FROM STAFF GROUP BY DEPARTMENT_ID ), ADMIN_STATS AS ( SELECT DEPARTMENT_ID, CT FROM STAFF_STATISTICS WHERE DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM DEPARTMENTS) ) SELECT I.LAST_NAME, A.CT FROM ADMIN_STATS A JOIN INSTRUCTORS I ON A.DEPARTMENT_ID = I.DEPARTMENT_ID; Which of the following is true of the preceding code? D: The STAFF_STATISTICS subquery block is not visible beyond the code sample shown. D is correct. None of the subquery blocks exist beyond the query. A, B, and C are incorrect. None of the restrictions mentioned apply to the queries within the subquery blocks. Chapter 9, Retrieving Data Using Subqueries: 9.10 Use the WITH Clause OBJECTIVE: Use the WITH clause. Examine the following SQL statements (line numbers added): 01 COMMIT; 02 SAVEPOINT POINT_A; 03 CREATE TABLE CLASSES 04 (CLASS_ID NUMBER(13) PRIMARY KEY, 05 INSTRUCTOR_ID NUMBER(13) LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 16

17 06 ); 07 INSERT INTO CLASSES VALUES (1,1); 08 INSERT INTO CLASSES VALUES (2,2); 09 SAVEPOINT POINT_B; 10 INSERT INTO CLASSES VALUES (3,3); 11 ROLLBACK WORK TO POINT_A; 12 INSERT INTO CLASSES VALUES (4,4); 13 ROLLBACK WORK TO POINT_B; 14 COMMIT; Which of the following statements correctly describes the result of the preceding statements? C: The ROLLBACK in line 11 won't work because the CREATE TABLE statement in line 3 reset the SAVEPOINTs. C is correct. The ROLLBACK will fail because the CREATE TABLE statement is part of Data Definition Language (DDL) and therefore results in an implied commit event. (Actually, DDL causes a commit immediately before execution, and another immediately after.) The result: the SAVEPOINT in line 1 is reset and no longer exists. Therefore the ROLLBACK in line 11 won't execute and won't reset anything, leaving the way for the ROLLBACK in line 13 to execute successfully. The result: the first two rows are added to the table, and no more. A, B, and D are incorrect. Chapter 3, Manipulating Data: 3.05 Control Transactions OBJECTIVE: Control transactions. The following code is executed from within user DANNA: CREATE TABLE SCHOOLS ( SCHOOL_ID NUMBER(7) PRIMARY KEY, NAME VARCHAR2(20), DEAN_ID NUMBER(7)); GRANT SELECT ON SCHOOLS TO PUBLIC; CREATE SYNONYM SCH FOR SCHOOLS; DROP TABLE SCHOOLS; Five minutes later, user DANNA executes the following: FLASHBACK TABLE SCHOOLS TO BEFORE DROP; What objects have been recovered? C: One table, one index, one grant C is correct. When the table was created, the PRIMARY KEY resulted in the automatic creation of an index. When the table was dropped, the index and grant were all dropped and placed into the recycle bin. FLASHBACK TABLE recovers all of these objects. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 17

18 A, B, and D are incorrect. The synonym is not dropped with the table, so there was no synonym that required recovery. Chapter 11, Managing Schema Objects: Perform FLASHBACK Operations OBJECTIVE: Perform FLASHBACK operations. Click the Exhibit button. Examine the illustration. Now examine the following SQL statement: UPDATE STUDENTS SET REG_DATE = TO_DATE('01-MAR-10','DD-MON-RR'), SSN = WHERE STUDENT_ID = 101; Which of the following statements is true for the preceding statement? B: The UPDATE statement will fail for any row with a STUDENT_ID of 101 because the value assigned to SSN is too long. If the table has no rows with a STUDENT_ID of 101, the UPDATE statement will complete execution without effect and without error. B is correct. The WHERE clause is processed first. If no rows are found that match the WHERE condition, the SET clauses will not execute. All of the SET clauses must execute successfully for all of the rows returned by the WHERE condition, or else none of the changes to any of the rows will be successful. A, C, and D are incorrect. You cannot add a number whose precision is too large into a numeric datatype of lesser precision. However, numbers with too much detail in the scale specification may accept large values and round them off, resulting in a loss of data. Chapter 3, Manipulating Data: 3.03 Update Rows in a Table, and Chapter 5, Restricting and Sorting Data: 5.01 Limit the Rows That Are Retrieved by a Query OBJECTIVE: Update rows in a table. User MARIA executes the following code, including GRANTS to user ANTHONY (line numbers added): 01 CREATE TABLE COURSE_CATALOG 02 ( COURSE_CATALOG_ID NUMBER(7) PRIMARY KEY 03, DEPARTMENT_ID VARCHAR2(80) 04, COURSE VARCHAR2(80) ); 05 CREATE VIEW CC_VIEW AS 06 SELECT * FROM COURSE_CATALOG WHERE COURSE <> 'TEACHER TRAINING'; 07 CREATE PUBLIC SYNONYM COURSE_CATALOG FOR MARIA.COURSE_CATALOG; 08 GRANT SELECT ON CC_VIEW TO ANTHONY; LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 18

19 Next, user ANTHONY executes the following code: 09 CREATE SYNONYM COURSE_CATALOG FOR MARIA.CC_VIEW; Finally, ANTHONY executes the following statement: 10 SELECT * FROM COURSE_CATALOG; Which object is identified in the SELECT statement executed by user ANTHONY? B: The private synonym created in line 9 B is correct. The private synonym is the object that is first identified when the SELECT statement is processed. Name priority looks to the local user space first before looking to the database-level namespaces. A, C, and D are incorrect. There are no naming conflicts in the code; each name is created to be unique within its appropriate namespace. Chapter 10, Creating Other Schema Objects: Create Private and Public Synonyms OBJECTIVE: Create private and public synonyms. Click the Exhibit button. Examine the illustration and then examine the following query: SELECT LEVEL, LPAD(' ', LEVEL*2) LASTNAME AS LASTNAME_FORMATTED, PRIOR LASTNAME AS BOSS FROM STAFF START WITH STAFF_ID = 1 CONNECT BY PRIOR STAFF_ID = SUPERVISOR_ID; Which ORDER BY clause can be appended to the end of this SQL statement so that the output will retain the ordering of the hierarchical query clause and only sort rows by LASTNAME within each hierarchical level? C: ORDER SIBLINGS BY LASTNAME C is correct. ORDER SIBLINGS BY is the clause you should use to sort rows in any hierarchical query. A, B, and D are incorrect. Answers A and B will interrupt the hierarchical order of data. Answer D will cause a syntax error. Chapter 16, Hierarchical Retrieval: Create and Format Hierarchical Data LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 19

20 OBJECTIVE: Create a tree-structured report, and format hierarchical data. Examine the following data listing of a table COURSE_CATALOG. ID Department Course Class Business Accounting General Ledger 2 Business Accounting Accounts Payable 3 Business Accounting Accounts Receivable 4 Business Finance Ratios 5 Engineering Systems Design 6 Engineering Systems Administration 7 Engineering Network Testing You are tasked to examine a SQL query that shows only unique combinations of values of Department and Course. Which of the following SQL statements will perform the task? A: SELECT DISTINCT DEPARTMENT, COURSE FROM COURSE_CATALOG; A is correct. The keyword DISTINCT is used once at the beginning of the select list, and unique column combinations will be returned. B, C, and D are incorrect. Chapter 4, Retrieving Data Using the SQL SELECT Statement: 4.02 List the Capabilities of SQL SELECT Statements OBJECTIVE: List the capabilities of SQL SELECT statements. Click the Exhibit button. Examine the illustration. The engineering department instructors are said to teach longer classes than the rest of the school. You are tasked to challenge this claim and see if you can identify any instructors who do not teach in the engineering department, but who have classes that are as long as, if not longer than, any class taught by any of the instructors in engineering. Which of the following queries do you create? C: SELECT I.FIRST_NAME, I.LAST_NAME FROM INSTRUCTORS I JOIN CLASSES C ON I.INSTRUCTOR_ID = C.INSTRUCTOR_ID WHERE (C.END_DATE - C.START_DATE) >= ANY ( SELECT (C.END_DATE - C.START_DATE) FROM INSTRUCTORS I JOIN CLASSES C ON I.INSTRUCTOR_ID = C.INSTRUCTOR_ID WHERE I.DEPARTMENT_ID = (SELECT DEPARTMENT_ID FROM DEPARTMENTS WHERE TITLE = 'Engineering')) AND I.DEPARTMENT_ID NOT IN LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 20

21 (SELECT DEPARTMENT_ID FROM DEPARTMENTS WHERE TITLE = 'Engineering'); C is correct. The comparison operator > ANY ensures that the outer query lists instructors whose classes are as long as or longer than any one of the rows returned by the subquery. A, B, and D are incorrect. Answer A uses a comparison operator that looks for a single-row subquery, and chances are that the subquery will return more than one row. That means the query will most likely result in an execution error. Answer B uses the > ALL comparison operator, which ensures that you'll get instructors who have longer classes than the engineering department's classes, but you'll lose those instructors who might be longer than some of the engineering classes, not necessarily all, and this is closer to the requirement of the task. Chapter 9, Retrieving Data Using Subqueries: 9.04 Write Single-Row and Multiple-Row Subqueries OBJECTIVE: Write single-row and multiple-row subqueries. LearnKey, Inc. Copyright 2006, All Rights Reserved. Page 21

Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047)

Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047) Study Guide for: Oracle Database SQL Certified Expert Exam Guide (Exam 1Z0-047) Study Material for: Student 08.10.2010 15:49:30 Examine the following data listing for table WORKERS: WORKER_ID LAST_NAME

More information

1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data

1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data 1 Writing Basic SQL SELECT Statements Objectives 1-2 Capabilities of SQL SELECT Statements 1-3 Basic SELECT Statement 1-4 Selecting All Columns 1-5 Selecting Specific Columns 1-6 Writing SQL Statements

More information

Oracle Syllabus Course code-r10605 SQL

Oracle Syllabus Course code-r10605 SQL Oracle Syllabus Course code-r10605 SQL Writing Basic SQL SELECT Statements Basic SELECT Statement Selecting All Columns Selecting Specific Columns Writing SQL Statements Column Heading Defaults Arithmetic

More information

Introduction to Computer Science and Business

Introduction to Computer Science and Business Introduction to Computer Science and Business This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database design by creating a

More information

1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions

1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions 1Z0-051 Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-051 Exam on Oracle Database 11g - SQL Fundamentals I 2 Oracle 1Z0-051 Certification

More information

Certification Exam Preparation Seminar: Oracle Database SQL

Certification Exam Preparation Seminar: Oracle Database SQL Oracle University Contact Us: 0800 891 6502 Certification Exam Preparation Seminar: Oracle Database SQL Duration: 1 Day What you will learn This video seminar Certification Exam Preparation Seminar: Oracle

More information

Course Outline and Objectives: Database Programming with SQL

Course Outline and Objectives: Database Programming with SQL Introduction to Computer Science and Business Course Outline and Objectives: Database Programming with SQL This is the second portion of the Database Design and Programming with SQL course. In this portion,

More information

normalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model

normalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model Database Design Section1 - Introduction 1-1 Introduction to the Oracle Academy o Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. o Explain how your

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database

More information

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle Database: Introduction to SQL What you will learn Understanding the basic concepts of relational databases ensure refined code by developers. This course helps the participants to write subqueries,

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: (+202) 35 35 02 54 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn View a newer version of this course This Oracle Database: Introduction to SQL

More information

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version :

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version : Oracle 1Z1-051 Oracle Database 11g SQL Fundamentals I Download Full Version : https://killexams.com/pass4sure/exam-detail/1z1-051 QUESTION: 238 You need to perform these tasks: - Create and assign a MANAGER

More information

Oracle Database: Introduction to SQL Ed 2

Oracle Database: Introduction to SQL Ed 2 Oracle University Contact Us: +40 21 3678820 Oracle Database: Introduction to SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database 12c: Introduction to SQL training helps you write subqueries,

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: +27 (0)11 319-4111 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,

More information

Course Outline. [ORACLE PRESS] OCE Oracle Database SQL Certified Expert Course for Exam 1Z

Course Outline. [ORACLE PRESS] OCE Oracle Database SQL Certified Expert Course for Exam 1Z Course Outline [ORACLE PRESS] OCE Oracle Database SQL Certified Expert Course for Exam 1Z0-047 17 Apr 2018 Contents 1. Course Objective 2. Pre-Assessment 3. Exercises, Quizzes, Flashcards & Glossary Number

More information

Oracle Database 11g: Introduction to SQLRelease 2

Oracle Database 11g: Introduction to SQLRelease 2 Oracle University Contact Us: 0180 2000 526 / +49 89 14301200 Oracle Database 11g: Introduction to SQLRelease 2 Duration: 5 Days What you will learn In this course students learn the concepts of relational

More information

Database Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 6-3 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control

More information

Querying Microsoft SQL Server (MOC 20461C)

Querying Microsoft SQL Server (MOC 20461C) Querying Microsoft SQL Server 2012-2014 (MOC 20461C) Course 21461 40 Hours This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for

More information

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database: SQL Fundamentals I. Q&As: 292

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database: SQL Fundamentals I. Q&As: 292 Vendor: Oracle Exam Code: 1Z1-051 Exam Name: Oracle Database: SQL Fundamentals I Q&As: 292 QUESTION 1 Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? (Choose

More information

Using DDL Statements to Create and Manage Tables. Copyright 2006, Oracle. All rights reserved.

Using DDL Statements to Create and Manage Tables. Copyright 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables Objectives After completing this lesson, you should be able to do the following: Categorize the main database objects Review the table structure List the

More information

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces

More information

Manipulating Data. Copyright 2004, Oracle. All rights reserved.

Manipulating Data. Copyright 2004, Oracle. All rights reserved. Manipulating Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement

More information

MIS CURRICULUM. Advanced Excel Course - Working with Templates Designing the structure of a template Using templates for standardization of worksheets

MIS CURRICULUM. Advanced Excel Course - Working with Templates Designing the structure of a template Using templates for standardization of worksheets MIS CURRICULUM ADVANCE EXCEL Advanced Excel Course - Overview of the Basics of Excel Customizing common options in Excel Absolute and relative cells Protecting and un-protecting worksheets and cells Advanced

More information

20461: Querying Microsoft SQL Server

20461: Querying Microsoft SQL Server 20461: Querying Microsoft SQL Server Length: 5 days Audience: IT Professionals Level: 300 OVERVIEW This 5 day instructor led course provides students with the technical skills required to write basic Transact

More information

Course Outline. Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led

Course Outline. Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led About this course This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Course 20761C 5 Days Instructor-led, Hands on Course Information The main purpose of the course is to give students a good understanding of the Transact- SQL language which

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL 20761B; 5 Days; Instructor-led Course Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can

More information

Data Manipulation Language

Data Manipulation Language Manipulating Data Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement Insert rows into a table Update rows in a table

More information

Oracle Database 11g: SQL and PL/SQL Fundamentals

Oracle Database 11g: SQL and PL/SQL Fundamentals Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL

More information

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

Table of Contents. PDF created with FinePrint pdffactory Pro trial version Table of Contents Course Description The SQL Course covers relational database principles and Oracle concepts, writing basic SQL statements, restricting and sorting data, and using single-row functions.

More information

Creating and Managing Tables Schedule: Timing Topic

Creating and Managing Tables Schedule: Timing Topic 9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the

More information

5. Single-row function

5. Single-row function 1. 2. Introduction Oracle 11g Oracle 11g Application Server Oracle database Relational and Object Relational Database Management system Oracle internet platform System Development Life cycle 3. Writing

More information

20761B: QUERYING DATA WITH TRANSACT-SQL

20761B: QUERYING DATA WITH TRANSACT-SQL ABOUT THIS COURSE This 5 day course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Course: 20761 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2016 Duration: 24 HRs. ABOUT THIS COURSE This course is designed to introduce

More information

Lab # 4. Data Definition Language (DDL)

Lab # 4. Data Definition Language (DDL) Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Lab # 4 Data Definition Language (DDL) Eng. Haneen El-Masry November, 2014 2 Objective To be familiar with

More information

COURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014

COURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014 COURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014 MODULE 1: INTRODUCTION TO MICROSOFT SQL SERVER 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions,

More information

20761 Querying Data with Transact SQL

20761 Querying Data with Transact SQL Course Overview The main purpose of this course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration,

More information

20461: Querying Microsoft SQL Server 2014 Databases

20461: Querying Microsoft SQL Server 2014 Databases Course Outline 20461: Querying Microsoft SQL Server 2014 Databases Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions,

More information

Microsoft Querying Microsoft SQL Server 2014

Microsoft Querying Microsoft SQL Server 2014 1800 ULEARN (853 276) www.ddls.com.au Microsoft 20461 - Querying Microsoft SQL Server 2014 Length 5 days Price $4290.00 (inc GST) Version D Overview Please note: Microsoft have released a new course which

More information

Using DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.

Using DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database

More information

COURSE STUDENT LEARNING OUTCOMES: See attached or in course s learn.unm.edu

COURSE STUDENT LEARNING OUTCOMES: See attached or in course s learn.unm.edu Syllabus Online IT 222(CRN #43196) Data Base Management Systems Instructor: James Hart / hart56@unm.edu Office Room Number: B 123 Instructor's Campus Phone: 505.925.8720 / Mobile 505.239.3435 Office Hours:

More information

Principles of Data Management

Principles of Data Management Principles of Data Management Alvin Lin August 2018 - December 2018 Structured Query Language Structured Query Language (SQL) was created at IBM in the 80s: SQL-86 (first standard) SQL-89 SQL-92 (what

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Querying Microsoft SQL Server Course 20461D 5 Days Instructor-led, Hands-on Course Description This 5-day instructor led course is designed for customers who are interested in learning SQL Server 2012,

More information

ORANET- Course Contents

ORANET- Course Contents ORANET- Course Contents 1. Oracle 11g SQL Fundamental-l 2. Oracle 11g Administration-l 3. Oracle 11g Administration-ll Oracle 11g Structure Query Language Fundamental-l (SQL) This Intro to SQL training

More information

Querying Microsoft SQL Server 2012/2014

Querying Microsoft SQL Server 2012/2014 Page 1 of 14 Overview This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation

More information

Using DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.

Using DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database

More information

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The basic commands

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST \ http://www.pass4test.com We offer free update service for one year Exam : 1z1-051 Title : Oracle Database: SQL Fundamentals I Vendor : Oracle Version : DEMO Get Latest & Valid 1Z1-051 Exam's

More information

AVANTUS TRAINING PTE LTD

AVANTUS TRAINING PTE LTD [MS20461]: Querying Microsoft SQL Server 2014 Length : 5 Days Audience(s) : IT Professionals Level : 300 Technology : SQL Server Delivery Method : Instructor-led (Classroom) Course Overview This 5-day

More information

The SQL data-definition language (DDL) allows defining :

The SQL data-definition language (DDL) allows defining : Introduction to SQL Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query Structure Additional Basic Operations Set Operations Null Values Aggregate Functions Nested Subqueries

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Course Code: M20461 Vendor: Microsoft Course Overview Duration: 5 RRP: POA Querying Microsoft SQL Server Overview This 5-day instructor led course provides delegates with the technical skills required

More information

Chapter 3: Introduction to SQL

Chapter 3: Introduction to SQL Chapter 3: Introduction to SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 3: Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Querying Microsoft SQL Server 20461D; 5 days, Instructor-led Course Description This 5-day instructor led course provides students with the technical skills required to write basic Transact SQL queries

More information

AO3 - Version: 2. Oracle Database 11g SQL

AO3 - Version: 2. Oracle Database 11g SQL AO3 - Version: 2 Oracle Database 11g SQL Oracle Database 11g SQL AO3 - Version: 2 3 days Course Description: This course provides the essential SQL skills that allow developers to write queries against

More information

Táblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved.

Táblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved. Táblák tartalmának módosítása Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML)

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and

More information

COURSE OUTLINE: Querying Microsoft SQL Server

COURSE OUTLINE: Querying Microsoft SQL Server Course Name 20461 Querying Microsoft SQL Server Course Duration 5 Days Course Structure Instructor-Led (Classroom) Course Overview This 5-day instructor led course provides students with the technical

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the

More information

Course 20461C: Querying Microsoft SQL Server

Course 20461C: Querying Microsoft SQL Server Course 20461C: Querying Microsoft SQL Server Audience Profile About this Course This course is the foundation for all SQL Serverrelated disciplines; namely, Database Administration, Database Development

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Querying Microsoft SQL Server Duration: 5 Days (08:30-16:00) Overview: This course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server. This

More information

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved. Restricting and Sorting Data Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort the rows that are retrieved by a query Use

More information

Answer: The tables being joined each have two columns with the same name and compatible data types, and you want to join on both of the columns.

Answer: The tables being joined each have two columns with the same name and compatible data types, and you want to join on both of the columns. Page 1 of 22 Item: 1 (Ref:Cert-1Z0-071.6.2.4) In which situation would you use a natural join? The tables being joined do not have primary and foreign keys defined. The tables being joined have matching

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL General Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students

More information

SELF TEST. List the Capabilities of SQL SELECT Statements

SELF TEST. List the Capabilities of SQL SELECT Statements 98 SELF TEST The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer.

More information

Oracle Database: SQL and PL/SQL Fundamentals Ed 2

Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Querying Microsoft SQL Server 2008/2012

Querying Microsoft SQL Server 2008/2012 Querying Microsoft SQL Server 2008/2012 Course 10774A 5 Days Instructor-led, Hands-on Introduction This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL

More information

After completing this course, participants will be able to:

After completing this course, participants will be able to: Querying SQL Server T h i s f i v e - d a y i n s t r u c t o r - l e d c o u r s e p r o v i d e s p a r t i c i p a n t s w i t h t h e t e c h n i c a l s k i l l s r e q u i r e d t o w r i t e b a

More information

Structured Query Language (SQL)

Structured Query Language (SQL) Structured Query Language (SQL) SQL Chapters 6 & 7 (7 th edition) Chapters 4 & 5 (6 th edition) PostgreSQL on acsmysql1.acs.uwinnipeg.ca Each student has a userid and initial password acs!

More information

Querying Data with Transact SQL

Querying Data with Transact SQL Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including

More information

RESTRICTING AND SORTING DATA

RESTRICTING AND SORTING DATA RESTRICTING AND SORTING DATA http://www.tutorialspoint.com/sql_certificate/restricting_and_sorting_data.htm Copyright tutorialspoint.com The essential capabilities of SELECT statement are Selection, Projection

More information

Using SQL with SQL Developer 18.2

Using SQL with SQL Developer 18.2 One Introduction to SQL 2 - Definition 3 - Usage of SQL 4 - What is SQL used for? 5 - Who uses SQL? 6 - Definition of a Database 7 - What is SQL Developer? 8 Two The SQL Developer Interface 9 - Introduction

More information

Introduction to Computer Science and Business

Introduction to Computer Science and Business Introduction to Computer Science and Business The Database Programming with PL/SQL course introduces students to the procedural language used to extend SQL in a programatic manner. This course outline

More information

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER Higher Quality Better Service! Exam Actual QUESTION & ANSWER Accurate study guides, High passing rate! Exam Actual provides update free of charge in one year! http://www.examactual.com Exam : 1Z0-047 Title

More information

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus

ORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus ORACLE TRAINING ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL Oracle SQL Training Syllabus Introduction to Oracle Database List the features of Oracle Database 11g Discuss the basic design, theoretical,

More information

Querying Microsoft SQL Server 2014

Querying Microsoft SQL Server 2014 Querying Microsoft SQL Server 2014 Código del curso: 20461 Duración: 5 días Acerca de este curso This 5 day instructor led course provides students with the technical skills required to write basic Transact

More information

Oracle Database 11g: SQL Fundamentals I

Oracle Database 11g: SQL Fundamentals I Oracle Database 11g: SQL Fundamentals I Volume I Student Guide D49996GC11 Edition 1.1 April 2009 D59980 Authors Puja Singh Brian Pottle Technical Contributors and Reviewers Claire Bennett Tom Best Purjanti

More information

QUERYING MICROSOFT SQL SERVER COURSE OUTLINE. Course: 20461C; Duration: 5 Days; Instructor-led

QUERYING MICROSOFT SQL SERVER COURSE OUTLINE. Course: 20461C; Duration: 5 Days; Instructor-led CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: QUERYING MICROSOFT SQL SERVER Course: 20461C; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN This 5-day instructor led course provides students with

More information

Duration Level Technology Delivery Method Training Credits. Classroom ILT 5 Days Intermediate SQL Server

Duration Level Technology Delivery Method Training Credits. Classroom ILT 5 Days Intermediate SQL Server NE-20761C Querying with Transact-SQL Summary Duration Level Technology Delivery Method Training Credits Classroom ILT 5 Days Intermediate SQL Virtual ILT On Demand SATV Introduction This course is designed

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server 20461 - Querying Microsoft SQL Server Duration: 5 Days Course Price: $2,975 Software Assurance Eligible Course Description About this course This 5-day instructor led course provides students with the

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Course 20761A: Querying Data with Transact-SQL Page 1 of 5 Querying Data with Transact-SQL Course 20761A: 2 days; Instructor-Led Introduction The main purpose of this 2 day instructor led course is to

More information

20461D: Querying Microsoft SQL Server

20461D: Querying Microsoft SQL Server 20461D: Querying Microsoft SQL Server Course Details Course Code: Duration: Notes: 20461D 5 days This course syllabus should be used to determine whether the course is appropriate for the students, based

More information

BraindumpsVCE. Best vce braindumps-exam vce pdf free download

BraindumpsVCE.   Best vce braindumps-exam vce pdf free download BraindumpsVCE http://www.braindumpsvce.com Best vce braindumps-exam vce pdf free download Exam : 1z1-061 Title : Oracle Database 12c: SQL Fundamentals Vendor : Oracle Version : DEMO Get Latest & Valid

More information

Database Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 6-4 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control

More information

Full file at

Full file at David Kroenke's Database Processing: Fundamentals, Design and Implementation (10 th Edition) CHAPTER TWO INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) True-False Questions 1. SQL stands for Standard

More information

Creating Other Schema Objects. Copyright 2004, Oracle. All rights reserved.

Creating Other Schema Objects. Copyright 2004, Oracle. All rights reserved. Creating Other Schema Objects Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data

More information

Introduction to Oracle9i: SQL

Introduction to Oracle9i: SQL Introduction to Oracle9i: SQL Student Guide Volume 1 40049GC11 Production 1.1 October 2001 D33990 Authors Nancy Greenberg Priya Nathan Technical Contributors and Reviewers Josephine Turner Martin Alvarez

More information

Lecture 6 - More SQL

Lecture 6 - More SQL CMSC 461, Database Management Systems Spring 2018 Lecture 6 - More SQL These slides are based on Database System Concepts book and slides, 6, and the 2009/2012 CMSC 461 slides by Dr. Kalpakis Dr. Jennifer

More information

SQL Interview Questions

SQL Interview Questions SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic

More information

Chapter 3: Introduction to SQL

Chapter 3: Introduction to SQL Chapter 3: Introduction to SQL Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 3: Introduction to SQL Overview of the SQL Query Language Data Definition Basic Query

More information

Oracle Database 12c SQL Fundamentals

Oracle Database 12c SQL Fundamentals Course Overview This course takes a unique approach to SQL training in that it incorporates data modeling theory, relational database theory, graphical depictions of theoretical concepts and numerous examples

More information

Exact Numeric Data Types

Exact Numeric Data Types SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while

More information

DB2 SQL Class Outline

DB2 SQL Class Outline DB2 SQL Class Outline The Basics of SQL Introduction Finding Your Current Schema Setting Your Default SCHEMA SELECT * (All Columns) in a Table SELECT Specific Columns in a Table Commas in the Front or

More information

"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary

Charting the Course to Your Success! MOC D Querying Microsoft SQL Server Course Summary Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation

More information

"Charting the Course... MOC C: Querying Data with Transact-SQL. Course Summary

Charting the Course... MOC C: Querying Data with Transact-SQL. Course Summary Course Summary Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge

More information

20761C: Querying Data with Transact-SQL

20761C: Querying Data with Transact-SQL 20761C: Querying Data with Transact-SQL Course Details Course Code: Duration: Notes: 20761C 5 days This course syllabus should be used to determine whether the course is appropriate for the students, based

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Duration: 5 Days Course Code: M20761 Overview: This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can

More information

Oracle Database: Introduction to SQL/PLSQL Accelerated

Oracle Database: Introduction to SQL/PLSQL Accelerated Oracle University Contact Us: Landline: +91 80 67863899 Toll Free: 0008004401672 Oracle Database: Introduction to SQL/PLSQL Accelerated Duration: 5 Days What you will learn This Introduction to SQL/PLSQL

More information

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH 2017 Institute of Aga Network Database LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece of

More information

Oracle 12C DBA Online Training. Course Modules of Oracle 12C DBA Online Training: 1 Oracle Database 12c: Introduction to SQL:

Oracle 12C DBA Online Training. Course Modules of Oracle 12C DBA Online Training: 1 Oracle Database 12c: Introduction to SQL: Course Modules of Oracle 12C DBA Online Training: 1 Oracle Database 12c: Introduction to SQL: A. Introduction Course Objectives, Course Agenda and Appendixes Used in this Course Overview of Oracle Database

More information