Test
Sin título
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (30)
1What does SQL stand for?
- AStrong Question Language
- BStructured Query Language
- CStructured Question Language
2Which SQL statement is used to extract data from a database?
- AOPEN
- BSELECT
- CEXTRACT
- DGET
3Which SQL statement is used to update data in a database?
- ASAVE
- BUPDATE
- CMODIFY
- DSAVE AS
4Which SQL statement is used to delete data from a database?
- AREMOVE
- BCOLLAPSE
- CDELETE
5Which SQL statement is used to insert new data in a database?
- AINSERT INTO
- BADD RECORD
- CINSERT NEW
- DADD NEW
6With SQL, how do you select a column named "FirstName" from a table named "Persons"?
- AEXTRACT FirstName FROM Persons
- BSELECT Persons.FirstName
- CSELECT FirstName FROM Persons
7With SQL, how do you select all the columns from a table named "Persons"?
- ASELECT * FROM Persons
- BSELECT Persons
- CSELECT *.Persons
- DSELECT [all] FROM Persons
8With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
- ASELECT * FROM Persons WHERE FirstName<>'Peter'
- BSELECT [all] FROM Persons WHERE FirstName='Peter'
- CSELECT * FROM Persons WHERE FirstName='Peter'
- DSELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
9With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?
- ASELECT * FROM Persons WHERE FirstName LIKE '%a'
- BSELECT * FROM Persons WHERE FirstName='a'
- CSELECT * FROM Persons WHERE FirstName LIKE 'a%'
- DSELECT * FROM Persons WHERE FirstName='%a%'
10The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true
- ATrue
- BFalse
11With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?
- ASELECT FirstName='Peter', LastName='Jackson' FROM Persons
- BSELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
- CSELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
12With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?
- ASELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
- BSELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
- CSELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
13Which SQL statement is used to return only different values?
- ASELECT UNIQUE
- BSELECT DISTINCT
- CSELECT DIFFERENT
14Which SQL keyword is used to sort the result-set?
- ASORT
- BORDER BY
- CORDER
- DSORT BY
15With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?
- ASELECT * FROM Persons ORDER FirstName DESC
- BSELECT * FROM Persons SORT 'FirstName' DESC
- CSELECT * FROM Persons SORT BY 'FirstName' DESC
- DSELECT * FROM Persons ORDER BY FirstName DESC
16With SQL, how can you insert a new record into the "Persons" table?
- AINSERT INTO Persons VALUES ('Jimmy', 'Jackson')
- BINSERT VALUES ('Jimmy', 'Jackson') INTO Persons
- CINSERT ('Jimmy', 'Jackson') INTO Persons
17With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?
- AINSERT ('Olsen') INTO Persons (LastName)
- BINSERT INTO Persons ('Olsen') INTO LastName
- CINSERT INTO Persons (LastName) VALUES ('Olsen')
18How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?
- AUPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
- BMODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
- CUPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'
- DMODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'
19With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?
- ADELETE FROM Persons WHERE FirstName = 'Peter'
- BDELETE FirstName='Peter' FROM Persons
- CDELETE ROW FirstName='Peter' FROM Persons
20With SQL, how can you return the number of records in the "Persons" table?
- ASELECT COLUMNS() FROM Persons
- BSELECT COLUMNS(*) FROM Persons
- CSELECT COUNT() FROM Persons
- DSELECT COUNT(*) FROM Persons
21Which of the following columns is/are required in a table?
- AA foreign key
- BAn alternate key
- CA primary key
- DA surrogate key
22For a number of reasons, normalizations is not often an advantage for a/an ________________ database.
- ARead-only
- BUpdateable
- CEither a read-only or an updateable
- DNone of the above is correct
23Each entity is represented as a/an:
- ATuple
- BTable
- CAttribute
- DFile
24Which of the following indicates the maximum number of entities that can be involved in a relationships?
- AMinimum cardinality
- BMaximum cardinality
- CERD
- DGreater Entity Count (GEC)
25Which of the following indicates the maximum number of entities that can be involved in a relationships?
- AMinimum cardinality
- BMaximum cardinality
- CERD
- DGreater Entity Count (GEC)
26A subquery in an SQL SELECT statement is enclosed in:
- ABraces - {...}
- BCAPITAL LETTERS
- CParenthesis - (...)
- DBrackets - [...]
27The result of a SQL SELECT statement is a/an _______________.
- AReport
- BForm
- CFile
- DTable
28Which of the following do you need to consider when you make a table in SQL?
- AData types
- BPrimary keys
- CDefault values
- DAll of the above
29Which of the following query is correct for using comparison operators in SQL?
- ASELECT sname, coursename FROM studentinfo WHERE age>50 and <80
- BSELECT sname, coursename FROM studentinfo WHERE age>50 and age<80
- CSELECT sname, coursename FROM studentinfo WHERE age>50 and WHERE age <80
- DNone of the above
30Which is an SQL*PLUS command?
- ADELETE
- BUPDATE
- CALTER
- DDESCRIBE
Información
- Descripción
- SQL Test sobre Sin título, creado por Adriana Testing IT el 23/01/2014.
- Autor
- Adriana Testing IT
- Idioma
- Español
- Visitas
- 68
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test