You are on page 1of 90
1124722, 1051 PM “Test Your Understanding (copy): Attempt review % Dashboard / App Der / RDBMS / Data Maniouaton Language / Test Your Understanding (copy) Started on Tuesday, 16 August 2022, 502 PM State Finished Completed on Tuesday 16 August 2022, 508 PM Time taken Sins 54 secs Marks 4.00/5.00 ‘Grade 80.00 out of 100.00 Feedback Congatulations! You have passed by securing moce than 80% Question 1 ek vont 100 Match appropriately Truncate Removes the entire data from the table, while the structure remains intact. Drop Removes the table itself from the database, Delete Removes all or only the rows specified from the table, Your answer is correct. ‘The correct answer is: Truncate » Removes the entire data from the table, wile the structure remains ntact, Orop ~» Removes the table tel rom the database, Delete» Removes all ar nly the rows specified from the table Question 2 It is possible to update more than one column witha single UPDATE statement. State tue or flee Select one Tey False ‘The correct answer is"Tue hitpsiiaccentueleaming tekstac.comimadiquiireview.php?attempt=8076808emid=4605 19 1124722, 1051 PM “Test Your Understanding (copy): Attempt review Question 3 To have ll the rows deleted from the table using delete statement, you must specify the query with WHERE clause tha rows. State tue of false Select one Tue False v The correct answers Fale’ Question 4 To change the structure of the table weuse ALTER TABLE Y Syntax Your answer is correct. ‘The correct answers To change the structure of the table we use (ALTER TABLE] Syntax Question 5 Which statement/command would not cause 2 transaction to end? ROLLBACK SELECT CREATE commmnx Your answers ‘The correct answers seLecT 4 Post-Quiz Jump to hitpsiiaccentueleaming tekstac.comimadiquiireview.php?attempt=8076808emid=4605 1124722, 10551 PM “Test Your Understanding (copy): Attempt review hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8076808emid=4605 Pre-Quiz > 39 18123922, 157 AM Post Quiz Attempt review % Dashboard / App Der / RDBMS / Data ControlLanguage & Database Objects / ost-Ouiz Started on Thursday, 18 August 2022, 450 PM State Finished Completed on Thursday, 18 August 2022, 4:54 PM Time taken 4 mine 8 secs Marks 6.00/8.00 Grade 100.00 out of 100.00 Feedback Congatulations! You have passed by securing moce than 80% Question 1 ‘Alan Index is based on expressions Select one Non clustered Index . Unique index ©. Function Based 4. Clustered Index Your answer is correct ‘The correct answers: Function Based Question 2 [An owner can give specific privileges an the owner's objects to others. State Select one Tey False ‘The correct answer fs"Tue. hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8216356cmid=1962 8123922, 157 AM Post Quiz Attempt review Question 3 Which abject privileges canbe granted ona view? Select one ‘DELETE, INSERTSELECT ,_ ALTER, DELETE, INSERT, SELECT DELETE, INSERT, SELECT, UPDATEW none Your answer is corect. ‘The corect answer is: DELETE, INSERT, SELECT, UPDATE Question 4 ‘Which SaL statement would you use to remove a view caled EMP.DEPT_VU from your schema? Select one REMOVE emp_dept nu b._ REMOVE VIEW emp. dept DROP VIEW emp. dept iv 4. DROP emp. dept wu DELETE VIEW emp dept wi 1. DELETE emp. dept wu Your answer is correct ‘The correct answer i: DROP VIEW emp. dept wu: hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8216356cmid=1962 218 8123922, 157 AM Post Quiz Attempt review Question 5 You need to crest the patent_id_seq sequence tobe used with the patient table's primary key column, The sequence should begin at 1000, havea maximum value of 999999999, never reuse any numbers, and increment by 1 \Wiich statement would you use to complet this task? Select one 1, This task cannot be accomplished b. CREATE SEQUENCE patient seq START WITH 1000 MAXVALUE 999999999 STEP BY; CREATE SEQUENCE patlentid_seq (ON patent (patient) MINVALUE 1000 MAXVALUE 999999999 INCREMENT BY Nocveue: 4. CREATE SEQUENCE patient id_seqv START WITH 1000 MAXVALUE 999999999 Noovete; Your answer is correct ‘The correct answer i: CREATE SEQUENCE patient i.seq START WITH 1000 MAXVALUE 999990999 NooveLe: hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8216356cmid=1962 38 8123922, 157 AM Post Quiz Attempt review Question 6 Which saL statement grants a privilege to all the database users? Select one | grant select on department to PUBLIC. 1, gran select on department to ALL USERS; rant select on department to ALL; 44. gram select on department to PRIVATE; Your answer is corect. ‘The correct answers: grant select on department to PUBLIC; Question 7 ‘CREATE INDEX orp. dept. ile (ON employee(dept ic); Which ofthe following statement are true with respect tothe above index? Select one May reduce the amount of ds /0 Yor INSERT statements b. Ineease the chance of fll table scans. May reduce the amount of disk V0 for SELECT statements. 4. Store anindexin the EMPLOYEE table. {© Override the unique index ereated when the FK relationship was defined Your answer is correct. ‘The correct answer is: May reduce the amoytoF isk /O for SELECT statements hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8216356cmid=1962 46 8123922, 157 AM Post Quiz: Attempt review Question 8 ‘The owner has all he privileges onthe object. State true or False Select one Tue v The correct answer is"Tue. “< Data Control Language & Database Objects, Jump to hitpssaecentureleaming tokstac.comimadiquiirviw php2attompl=821635&emid=1962 18123922, 157 AM Pre-uiz Attempt review 1 Dashboard / App Der / RDBMS / Data ControlLanguage & Database Objects / PreOuiz Started on Thursday, 18 August 2022, 5:03 PM State Finished Completed on Thursday, 18 August 2022, 5:07 PM Time taken 4 mine Marks 9.50/10.00 Grade 95.00 out of 100.00, Feedback Congratulations! You have passed by securing moce than 80% Question 1 ‘Mr. Johns the president of «company. Five managers report to him. al other employees report to these managers. Examine the code: ‘SELECT ermployee ename FROM emp employee WHERE employee.empno NOT IN (SELECT manager mor FROM emp manages) ‘The above statement tums no rows selected, asthe result Why?” Select one 4 Allemployees have a manager b._ None ofthe employees has a manager & NOTIN operatoris not allowed in subqueries. 4. ANULL value ¢ returned fom the subquery Your answer is correct ‘The correct answer i: A NULL values tetured from the subquery hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 8123922, 157 AM Pre-Quiz Attempt review Question 2 Equijoinis called a Select one Equal oin b. Oxter Join fe. Selfdoin 4. Simple Joiny Your mer is corect. ‘The correct answers: Simple Join Question 3 Lolning table oss called as Select one Non Equi Join . Selldoing Outer Join 4. Equisoin Your answer is corect. ‘The correct answers: Slf Join hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 29 8123922, 157 AM Pre-Quiz Attempt review Question 4 ‘The jon produces the erass product oft tables, Select one a Oster b. seit ©. Cross) 6 Equi Your answer is corect. ‘The correct anaweris: Cross hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 39 8123922, 157 AM Pre-Quiz Attempt review Question 5 Party caret consider the below tales: ‘customer Table [eon Name Ppaatpe Feonstaint usin INomber Px stare Wrchar ustedaress frarchar ust eeaitint INomber rade Table olumn Ware Patatyne Jeonstaint lead isha Iserval INomber [raver INomber To display names and grades of customers who have the highest ereit mit Which $a statements would accomplish the task? Select one of more | SELECT custname, grace FROM customers grades WHERE cust credit Jimi IN (SELECT MAX(Gusteredi iit) FROM customers) AND MAX(cust_crect mit) BETWEEN startval AND endval: b, SELECT custname, grade FROM customers, grades WHERE (SELECT MAX(cust_credt imi) FROM customers) BETWEEN startal ane endval AND cust_erediJimit BETWEEN startval AND endval; SELECT custname, grade v FROM customers grades WHERE cust ere FROM customers) (SELECT MAX(cust cet it) AND cust ered Jimit BETWEEN startval AND endval: 4. SELECT eustname, grade FROM customers grades WHERE (SELECT MAX(custcreit mt) FROM customers) BETWEEN startval and endval; Your answer is partially corect Youhave correctly selected 1 ‘The correct answers are: SELECT custname, grade FROM customers, graces WHERE cust erect limit» (SELECT MAX(cust-credt im) hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempt=8217256emid=1987 49 8123122, 157 AM Pre-uiz Attempt review FROM customers) AND cust.creitimit BETWEEN starval AND endval, SELECT custname, grade FROM customers, graces WHERE (SELECT MAK(cust credit) FROM customers) BETWEEN statval and enéval [AND custcredit_imit BETWEEN startval AND endvat Question 6 ark yon tot 180 Consider the below table Products Table olumn Ware Patsivee [eonsvaint Proa.ia INomber x Prod.name archer Prod. ist price eh (custereaicimt INomber What woulé be the outcome of executing the below SQL statement? select proc_name from products where prod id in select prod_ja from products where prod ist_pice=( select max(prodistprice) from products where prod lst pricec( select max(prodist_pricefrom products) Select one a, It shown the names of products whose list price isthe second highest inthe tablew” , It shown the names ofall products whose lit price I ees than the maximum ist pice 6 Itproduces an eror 4. It shows the names ofall product in the table Your answer is corect ‘The correct answer ie: It shown the names of rodittsWhosAlist rice isthe second highest in the table hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 ry 8123922, 157 AM Pre-Quiz Attempt review Question 7 Consider the below orders table [Folin Name Pane [Ponevaint ded JNorber PK lower sate lose erode jarcar (ostomer 4 INomber order sora INomber(@2) ‘Theres only one customer with the CUST_LAST_NAME column having value Roberts. Which INSERT statement should be used to adda ‘onto the ORDERS table for the customer whose CUST_LAST_NAME is Roberts and CREDIT_LIMIT is 600? Select one INSERT INTO otders VALUES{ 1/1¢mar-2007"rec; (SELECT customer_jd FROMY customers WHERE cust Jast_name “Raberts! AND b, INSERT INTO{ SELECT o.order.id.ordero.order_mode customer id.order. total FROM orders o, customers c WHERE o.customer_id=¢.customer_[é AND c.cust fast name Roberts’ and c.credit. mit =600) ‘VALUES (1/10-mar-2007 direct & Acustomer_e.1000); FROM customers WHERE cust ast-name “Roberts AND INSERT INTO orders (order.id order dateorder made, (SELECT customer.id FROM customers [WHERE cust Jast name “Roberts! AND credit mit =600) order total} VALUES (1/10-mar-2007 direct & Acustomer_e.1000); 4, INSERT INTO orders (order.id order datesorder_made (SELECT customer_id FROM customers [WHERE cust Jast name “Roberts! AND credit limit =600) order total) VALUES (1/10-mar-2007 direct &. custome 41000), Your answer is corect. ‘The correct answers: INSERT INTO orders VALUES( 1;10-mar-2007%rect, (SELECT customer.id FROM customers WHERE cust jas name =Roberts! AND xed it =600) 1000 hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 ae 8123922, 157 AM Pre-Quiz Attempt review Question 8 used ta retiave record that donot meet the join condition Select one 2 Non Equi Join b. Outer Joinw fe. Selfdoin 4. Equi doin Your answer is corect. ‘The correct anawer is: Outer Join Question 9 The. Join i based onal columns in the two tables that have the same column name, Select one a Ful outer b. Lettouter & Natualv 4. Cross Your answer is corect. ‘The correct answers: Natural hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=8217256emid=1987 119 8123922, 157 AM Pre-Quiz Attempt review Question 10 To delete rows from the SALES table where the PROMO_NAME column inthe PROMOTIONS table hae either Blowout sale or everyday low price as values, Which DELETE statements ae val? (Choose all hat apply.) Select one or more a. DELETE ¥ FROM sales WHERE promo jd IN (SELECT promo FROM promotions [WHERE promo,name ="blowout sale) (OR promo.name = everyday low price b. DELETE FROM sales WHERE promi =(SFIFOT reamed FROM promotions WHERE prome_name = blowout sale) AND promo.id= (SELECT promo.id FROM promotions WHERE prome name = everyday low pice): DELETE v FROM sales WHERE promo J IN (SELECT promo id FROM promotions [WHERE promo.name IN (blowout sale‘everyday low price), 4, DELETE ¥ FROM sales WHERE prome Jd = (SELECT promo id FROM promotions [WHERE promo,name = blowout sale) (SELECT promo FROM promotions OR promo. WHERE prome_name = everyéay low ple’ Your answer is correct. ‘The correct answers are: DELETE. FROM sales WHERE promo je FROM promotions WHERE prome_name » blowout sale) (OR prome_jd = (SELECT promo_id FROM promotions WHERE promo name ="everyday low price), DELETE FROM sales WHERE promod IN (SELECT promo id FROM promotions WHERE proma_name » "blowout sale) (OR promo_name = everyday low price’, DELETE FROM ales WHERE promeid IN (SELECT promo_id hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8217256emid=1987 ae (SELECT promo.id 8123122, 157 AM Pre-uiz Attempt review FROM promotions WHERE promaname IN (blowout saleeveryday low price); 4 Test Your Understanding (copy) Jump to hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempt=8217256emid=1987 DATABASE OBJECTS - Introduction > ry 18123722, 156 AM Test Your Understanding (copy): Attempt review 1 Dashboard / AppDer / RDBMS / Joins & Subquery / Test Your Understanding (copy) Started on Thursday, 18 August 2022, 1:56 PM State Finished Completed on Thursday, 18 August 2022, 2.05 PM Time taken 10 mins 41 secs Marks 4.00/5.00 Grade 0,00 out of 100.00, Feedback Congatulations! You have passed by securing moce than 80% hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8201256cmid=4684 M4 18123722, 156 AM Test Your Understanding (copy): Attempt review (Question 1 You issue the following SQL statement on the CUSTOMERS table o display the customers who are inthe same country as customers withthe fast name king"and who ret iis less than the maximur credit itn countries that have customers with the last name “koa SQL> SELECT cust_Io,cust_last_name FROM customers WHERE country id (SELECT couniry_i FROM customers WHERE cust_fast_name =ing’) ‘AND cust_credit limit < (SELECT MAX(cust_credit_imit) FROM customers WHERE country id INSELECT county id FROM customers WHERE cust last_name="King'), Which statements true regarding the oitorl ofthe above query? Select one 4 Itproduces an ecto ane the < operator should be replaced by 46 18123722, 156 AM Post Quiz Attempt review 1% Dashboard / App Der / RDBMS / Joins & Subquery / Post Quiz Started on Thursday, 18 August 2022, 1.22 PM State Finished Completed on Thursday, 18 August 2022, 1:35 PM Time taken 12.mins 48 secs Marke 10.09/10.00 Grade 100.00 out of 100.00 Feedback Congatulations! You have passed by securing moce than 80% Question 1 Evaluate tis SQL statement SELECT firstname, commission FROM employee WHERE commission = (SELECTeommission FROMemployee WHEREUPPER(rs_rame) ‘scorr) What would cause this statement to fail? Select one ‘2 Scott has @ NULL commission value. b,_ Scotthas a zero commission valu, There is no employee wth the frst name Scott. 4. Thore is more than one employee with he fst name Scott (The FIRST_NAME values inthe database are in lowercase, Your answer is correct ‘The correct answers: There is more than aye ployee ithe rst name Seot, hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 18123722, 156 AM Post Quiz Attempt review Question 2 To display the names of employees who earns more than the average salary ofall employees. SELECT ast name, first.name FROMemployee WHEREsalary > AvG(ealay), Which change should you make to achieve the desired results? Select one ‘2. Use a subquery inthe WHERE clause to compare the average salary value.” Move the function tothe SELECT clause and add a GROUP BY clause Change the function inthe WHERE clause. 4. Move the function 16 the SELECT clause and add @ GROUP BY clause and a HAVING clause Your answer is corect. ‘The correct answers: Use a subqueryin the WHERE clause to compare the average salary valu. hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 29 18123722, 156 AM Question 3 Consider the below tables: Post Quiz Attempt review Employee Table [ootumn Name Ppatatype Joonstraine Fame archar2(20) lemon INumber(i0) Px kay IRorberti02) Tax Table fookinn Name Ppatatype foonstaine JTexarade Ihurber (Cowal INomber(T0) vgheal Inumber(902) ‘We want to create a report that displays the employee det ong withthe tax category of each employee. The tax category is determines by comparing the salary ofthe employee from the EMP table to the lower and upper salary values in the TAX table. Which SELECT statement produces the required resuts? Select one 4. SELECT ename,e salary. ttaxgrade FROM emp e,taxt WHERE e salary IN tlowsal AND Lhighsa b. SELECT ename,e salary ttaxgrade FROM emp e,taxt [WHERE e salary BETWEEN tlowsal AND thighsat ©. SELECT ename,e salary, ttaxgrade FROM emp etext WHERE e salary 4. SELECT ename,e-salary,ttaxgrade FROM emp e,taxt WHERE e salary <= tlowsal OR e salary >=thgheal, Your answer is correct ‘The correct answer i: SELECT ename,e salary ttaxgrade FROM emp e,taxt WHERE e.salary BETWEEN tlowsal AND thighsal, hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 39 18123722, 156 AM Post Quiz Attempt review Question 4 In which two eases would you use the USING clause? (Choose twa) Select one or more ‘8. Thetables tobe joined have columns with the same name and compatible datatypes. ._ Thetables tebe joined have columns ofthe same name and different datatypes The ables tobe joined have multiple NULL colurnns 4. You want to create a nonequicin, Your answer is cortect. ‘The correct answers are: The tables to bejoined have columns of the same name and diferent columns with the same'name and compatible datatypes. Question 5 Inwhich cases would you use an outer join? Select one: ‘The tables being joined have only unmatched data b. The tables being joined have NOT NULL columns. The tables being joined have only matched data, 4. Only when the tables havea primary key/forelan ky relationship, The tables being joined have both matched and unmatched data. Your answer is corect. ‘The corect answer is: The table being jined have both matched and unmatched data, hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 types, The table tobe joined have 49 18123722, 156 AM Question 6 ‘The NOT operator ean be used with ___ operators Select one or more a ANY bo IY a ALY Your answer is cortect ‘The correct answers are-IN, ANY, ALL Post Quiz Attempt review hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 ry 18123722, 156 AM Post Quiz Attempt review Question 7 consider the fellowing table: Product Table [fotunin Name Ppatatype Joonstraine frod.name archar2(20) rode (Number(i0) Px ‘Customer Table [cotumn Name lostatype Joonstaine feustlastname —————*archara(20) lrustle INombertto) Pe feustety jvarchara(a0) Sales Table [Foturin Name Datatype Poorstraine prod.ie INumber(i0) Fe lestle INumberti0) Fe favanty sold Inurbeia2) Generate a report that gives details of the customer’ ast name, name of the product and the quantily sold forall ustomers in Tokye Which two queries give the required resut? (Choose two) Select ane of more 1. SELECT e.custJast_namep prod.name,s quantity sold FROM products p JOIN sales 5 USING (prodia) ON|p prods prodLid) JOIN customers © UsING(cust ie) WHERE ¢ cust city= Tokyo; b,_ SELECT ccust last namep prod.names quantiy_ sole FROM products p JOIN sales ON(p prod jas prod. id) JOIN customers © ON(s-cust e.cust id) WHERE ¢ cust sity Tokyo: ©. SELECT ccustlast name prod.name,s quantity solév FROM sales s JOIN products p USING (prodie) JOIN customers © USING (cust) hitpsiiaccentuelearing tekstac.comimadiquiirview php?attempt=8198526emid=1955 8123722, 156 AM Post Quiz Attempt review WHERE ccust city ToKys! 4 SELECT ecust ame prod_name.s.quantity_sold FROM products p JOIN sales s JOIN customers © ON(p prod.ides prod.id) ON(s.cu WERE ccust sty=ToKye cust id) Your answer is correct ‘The corect answers are: SELECT c.cust last namep prod name.s.quantity_sold FROM sales ¢ JOIN products p USING (prod) JOIN customers © USING (cust_6) WHERE e.custitys"Tokys, SELECT c.custJast.namepp prod.name.s. quantity. sold FROM preducts p JOIN sales 5 ONG prodides prod. id) JOIN customers ¢ ON(s.cust d=e.cust i) WHERE o.custcity="Tohy: hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 119 18123722, 156 AM Post Quiz Attempt review Question 8 Which SELECT statement splays all the employees who donot have ay subordinates? Select one a. SELECT eename FROM emp e WHERE e empno NOT IN (SELECT mmgr FROM emp m); b, SELECT eename FROM emp e [WHERE emgr IS NOT NULL; ©. SELECT eename FROM emp e WHERE e emana IN (SELECT mmgr FROM emp m) 4, SELECT eename v FROM emp e WHERE e empno NOT IN (SELECT mmer FROM emp m [WHERE mage IS NOT NULL} Your answer is correct ‘The correct answer i: SELECT e.ename FROM emp e WHERE e.empno NOTIN (SELECT mgr FROM emem WHERE mmr IS NOT NULL): hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198526emid=1955 ae 18123722, 156 AM Post Quiz Attempt review Question 9 SELECT ast name, fist.name FROM employee WHERE salary IN (SELECT salary FROM employee WHERE dept.no = 308 dept_no = 5) Wich values are deplayea? Select one {lastname and ist name ofall employees except those working in department 3 or 5 »b. lastname and fist name ofall employees with the same salary as employees in department 3 or SY” lastname and iret name of only the employees whose salary falls inthe range of salaries fram department 3 or 4, last name and fist name of only teemployees in cepartment number 3 oF 5 Your answer is corect ‘The correct answers: lastname and frst name of all employees withthe same salary as employees in department 3 or § Question 10 Which operator is NOT appropriate in tg join condition of @ non-equjin SELECT statement? Select one 4 Noperator b. BETWEEN x AND y operator © equal operator 4. greater than or equate operator ©. UKE operator Your answer is correct. ‘The correct answers: equal operator “4 Display Total Amount details Jump to ‘Test Your Understanding (copy) > hitpsiaccentureleaming tekstac.comimadiquiireview php?attempt=8198528emid=1955 ry 18123722, 155.AM Pre-uiz Attempt review 1% Dashboard / AppDer / RDBMS / Joins & Subquery / PreOuiz Started on Thursday, 18 August 2022, 1.38 PM State Finished Completed on Thursday, 18 August 2022, 1:54 PM Time taken 16 mins 11 secs Marke 10.09/10.00, Grade 100.00 out of 100.00 Feedback Congratulations! You have passed by securing moce than 80% Question 1 ‘To create a report displaying employee last names, department names, and locations. Which query should you use to create an equtjoin? Select one 1 SELECT lastname, department name, locaton id FROM employees, departments b._ SELECT employees at ame, departments department-name, ‘departments ocation Jd FROM employees e, departments WHERE e department sd department Id SELECT elast name, ddepariment-name, location id FROM employees departments d WHERE manages id =manager ic 4, SELECT elast.name,d department-name, dlocatonid¥ FROM employees , departments d WHERE o department department Your answer is correct ‘The correct answer i: SELECT east name| department, locaton id FROM employees e, departments d WHERE e deparment.idv@.deparmen id; hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 18123722, 155.AM Pre-Quiz Attempt review Question 2 ‘The following query is writen to retrieve all thase product ID from the SALES table that have more than 55000 sold and have been ordered mare than 10 times: ‘SELECT prod FROM sales WHERE quantity_sold > 55000 AND COUNT(*}>10, {GROUP BY prod jd HAVING COUNTI*)>10; Which statements rue regarding this SQL statement? Select one 1 Itexecutes successfully but produces no sult because COUNT(prod. if) shouldbe used instead of COUNT) , Itexecutes successfully and generates the requites result, _Itproduces an error because COUNT (*) shouldbe only inthe HAVING clause and not inthe WHERE clause. ¥ 4. Itproduces an eror because COUNT (*) shouldbe specified the SELECT clause also. ‘The correct answer: produces an eror because COUNT (*) shouldbe only inthe HAVING clause ané not inthe WHERE clause. Question 3 \ihich statement woulécispay the highest cre limit availabe in each income evelin each cin the Customers table? Select one a. SELECT cust.cty, cust jncome fevel MAX(cust credit imi), FROM customers [GROUP BY cust, custincome. level MAX (custcreit imi); b._ SELECT cust cy, cust jncome Jevel MAX(cust credit) ¥ FROM customers GROUP BY custsity cust income level, SELECT cust city, cust Jncome Jovel MAX(cust credit imi) FROM customers (GROUP BY cust_crecit mit, cust income Jove, cust ty 4. SELECT custcity, cust Income lev MAX(cust.creat imi) FROM customers (GROUP BY cust_sty cust income. Jere ust eeu fit ‘The correct answer is: SELECT cust city, cust Income, level MAX(cusL ered Limit) FROM customers (GROUP BY cust city, custincome.Jeve hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 18123722, 155.AM Pre-Quiz Attempt review Question 4 Which saL statement produces an eror? Select one ‘8. SELECT department dj ie, AVO(eaary) FROM emp.deot wu {GROUP BY department. job. b._ SELECT job 4, SUM(calary) FROM emp dept vu WHERE department id IN (10,20) (GROUP ay job id HAVING SUM(calary) » 20000; SELECT department, SUMIsalary) FROM emp.deat wu [GROUP BY department. id 4. None of the statements prodice an err al are valid. fe. stecr* FROM emp.dept.w ‘The correct answer: None of the statements produce an error alae valid hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 39 18123722, 155.AM Pre-Quiz Attempt review Question 5 Which statements woule execute successfully? Select one or more: SELECT student name,subject! FROM marks [WHERE subject > AvG(subect ._ SELECT SUM (DISTINCT NVL(subjectt)) MAX(subjectt) FROM marks WHERE subject! > subyet2: SELECT student name SUM (subject!) FROM marks WHERE student.name LIKE Rf 4. SELECT SUM (eubjectT+subject2+eubject3) ¥ FROM marks WHERE student name IS NULL ‘The correct answers are: SELECT SUM (DISTINCT NVL(subject,).MAX(ubject) FROM marks WHERE subject! > eubject2 SELECT SUM (subject? +eubject2+eubject9) FROM marks WHERE student name IS NULL, hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 49 18123722, 155.AM Question Pre-uiz: Attempt review 6 ‘The COMMISSION colurmn shows the monthly commission eamed by the employes, femp id peru [commission f fo ison E leo frooo B fio fro json 5 jso jaoo e ho feoo ir fio le 0 jso0 Which tasks would requie sub queries o joins in order tobe performed in a single step? Select ane of more b Finding the total commission earned by the employees in department 10 Finding the number of employees who eam a commission thats higher than the average commission ofthe company Listing the employees who earn the Same’amount of commission as employee 3" Listing the departments whose avétagedommissi Is more that 600 Listing the employees whose anal commission is more than 6000 Listing the employees who do not ezmn commis 0 on and who are working fr department 20 in descending order of the employee Your answer is correct. ‘The correct answers are: Listing the employees who earn the same amount of commission as employee 3, Finding the number of ‘employees who eam a commission that i higher than the average commission of the company hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 58 18123722, 155.AM Pre-Quiz Attempt review Question 7 Which statements are tre regarding the USING and ON clauses in tblejoins? Select ane or more: ‘4. Both USING and ON clause can be use for equijoins and nonequijins ._ The ON clause can be used to ln tables on columns that have different names but compatible data types. & The WHERE clause canbe used o apply ailtional conditions in SELECT statement containing the ON or the USING clause. ¥ 4. Maximum of one pair of columns canbe joined betwe two tables using the ON clause Your answer is correct, ‘The correct answers are-The"ON claude can be used to join tables on columns that have efferent names but compatble datatypes, The WHERE clause can be used to apalyadltional conditions in SELECT statement containing the ON orthe USING clause Question 8 To display the names of employees who earns more than the average salary of all employees. SELECT lst name, firstname FROMemployee \Wihich change should you make to achieve the desired resus? Select one ‘8. Move the function tothe SELECT clause and add a GROUP BY clause and a HAVING clause. Change the function inthe WHERE clause ‘6 Move the function tothe SELECT clause and add @ GROUP BY clause. 4. Usea subquery in the WHERE clause fo compare the average salary value. ‘The correct answers: Use a subquery in the WHERE clause to compare the average salary value. hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 ae 18123722, 155.AM Question 9 Consider the below tables: Pre-uiz: Attempt review Promotions Table [eotmn Name Pxanpe [eonsvaint Frome INomber Pc Fromo-name Wrchar froma beaindate foate romoend.aate pare Sales Table olumn Ware Paine Jeonstaint Friomoa arbor ix loustia JNomber Ie Fives pate ‘customer Table [column Name Peat Jeonstant std INomber Px ust name Werhar ‘The Below query will generat a report showing the promo name along with the customer name for allpreducts that were sold during thelr promo campaign and before 30th October 2007, ‘SELECT prome_name.cust name FROM promotions p JOIN sales s (ONtime_jd BETWEEN promo_egin date AND promo.end sate) JOIN customer 6 ON (6.cust_d = ¢.cust_d) AND time. ld « 30-00-2007; Wich statements true regarding the above query? Select one | Itproduces an error because equljoin and nonequljoin conditions cannot be used inthe samme b._Itproduces an error because the join order of the tables is incorect, & Itexecutes successfully and gives the required result 4. TRexecutes successfully but does not give the required result. Your answer is correct. The correct answer is: executes successfully but doesnot give the required resuh hitpsiiaccentuelearing tekstac.comimadiquiireview.php?attempt=8199986emid=1912 119 18123722, 155.AM Pre-Quiz Attempt review Question 10 SELECT cust_ety, COUNT(cust lastname) FROM customers WHERE cust erect mit» 1000 GROUP BY cust-city HAVING AVG(cust_credi_imit) BETWEEN 5000 AND 6000, Wich statements true regarding the outcome ofthe above query? Select one 4 Date functions b, Itexecutes successfull: 6 Itreturs an eft Bechuge WHERE and HAVING clauses cannot be used to apply conctions on the same columa, 4. Itreturns an erfor because the BETWEEN operator cannot be used the HAVING clause. 16 Irretums an err because WHERE and HAVING clauses cannet be use inthe same SELECT statement Your answer is corect ‘The correct answers: executes successfully << Test Your Understanding (copy) Jump to. JOINS & SUB-QUERIES Introduction hitpsiaccentureleaming tekstac.comimadiquiireview.php?attempt=8199986cmid=1912 ae 18123722, 155.AM Pre-uiz: Attempt review hitpssaecentureleaming tokstac.comimadlquireview php2attompl=819998&emid=1912 18123722, 155.AM Test Your Understanding (copy): Attempt review ® Dashboard / AppDev / RDBMS / Function-Scalar& Aggtegate / Test Your Understanding (copy) Started on State ‘Competed on Time taken Marks Grade Feedback Question 1 uteday, 18 August 2022, 116 PM Finished ‘Thursday, 18 August 2072, 121 PM Sins 6 sece +4.00/5.00 180,00 ou of 100.00, Congratulations! You have passed by securing more than 80% ‘Single row function accepts only a single argument State tue or fase. Select one True Falew ‘The corect answers False’ hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempt=8198036cmid=4609 18123722, 155.AM Test Your Understanding (copy): Attempt review Question 2 Using the CUSTOMERS table, you need to generate 2 report that shown the average credit imit for customers in WASHINGTON and NEW YORK. Which SQL statement would produce the required result? Select one a. SELECT cust city AVG(cust_ereditJimit) FROM customers WHERE cust ity IN (WASHINGTONNEW YORK) GROUP BY custeredtimteustcty, b._ SELECT cust city AVG(cust credit Jimit) FROM customers WHERE cust ity IN (WASHINGTON.NEW YORK) GROUP BY cust tycust_eredt limit SELECT cust AVG(cust ered Jimit) FROM customers WHERE cust_city IN (WASHINGTON: NEW YORK) GROUP BY cust city, 4. SELECT cust city AVG(NVL custo Iii.) FROM customers WHERE cust sity IN (WASHINGTON:NEW YORK) Your answer is corect ‘The correct answer is: SELECT cust cityAV(cust_credt mit) FROM customers WHERE cust city IN (WASHINGTON;NEW YORK) GROUP BY cust city, Question 3 ek yon ett 100 Which ofthe following clause is the last clause inthe select statement? Order By Croup By Having Where Your answer is cortect ‘The correct answers orser By hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8198036cmid=4609 28 18123722, 155.AM Test Your Understanding (copy): Attempt review Question 4 ‘choose the missing clauses inthe order of execution ofa query, where, __, having orderby. select fromgroup by fromgroup byselect select group byfrom® fromselectgroup by Your answer is incorrect. ‘The correct answers tromgroup byselect Question 5 State Tue oF False. Single row functions work on single row and gives single output per ow whereas aggregate functions work on multiple rows and gives single output asa whole. Select one Tew False ‘The correct answer is"Tue 4 Post-Quiz Jump to Pre-Quiz > hitpsiaccentuelearing tekstac.comimadiquiireview php?attempt=8198036cmid=4609 39 8123722, 154 AM Post Quiz Attempt review 1% Dashboard / AppDer / RDBMS / Function: Scalar & Aggregate / Post Oulz Started on Thursday, 18 August 2022, 12:46 PM State Finished ‘Completed on Thursday, 18 August 2022, 1253 PM Time taken 7 mins 19 secs Marke 10.09/10.00 Grade 100.00 out of 100.00 Feedback Congratulations! You have passed by securing moce than 80% Question 1 We need to analyze how long your orders take tobe shipped from the dat thatthe orders placed, To do this, you must create a report that displays the customer number, date ordered, date shipped, and he number of months in whole numbers from the time the order i placed to the time the order i shioped. Which statement produces the required results? Select one ‘a. SELECT cust orderdate,chipdate, v ROUND(MONTHS. BETWEEN (shipdate orderdate)) “Time Taken’ FROM ORD; b. SELECT cust orderdate,shipdate, ROUNDOFFshipdate-orderdate) "Time Taken’ FROM ord; SELECT custid orderdate,shipdate ROUND(DAYS. BETWEEN (shipdate,ordercate}/ 30) Time Taken’ FROM ord 4. SELECT custidorderdate,shipdate, MONTHS.BETWEEN (shipdat,orderdat)"Time Taken’ FROM ord; ‘The correct answers: SELECT cust, orderdate shipéate, ROUND(MONTHS_BETWEEN (shipdate, ordrdate)) “Time Taker’ FROM ORD; hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8196346cmid=1910 8123722, 154 AM Post Quiz Attempt review Question 2 Single ow functions can be nested to any evel. tate true o False Select one a. FALSE b. TRIE ‘The correct answer ie: TRUE Question 3 Evaluate these two SOL statements 1. SELECT CONCAT(frstiname,last.name), LENGTH(CONCAT(fist_name, lastname) FROM employes WHERE UPPER(ast_name) LIKE "iJ (OR UPPER(ast_narme) LIKE %K’ (OR UPPER(ast_name) LIKE “L; 2, SELECT INTTCAP(frst name) |lINITCAPCast.name), LENGTH(astiname) + LENGTH(Frst.name) FROM employee WHERE INTTCAP(SUBSTRIlast name, 1,1) IN (JU; How wil the results difer? Select one 4. Statement mill execute, but statement 1 will not ‘The statements will eveve diferent data from the data! b. Statement 1 wll execute, but statement 2 ill not 4 ‘The statements will erieve the same dat fromthe database, but wil depay it iferenty hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8196346cmid=1910 26 8123722, 154 AM Post Quiz Attempt review Question 4 ill perform summary operations on a set of values to result an single valve, Select one 2 Aggregate functions . Date functions Single row functions Numeric functions The correct answers: Aggregate functions Question 5 ‘Group functions ean be used inthe where clause. State True or False Select one a TRIE b. FALSEY’ ‘The correct answers: FALSE hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8196346cmid=1910 8123722, 154 AM Post Quiz Attempt review Question 6 ‘The PART table contains these columns: 1D NUMBER(?) PK ‘cOsT NUMBER(7.2) 'PRODUCT.ID NUMBER(7) Evaluate these two SQL statements 1. SELECT ROUND(MAX(c0st)2), -ROUND(MIN(cost)2),ROUND{SUM cost), ROUND(AVE(cos!)2) FROM part; 2.SELECT product_d, ROUND(MAK(¢9S%)2), -ROUND(MIN(cost)2),ROUND{SUM(cost), ROUND(AVG(c9s!)2) FROM part (GROUP BY product i How wil the results dfer? Select one ‘& Statement 1 will dsplay a result fr each part statement 2 wil display a result foreach product. b. The results willbe the same, bt the spay liter. One ofthe statements wil generate 4. Statement 1 will only deplay one row of resus statement 2 could display mare than one. ‘The correc answers: Statement 1 will any display one ow of resus; statement 2 could dlsplay more han one, Question 7 All columns in the SELECT ist that are notin group functions must be in the GROUP-BY clause, Slate True or False. Select one a. TRIE b, FALSE ‘The correct answer i: TRUE hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8196346cmid=1910 46 8123722, 154 AM Post Quiz Attempt review Question 8 We neecto create a report to display the order id, ship date and order total of your ORDER table, f the order has nat been shipped, your report must display Not Shipped. f the totale not availabe, your report must display Not Avaliable’ In the ORDER table, che SHIPDATE column has a datatype of DATE. The TOTAL column has a datatype of INT, Which statement do you use to create this report? Select one SELECT ordi4.TO_CHAR(shipdate, Not Shipped) TO_CHAR(total Not Avallable) FROM order SELECT ordi, shipdate ‘Not Shipp total Not Avalable” FROM order ‘SELECT ordi IFNULL(shipdate, Not Shipped) as SHIPDATE.Total FROM or SELECT ord IFNULL{shipdate, Not Shipped) SHIPDATE,Y IFNULL(fotalNat Available) TOTAL FROM order, ‘The correct answer is: SELECT ordi, IFNULL(shipdate, Not Shipped) SHIPDATE, IFNULL(lotalNot Available) TOTAL FROM order Question 9 ‘SELECT ot_no “Lot Number’, COUNT() ‘Number of Cars Available" FROM care WHERE model Fire GROUP BY lot. no HAVING COUNT(4]> 10, ‘ORDER BY COUNT); Inthe above statement which clause restricts which groups are displayed? Select one 4 ORDERBY COUNT() b. WHERE model = Fie! SELECT lot.no “Lot Number’, COUNT(*) ‘Number of Cars Avallablet HAVING COUNT(*) >» 104° GROUP AY lone ‘The correct answers: HAVING COUNT(+) > 10 hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8196346cmid=1910 56 8123722, 154 AM Post Quiz Attempt review Question 10 ‘Select the suitable option for deplayng the average commission percentage ofall employees, where the commission percentage column of certain employees include NULL valu. Select one a. select AVG(NVL(O.commission_pet) from emp, b._ select AVG(NVL(commission.pe) from emp 6. select AVG(ommission_pet rom emp; 4. sect AVG(NVL(commissin pet) from emp: ‘The correct answers: select AVG(NVL(commission_petO) from emp: Display Guest Details Jump to ‘Test Your Understanding (copy) hitpsiaccentuelearing tekstac.comimadiquiireview php?attempt=8195946emid=1910 8123722, 154 AM Pre-uiz: Attempt review 1 Dashboard / App Der / RDBMS J Function: Scalar & Aggregate / PreQuiz Started on State ‘Competed on Time taken Marks Grade Feedback Question 1 ureday, 18 August 2022, 12:58 PM Finished ‘Thursday, 18 August 2022, 1-00 PM. 7 mins 2ecs 10.00/10.00 100,00 out of 100.09, Congratulations! You have passed by securing more than 80% To display the names of employees that are not assigned toa department Evaluate this SOL statement: SELECT last.name, frst.name FROM employes WHERE dept id= NULL: Which change should you make to achieve the desired result? Select one Greate an outer join, . Add a second consti to the WHERE condition ‘Change the operator nthe WHERE condition. (Change the colin in the WHERE condition, ‘The correct answers: Change the operator inthe WHERE condition hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 8123722, 154 AM Pre-Quiz Attempt review Question 2 Which statements true regarding the default behavior ofthe ORDER BY clause? Select one 18 Ina character sor, the values are case-sensitive” . NULL values ate not considered at all bythe sort operation Numeric values ae dgplayed from the maximum tothe minimum value they have decimal postions 4 Cony those columns that are specified in the SELECT ist can be used in the ORDER BY clause ‘The corect answers: na character sort the values are case-sensitive Question 3 To calculate the numberof days fom Tst an 2007 til date: Dates are stored inthe defaul format of debt Which SaL statements would give the required ouput? Select one or more: a. SELECT TO_CHAR(SYSDATE:DD-MON-YW¥Y})01-JAN-2007 FROM DUAL; b._ SELECT SYSDATE-TO_DATE{OT-JANUARY-2007) FROM DUAL; 7 SELECT TO_DATE(SYSDATEDD/MONTH/YYYY)-01/JANUARY/2007 FROM DUAL; SELECT SYSDATE -'01-JAN-2007" FROM DUAL (SELECT SYSDATE-TO_DATE(01/JANUARY/2007) FROM DUAL ‘The corect answers are: SELECT SYSOATE -TO_DATE(O}/JANUARY/2007) FROM DUAL, SELECT SYSDATE-TO_DATE(OT-JANUARY:2007) FROM DUAL; hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 a 8123722, 154 AM Pre-Quiz Attempt review Question 4 To generate a report that shows an increase in the credit limit by 15% forall customers. Customers whose credit limit has not been entered ‘should have the message ‘Not Available” displayed. Which $aL statement would produce the required esti? Select one ‘2. SELECT NVL(TO_CHAR(cust_credit imi. 15)Not Avallable) "NEW CREDIT” FROM customers; b. SELECT NVL(cust_sreaitimieNot Avalable)*15°NEW CREDIT” FROM customers SELECT TO_CHAR(NVLcust_ceditimit.15;Not Available) "NEW CREDIT” FROM customers 4. SELECT NVL(cust_creit mit. 16;Not Avallable)’NEW CREDIT” FROM customers, ‘The correct answer: SELECT NVL(TO_CHAR(cu FROM customers; Question 5 ‘Select the suitable option for fetching the output ofthe following query. select substr( ‘Oracle World1.6 from dua Select ane a racleW b, Oracle rade ‘ race Wo ‘The correct answers hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 a7 8123722, 154 AM Pre-Quiz Attempt review Question 6 ‘The CUSTOMERS table has these columns: ‘CUSTOMER ID NUMBER(4) NOT NULL. (CUSTOMER_NAME VARCHAR2(100) NOT NULL ‘CUSTOMER_ADDRESS VARCHARZ(150) (CUSTOMER_PHONE VARCHAR2(20) You need to produce output thet states ‘Dear Customer customer_name, ‘The customer_name data values come from the CUSTOMER NAME columa inthe (CUSTOMERS table. Which statement produces this output? Select one ‘2 SELECT dear customer, customer_name, FROM customers; b._ SELECT’Dear Customer‘ customer_name''] FROM customers; SELECT “Dear Customer, customer-name! FROM customers FROM customers; ¥ SELECT ‘Dear Customer custome-nammal! © SELECT Dear Customer’ customer_rame'! FROM customer; ‘The correct answer is: SELECT ‘Dear Customer’ customer_name |! FROM customers; hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 ar 8123722, 154 AM Pre-Quiz Attempt review Question 7 Generate alist of al customer lst names with their cre limits from the CUSTOMERS table. Customers whe do not havea ered imi should appear last nthe st kindly note that customers who do not have cre card willhave NULL against ered it Wich query would achieve the requires result? Select one 4 SELECT cust Jastname.cust credit mit ¥ FROM customers ORDER BY cust credit imi, b,_ SELECT cust Jastname.custredt imi FROM customers; 6. SELECT cust Jas namecust credit FROM customers ORDER BY cust credit Jmit DESC; 4, SELECT cust Jastneme.cust credit iit FROM customers ORDER BY cust ast_name.cus crit limit NULLS LAST, ‘The correct answer is: SELECT cust Jast_namecust credit mit FROM customers ‘ORDER BY cust_credit mit Question 8 [ABC company wants to give each employee 2 $100 salary increment. You need to evaluate the results from the EMP table prior tothe actual modification. I you do nat wants store the results inthe database, which statement is, valid? Select one 1 Youneed to give the arithmetic exireston that involles the salary increment inthe DISPLAY clause ofthe SELECT statement. b, Youneed to give the arithmetic expression mat rvotves the salary increment inthe SET clause of the UPDATE staterent 6 Youneed to add a column to the EMP table, 4. Youneed to give the thmetic expression that involves the salary increment inthe UPDATE clause ofthe SELECT statement ‘The correct answers: You need to give the arithmetic expression that Involves te salary increment nthe DISPLAY claus ofthe SELECT statement hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 sr 8123722, 154 AM Pre-Quiz Attempt review Question 9 To update the CUST_CREDIT_LIMIT column to NULL forall the customers, where ‘CUST.INCOME_LEVEL has NULL in the CUSTOMERS table. Which SQL statement will ‘accomplish the task? Select one 4 UPDATE customers SET custcest mit = TO_NUMBER(”9989) [WHERE cust Income fevel IS NULL; b, UPDATE customers v SET cust creditlimit= NULL WHERE cust income: level S NULL: ©. UPDATE customers SET cused hmit= TO_NUMBER(NULL) [WHERE cust Income level = TO_NUMBER(NULL}: 4. UPDATE customers SET eustrect mit = NULL WHERE cust Income Jevel uu: ‘The correct answer is: UPDATE customers SET custeditJimit = NULL WHERE custincome_ovel IS NULL: hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8196306emid=1275 er 8123722, 154 AM Pre-Quiz Attempt review Question 10 Tdielay the names ofl promos done ster January 1.2001 starting wth he test pom hich query would give the required recut (Choose all hat pp) Select one or more ‘2 SELECT promo.name,prome begin date ¥ FROM promotions WHERE prome._begin date» OT-JAN-OT ORDER BY 2 DESC, b,_ SELECT promo.nameprome_begi sate START DATE 7 FROM promotions [WHERE promo, begin date > O1JANOT ‘ORDER BY "START DATE* DESC: SELECT promexnafreprame begin date FROM promotions WHERE prome_begin date > OT-JAN-OT ORDER BY 1 DESC; 4. SELECT promo_nameprome begin sate FROM promotions WHERE promo.begin date > 01-JAN-O1 ORDER BY prome_name DESC, ‘The correct answers are: SELECT promosraime,promo_beginzdate “START DATE” FROM promotions WHERE proma_begin date >'01-JAN-01 ‘ORDER BY START DATE" DESC: SELECT promo.nameprome_begin.date FROM promotions WHERE promo_begin.date>'01-JAN-01" ‘ORDER BY 2 DESC; 4 Test Your Understanding (copy) Jump to hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempt=8196306emid=1275 FUNCTIONS Introduction » uW 8123722, 153 AM Test Your Understanding (copy): Attempt review 1% Dashboard / App Der / RDBMS / Select Statement / Test Your Understanding (com), Wednesday, 17 August 2022, 416 PM Finished Wednesday, 17 August 2022, 426 PM ‘9 mine 47 secs 5.00/5.00 100,00 out of 100.09, ‘Congratulations! You have passed by securing mace than 80% Question 1 ek vont 100 Observe this table, ‘CUSTOMERS: ‘CUST_WO | CUST_WANE | CUST CITY [CUST_cREDIT LIMIT Tor Tne Ww voRR | T0000, 07 GREET noston | 150000 103 SCOTT EONDOW 04 SHITE BOSTON 'SOL> SELECT cust_name AS "NAME", cust_creait_lm/2 AS MIDPOINT, IMIDPOIN #1UD.AS "MAX LOWER LIMIT FROM customers; “The above query produces an errr on execution. Whats the reason forthe error? Select one pnalias cannot be used in an exoression™ The alias MIDPOINT shouldbe enclosed within double quotation marks for the CUST CREDIT LIMIT/2 expression © The alias NAME should not be enclosed within double quotation marks The MIDPOINT +100 expression gives an eor BeGause CUST-CREDIT_LIMIT contains NULL values Your answer is cortect ‘The correct answers {an alias cannot be used in an expression hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8142848cmid=4606 a 8123722, 153 AM Test Your Understanding (copy): Attempt review Question 2 ‘The SELECT statement is usec to describe the table and the table data from a database, State true or false, Select one Tre Fake v ‘The correct answer is False! Question 3 Which ofthe following are the correct eyntaxes for dplaying the StudentName and Department from Student table? Select one of more 4 select studeniname, department FROM Studem: 7 b._ SELECT STUDENTNAME, DEPARTMENT FROM Student 7 © select studentname, department FROM STUDENT: 4. SELECT StudertName, Deparment FROM Student Your answer is correct. ‘The correct answers are: SELECT STUDENTNAME, DEPARTMENT FROM Student, elect etudentname, department FROM Student, SELECT ‘StudertName, Department FROM Student, select studentname, department FROM STUDENT; hitpsiiaccenturelearing tekstac.comimadiquiireview php?attempt=8142848cmid=4606 26 8123722, 153 AM Test Your Understanding (copy): Attempt review Question 4 Which of the folowing commands used to select all the fields avallablein the table? Your answer is corect. The correct answers Question 5 clause Is used to rereve data fom ane of more tables? Whece Select order by Having Your answer is carect ‘The correct answers Select 4 Post-Quiz Jump to hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempt=8142848cmid=4606 Pre-Quiz > 8123722, 153 AM Test Your Understanding (copy): Attempt review hntpssaecentureleaming tokstac.comimadlquiirviow.pnp2attompl=814284&emid=4608 8123722, 153 AM Post Quiz Attempt review 8 Dashboard / App Der / RDBMS J Select Statement / PostOulz Started on State ‘Competed on Time taken Marks Grade Feedback Question 1 Wednesday, 17 August 2022, 410 PM Finished Wednesd 17 August 2022, 417 PM 7 mine 3 ees 6.00/6.00 100,00 out of 100.09, Congratulations! You have passed by securing more than 80% How to retsleve department column without any duplication from employee relation? Select one 4, select department.id fom employee; select unique department from employee; 6. select department distinet from employee; 4, select aetinet department id from employee; ‘The correct answers: select dstnetdépartnghtld rom efriployee; hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8141936emid=1273, M4 8123722, 153 AM Post Quiz Attempt review Question 2 Select the missing keyword, to complete the select query forthe given scenario f “CSRLCOURSE 7 Sean os select the student details whose firstname starts with or whose ctyisChennal and firstname ends with select from CSR_STUDENT where festnamelike'AX’ OR Y_clty="Chennal AND firstname tke st; Your answer is corect. ‘The correct answers Select the missing keyword, to complete the select query forthe given scenario select the student details whose fstname starts with’ of whose cityiaChenna and firstname ens with select from CSR_STUDENT where firstname like AX’ [OR ct =Chennaf [AND] firstname lke rt; hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8141936emid=1273, 8123722, 153 AM Post Quiz Attempt review Question 3 Select the suitable option for retrieving allthe employees whose salary range is between 40000 and 1000007 Select ane or more 4 select namesalay from employee where select name salary from employee where salary between 40000 100000; select name salary from employee where salary>=40000 and salary<=100000:¥ lary between 40000 and 100000; 4. select names ry rom employee where salary is between 40000 and 100000; select namesalary from employee where salary les between 40000 and 100000; ‘The correct answers are: select name.salary from employee whore salary between 40000 and 100000, select name.salary from employee winere salary>=40000 and salaryc+100000; Question 4 Select the suitable option for etrieving athe employees who have a manager? Select one 4, select empname, managetid from employee where manager.iés NULL: b._ select empname, managetié from employee where manager.id is NULL VALUE, select empname, managete fom entplayde'where manager_id NULL; 4. select empname, managerié from employee where manager.id is NOT NULLY ‘The correct answers: select empname, manager_id from employee where manager idis NOT NULL: Question 5 ‘Select the suitable option for etrevig allhe employees whose name ends with ‘kumar’? Select one 1 select ror employee where empnamelike kumar select from employee where empname like "skuma . select * rom employee where empname ike "kum. 4 select from employee where emaname ike kumar; ‘The correct answers: select * from employee where empname like “skurar; hitpsiiaccentureleaming tekstac.comimadiquiireview php?attempt=8141936emid=1273, 34 8123722, 153 AM Post Quiz Attempt review Question 6 Which statement about SL is true? Select one You cannot sort query results by a column thats rot included the SELECT lst, You cannot specify a column alias in an ORDER BY clause, Null values are displayed latin ascending sequences. “The results are sorted by the fist coluran inthe SELECT listif the ORDER BY clause is not provided Date values are displayed in descending order by defau ‘The correct answer i: Null values are displayed last in ascending sequences. << Display contact details of guests Jump to hitpsiaccentuelearing tekstac.comimadiquiireviewphp?attempt=8141936emid=1273, ‘Test Your Understanding (copy) 46 18123722, 152. AM Pre-uiz Attempt review % Dashboard / AppDer / RDBMS / Select Statement / PreQuiz Started on Wednesday, 17 August 2022, 138 PM. State Finished ‘Completed on Weciesday 17 August 2022, 1-43 PM Time taken 4 mins 56 secs Marks 4.00/4.00 Grade 100.00 out of 100.00 Feedback Congratulations! You have passed by securing moce than 80% Question 1 ‘You need to remove all the data from the employee table while leaving the table definition ntact. You want tobe able unde tis operation. How would you accomplish this task? Select one ‘8, DELETE FROM employees ¥ b, TRUNCATE TABLE employee; DROP TABLE employee: 4. This task cannot be accomplished Your answer is correct. ‘The correct answer i: DELETE FROM employee; Question 2 Which statements are true regarding constants? Select ane or more: foreign key cannot contain NULL values. b, Aconstraint canbe disabled even ifthe constraint column contains data. Accolurnns wit the UNIQUE constraint can contain NULL values. 4. Acconstaintis enforced only fr the INSERT operation on a table. Your answer is corect. ‘The correct answers are: Aconst can contain NULL values. rt can be disabled even if the constraint column contains data, A columns withthe UNIQUE constraint hitpsiiaccenturelearing tekstac.comimadiquiirview php?attempt=8129468cmid=1243, 18123722, 152M Pre-Quiz Attempt review Question 3 hich statements true when # DROP TABLE command i executed on a table? Select one ‘8. Thetable structure andits deleted data cant be rolled back and restored once the DROP TABLE commands executed. ,_ The strcture ofthe table remains inthe database, andthe data and indexes are deleted, Any pending transactions on the table are rolled back 4. The DROP TALE command can be executed ona table on which there are pending transactions © Only a DBA can execute the DROP TABLE command, Your answer is coroct, ‘nd its deleted data cannot be rolled back and restored once the DROP TABLE commands. Question 4 ‘The SQL statements executed in a user session as follows: create table product(pid number(10),phame vatch( 10) Insert into product values(1enchive), Insert int product values(2narddisk) savepcint a; update product set pid=20 where pid=1; savepoint bi; Gelet rom product where pid=2: commit: Aelete from product where pid=10, \Wihich statements describe the consequence of issuing the ROLLBACK TO SAVE POINT a commandin the session? Select one or more ‘4. Both the DELETE statements an the IPDATE statement are rolled back. . Only the DELETE statements ae oled back © Therolback generates an ertor.¥ 4. Only the seconds DELETE statement i alled back © NoSQL statements arerolled back Your answer is corect. ‘The correct answers are: No SQL statements are rolled back, The rolloack generates an ero, hitpsiiaccenturelearing tekstac.comimadiquiirview php?attempt=8129468cmid=1243, 28 18123722, 152M Pre-uiz Attempt review ‘4 Test Your Understanding (copy) Jump to ‘Select Statement introduction hitpsiiaccentueleaming tekstac.comimadiquiirview php?attempt=8120466cmid=1243, 18123722, 152. AM Post Quiz Attempt review 1% Dashboard / App Der / RDBMS / Data Maniouation Language / Post-Quiz Started on Tuesday, 16 August 2022, 452 PM State Finished (Completed on Tuesday 16 August 2022, 501 PM Time taken & mins 48 secs Marks 4.00/5.00 Grade 0,00 out of 100.00, Feedback Congatulations! You have passed by securing moce than 80% Question 1 DELETE FROM dept WHERE deptid = 901; ‘The above delete statement throws anintegty constraint error because a child record was found. Wht could we do to make the statement execute? Select one 4 Delete the chile records fret. b, Add the FORCE keyword othe command, ©. You cannot make the command execute {Add the “CONSTRAINTS CASCADE" aption tothe command: Your answer is carect ‘The correct answer is: Delete the child records frst. hitpsiaccenturelearing tekstac.comimadiquizirview:php?attempl=807S97&emid=124% 18123722, 152M Question 2 Examine the structure ofthe STUDENT table: Post Quiz Attempt review [Folin Name Patatype (constraint Isai ramen) PK Weme archar2(20) INowwall ress archar2(@0) (oon [bate Which statement inserts a new row nto the STUDENT table? Select one ‘INSERT INTO student VALUES (101'Smith); b. INSERT INTO student studi, adress, dob) ‘VALUES (101/100 Main Steet'17-JUN39); INSERT INTO student (studi adress, name, dob) ‘VALUES (101/100 Main SteetSrth17-JUN98), 4. INSERT INTO student VALUES (101,100 Main Strect17-JUN-99;'Smith); Your answer iscorect ‘The correct answer is: INSERT INTO stent (Sua, address, name, dot) Smith 7-JUN39),| VALUES (101;100 Main St hitpsiaccenturelearing tekstac.comimadiquizirview:php?attempl=807S97&emid=124% 218 18123722, 152M Post Quiz Attempt review Question 3 Consider the below table structre [fotumn Name Patatvpe [eonaiaint lEmpnarne WVareharatoy INot Nat lempid INurberT0) Px Pronene INumbevi0) Nowa insert into employee(empidempname)values(122John) ‘When we issue the above Insert command andi the statement fall, ‘what would be the resson, Select one The statement wil get ekecuted successfully Value for phoneno is missing ©. empid value shouldbe given without single quotes. 4. The column order should nt be changed, Your answers incorrect, ‘The correct answers: Value fr phoneno is missing hitpsiaccenturelearing tekstac.comimadiquizirview:php?attempl=807S97&emid=124% 38 18123722, 152M Question 4 Examine the structure ofthe Employee table Post Quiz Attempt review [Folumn Name Patatvpe Peorstane lErpname WVareharazoy Not Na lempia Inursber(i0) lex PPronene INumbevi0) JRowull Depa INumber(io) Fe Data inthe Department table [oepua [prarve [recation f isates \warsba R marketing Ikomara \Wihich update statement produces the following error? (ORA-02291:integrty constraint (S¥S_23) violated - parent key not found Select one © UPDATE Employee SET empid » NULL WHERE deptides; Your answer is correct. loyee SET Deplide3 WHERE Empl ‘The correct answer isi UPDATE Employee SET Deptid=3 WHERE Empid = 10%; Question 5 ‘Which aL statement needs both insert and Update piilege On the target table and select privilege onthe source table? Select one a. alter b, megew’ & update delete ‘The correct answers: merge 4 Delete Records Jumo to hitpsiaccenturelearing tekstac.comimadiquiirview:php?attempl=807S97&emid=124% 8123722, 152. AM Post Quiz: Attempt review ‘Test Your Understanding (copy) » hitpsiaecentuelearing tekstac.commadiquiztreview.php?attempt=807597&emid=1241 8123722, 151 AM Pre-uiz Attempt review 1% Dashboard / App Der / RDBMS J Data Manioulation Language / Pre Quiz Started on Tuesday, 16 August 2022, 437 PM, State Finished Completed on Tuesday, 16 August 2022, 446 PM Time taken mine 6 secs Marks 4.00/5.00 Grade 80,00 out of 100.00 Feedback Congatulations! You have passed by securing moce than 80% Question 1 Which CREATE TABLE statementis vale? Select one 12 CREATE TABLE ord. details v (ord no NUMBER(), hem _no NUMBER(), cord date DATE DEFAULT SYSDATE NOT NULL, ‘CONSTRAINT ord.pk PRIMARY KEY (ord:Rotemn0)} b. CREATE TABLE ord. details (ord.no NUMBER(2) PRIMARY KEY, item_no NUMBER(3) PRIMARY KEY, ord date DATE NOT NULL}, CREATE TABLE ord. details (ord.no NUMBER(2) UNIQUE, NOT NULL, inem.no NUMBER(S), ord date DATE DEFAULT SYSDATE NOT NULL}; 4. CREATE TABLE ord. details (ord.no NUMBER@), item_no NUMBER(), ord date DATE DEFAULT NOT NULL, ‘CONSTRAINT ord, ug UNIQUE (ord_r0), (CONSTRAINT ord.pk PRIMARY KEY (ord_n9)} Your answer is corect. ‘The correct answers: CREATE TABLE ord-detlls (ord.no NUMBER(2), "tem_no NUMBER), ‘ord_date DATE DEFAULT SYSDATE NOT NULL, ‘CONSTRAINT ord_pk PRIMARY KEY ord najtem-no)) hitpsiiaccentueleaming tekstac.comimadiquiirview.php?attempt=8074486cmid=1218 18123722, 151 AM Pre-Quiz Attempt review Question 2 Wich statement would you use to adda primary key constraint to the patent table using theid_number column, immediately enabling the constraint? Select one ALTER TABLE patent x ADD (i¢,numbler CONSTRAINT pat id_pk PRIMARY KEY); b, ALTER TABLE patent ADD CONSTRAINT pat id pk PRIMARY KEY(d number), This task cannot be accomplished 4. ALTER TABLE patent [MODIFY (d_number CONSTRAINT pat_d_pk PRIMARY KEY); Your answer is incorrect. ‘The correct answer ie: ALTER TABLE patient [ADD CONSTRAINT patid_pk PRIMARY KEV((d_numbet Question 3 ‘To pecmanently remove all the data from the STUDENT table, and you need the table structure in the future. Which single command performs this? Select one TRUNCATE TABLE student b, TRUNCATE TABLE student KEEP STRUCTURE; ©. DELETE* FROM etudent KEEP STRUCTURE; 4. DROP TABLE student, Your answer is cortect. ‘The correct anawer is: TRUNCATE TABLE student hitpsiiaccentuelearing tekstac.comimadiquiirview php?attempt=8074486cmid=1218 28 18123722, 151 AM Pre-Quiz Attempt review Question 4 ‘The EMPLOYEES table has these columns: LAST NAME VARCHAR2(25) SALARY NUMBER(@2) HIRE_DATE DATE Management wants to adé a default value tothe SALARY column You plan ta alter the table by Using ths SQL statement ALTER TABLE EMPLOYEES. [MODIFY (SALARY DEFAULT 5000); Whats rue about your ALTER statement? Select one ‘4. Column definitions cannot be altered toad DEFAULT values, b. A-change to the DEFAULT value affects only subsequent insertions tothe table. ‘© Column definitions cannot be akere at add DEFAULT values fr columns with @ NUMBER data tyoe 4. Allthe ows that have a NULL value forthe SALARY column willbe updated wth the value 5000, Your answer is corect. ‘The correct anawer ie: A change to the DEFAULT value affects only subsequent insertions tothe table, hitpsiiaccentuelearing tekstac.comimadiquiirview php?attempt=8074486cmid=1218 38 18123722, 151 AM Pre-Quiz Attempt review Question 5 When we attempt to create the salary fable with this command: "LOREATE TABLE salary 2 (employee_id NUMBER(9) 3.CONSTRAINT salary_pk PRIMARY KEY, 4.1985. salenyNUMBER(®.2), Ssmanager_name VARCHARZ(25) ‘SCONSTRAINT mg name.nn NOT NULL, 7 Ssalry_96NUMBER(8.2)) Which two lines of this statement wll rum erors? Select one of more aw bs e2 Your answer is corect. The correct answers are: 7,4 “4 Post-Quiz (copy) Jump to ata Manipulation Language - Introduction > hitpsiiaccentuelearing tekstac.comimadiquiirview php?attempt=8074486cmid=1218 18123722, 151 AM Pre-uiz: Attempt review htpssaecentucleaming tokstac.comimadiquireviow phpattompl=807448&emid=1218 8123722, 151 AM Post-Quiz (copy) Attempt review 1% Dashboard / AppDer / RDBMS / Data Definition Language / Post-Ouiz (copy) Started on Monday, 15 August 2022, 12:24 PM State Finished ‘Completed on Monday, 15 August 2022, 12:38 PM Time taken 12 mins 14 secs Marks 9.00/9.00 Grade 100.00 out of 100.00 Feedback Congratulations! You have passed by securing moce than 80% Question 1 How would you add a foreign Key constraint onthe dept.no column in the EMP table, refering tothe id column inthe DEPT table? Select one ‘Use the ALTER TASLE command with the MODIFY clause on the EMP table, b, This task cannot be accomplished Use the ALTER TABLE command with the ADD clause onthe EMP tale. 4. Use the ALTER TABLE command with the MODIFY clause onthe DEPT table, ©. Use the ALTER TABLE command with the MODIFY clause onthe EMP table, Your answer is correct. ‘The correct answers: Use the ALTER TABLE command with the ADD clause onthe EMP table, Question 2 ‘An emp table contains fields employ name, desig and ealary How do you drop column salary? Select one a. aller table emp delete salary: delete from emp where column = salary: aller table emp drop coluran salary 4. alter table emp delete column salary ‘The correct answers: alter table emp érop column salary; hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempl=7996496cmid=4087 18123722, 151 AM Post-Quiz (copy) Atempt review Question 3 Which of the folowing options isnot correct? Select one 1 alter table emp adé column_name varchar(25); baller table emp modify name varchar(30; aller table emp drop column column name; 4 alter table emp drop column_name;¥ ‘The correct answers alter table emp crop column name; Question 4 ‘Choose the consct option creditcardype shouldbe siver or latioum only check v cardhldername not null ¥ valdiydate not null ¥ cardbelderphonene cuhieue ¥ credicardna primary key Your answer is correct. ‘The correct answer is: ctestearetype shouldbe silver or platinum only» check, eardholdemame + not ull validtydate + not nll, cardnolderproneno ~+ unique, credtcardno -» primary key hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempl=7996496cmid=4087 18123722, 151 AM Post-Quiz (copy) tempt review Question 5 rator should create the table ‘CSR_Regjstation’ with the folowing rules Tom the adminis ‘Whenever arow in the CSR_Student table Is deleted, the row from the CSR Registration must be deleted |Wmen deleting the row from the CSR.course table lnk column ofthe CSR registration must be made to nll Picoumsen (couRsENMne orherac= GSILAESISTRATION EES IEOURSED Drag and drop te correct keyword forte below given query. ‘ondeletesetnal_]¥ studid number(s) create table CSR regietration(courseid number() references CSR course(courseld) references CSR studentstudeh (_ondlelete cascade |¥-- do) dat) Question 6 ark onto 80 ‘We need to ensue thatthe amount withérawn should b@ less then the credit card limit amount, to ensue this Integrity what type constraint willbeused? Select one ‘4 table level check constraint column level foreign key constraint ‘table level foreign key constraint 4. column level check constraint Your answer is corect. ‘The correct answers: table evel check consraint 38 hitpsiiaccentueleaming tekstac.comimadiquiireview php?attempl=7996496cmid=4087 18123722, 151 AM Question 7 ‘choasethe correct options Drop Truncate Delete, Truncate Truncate, OrepY Truncate, Delete Your answer is corect. ‘The correct answers Truncate, Drop Question 8 ‘table consists of __primary keys Select one a2 b4 & Any number aw ‘The correct answer ie: << Try lout Jump to. hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempl=7996496cmid=4087 Post-Quiz (copy) tempt review command is used te delete the records and command ie used te delete the db objects? Pre-Quiz > 46 18123722, 151 AM Post-Quiz (copy) Attempt review hitpsiiaccentuelearing tekstac.comimadiquiireview php?attempl=7996496cmid=4087 56 8123722, 151 AM Pre-uiz: Attempt review 1% Dashboard / App Der / RDBMS / Data Definition Language / PreQuiz Started on State ‘Competed on Time taken Marks Grade Feedback Question 1 ureday, 11 August 2022, 213 PM Finished ‘Thursday, 11 August 2022, 218 PM. ‘Amine 16 secs 5.00/5.00 100,00 out of 100.09, Congratulations! You have passed by securing more than 80% Ina elational database a referential ntegrty constraint can be done using Select one 2. primary key b. foreign key secondary key composite key Your answer is correct ‘The correct answer: foreign key Question 2 Arelational data Select one a Tables b. Fields eye 4. Records consists ofa callecton of Your answer is corect. ‘The correct answer's: Tables hitpsiaccenturelearing tekstac.comimadiquiireview:php?attempl=7847 16&cmid=1174 18123722, 151 AM Pre-Quiz Attempt review Question 3 Which ofthe folowing is not medication ofthe database? Select one Sorting . Insertion ©. Deletion 4. Updating Your answer is corect. ‘The correct answers: Sorting Question 4 Is calles ag meta data Select one ‘4. Meta Information b. Meta Dictionary © Data Dictionary 4. Data nformation Your answer is corect. ‘The correct answers: Data Dictionary hitpsiaccenturelearing tekstac.comimadiquiireview:php?attempl=7847 16&cmid=1174 28 18123722, 151 AM Question 5 Column header is refered as Select one a Table b Tapes ©. Relation & Arrbutes ©. Domain Your answer is correct. ‘The correct answers: uhibutde 4 Post-quiz Jump to hitpsiaccenturelearing tekstac.comimadiquiireviewphp?attempl=7847 16&cmid=1174 Pre-uiz: Attempt review Data Definition Language - Introduction > 39 18123722, 150 AM Post Quiz Attempt review 1% Dashboard / App Der / RDBMS / RDBMS Concepts / Post-Oulz Started on State ‘Competed on Time taken Marks Grade uteday, 11 August 2022, 207M Finished ‘Thursday, 11 August 2022, 214 PM. Sins 53 secs 5.00/5.00, 100,00 out of 100.09, Feedback Congratulations! You have passed by securing moce than 80% Question 1 ‘Tom has designed a payroll sofware for XYZ technology The sofware wil store the salary detail into the database and ater he can retrieve the same for fture references, Tom falls under which category of user. Select one a. DBA . Application Programmer” © End User 4. Network Administrator Your answer is corect ‘The corect answers: Appl ton Programmer Question 2 Which ofthe folowing snot a Select one a Oracle be Mysau, Unity 4 Sybase Your answer is corect. ‘The correct answer is: Unity hitpsiaccenturelearing tekstac.comimdiquizirview:php?attempl=7846878emid=1173 18123722, 150 AM Post Quiz Attempt review Question 3 ‘SQLs cate sensitive language and the data stored inside the table are case in-enshive, Say true or false? Select one Troe Fake v ‘The correct answer is False! Question 4 etme of Relational __Fefersto the columns a he table Atribule ov seers othe ange of values that canbe stored for an attribute Domain v refers to numberof columns in the table Degree v refers to oumber of ows inthe table cardinality refers tothe rows ofthe table Tues ov Your answer is correct. ‘The correct answer i:___refers othe columns ofthe table ~Attibute, attribute + Domai refers to numberof columns in the table -» Degree, fers tothe rows ofthe table» Tuples refers tothe range of values that can be stored foran refers to numberof rows in the table + earainaly, hitpsiaccenturelearing tekstac.comimadiquizirview:php?attempl=784687&emid=1173 18123722, 150 AM Post Quiz Attempt review Question 5 ‘choose Correct Option Datais represented inthe form of atable~ relational v Dataisrepresented inthe form ofatree- jerarchical Data is represented inthe form of agraph- network v Your answer is corect ‘The correct answer is: Datas represented inthe form ofa table —+ relational Datais represented inthe form of a tree ~+ hierarchical, Data is reprecentesin the fom of a graph -» network “4 RDBMS concepts Jump to Pre-Quiz > hitpsiaccenturelearing tekstac.comimadiquiirview:php?attempl=784687&emid=1173 3 18123722, 150 AM Pre-uiz Attempt review % Dashboard / App Der / RDBMS / RDBMS Concepts / PreQule Started on Thursday 11 August 2022, 2.03 PM State Finished Completed on Thursday, 11 August 2022, 2.05 PM Time taken 3 mins 47 secs Marke 5/5 Grade 93 out of 100 Feedback Congratulations! You have passed by securing moce than 80% Question 1 Database sa shared collection of logically untelated data, designed to meet the needs ofan organization, State True or Fase, Select one a. TRUE b, FALSEY. ‘The correct answer: FALSE Question 2 Which ofthe folowing represents the degree ofthe relation? Select one a Noof Attibutes¥ b. Cardinalty & Demain 4 No of rows ‘The correct answers: Noof Attributes hitpsiaccentureleaming tekstac.comimodiquiireview:php?attempl=784648&emid=1170 18123722, 150 AM Pre-Quiz Attempt review Question 3 Which ofthe folowing are DML statements? Select one or more a INSERTY b. CREATE TRUNCATE 4. seLECTY, ‘The corect answers are: SELECT, INSERT Question 4 Which ofthe folowing are data models? Select one of more a Hierarchical b. Networey Conceptual 4. Relational ‘The correct answers are: Hierarchical, Network Relational Question 5 Patty cone Which ofthe folowing are considered as constants? Select one or more a. NOTNULLY b. Check NULL 4. Unique ‘The correct answers are: NOT NULL. Unique, Check ‘< Discussion Forum Jump to hitpsiaccenturelearing tekstac.comimadiquiireview:php?attempl=784648&cmid=1170 28 18123722, 150 AM Pre-uiz Attempt review hitpsuaccenturelearing tekstac.comimadiquizireview:php?attempl=T84648&cmid=1170 RDBMS Introduction > 39

You might also like