Przygotowuję się do egzaminu 1z0-051 - Oracle Database 11g: SQL Fundamentals I. Narazie jestem na etapie czytania książki: OCA Oracle Database 11g SQL Fundamentals I Exam Guide oraz przerabiania pytań: http://www.tutorialspoint.com/sql_certificate/index.htm jednak w internecie są dostępne pytania testowe z tego egzaminu, ale nie wiem jak z ich poprawnością, ponieważ trafiłem na jedno, które wg mnie ma błędną odpowiedź:
Which three statements are true regarding subqueries? (Choose three.) A. Subqueries can contain GROUP BY and ORDER BY clauses B. Main query and subquery can get data from different tables C. Main query and subquery must get data from the same tables D. Subqueries can contain ORDER BY but not the GROUP BY clause E. Only one column or expression can be compared between the main query and subqeury F. Multiple columns or expressions can be compared between the main query and subquery
W jaki sposób przygotowywaliście się do egzaminu, z jakich materiałów? Wskazówki mile widziane ( ͡º͜ʖ͡º)
wołam @mediateh7 bo czytałem, że przygotowywałeś się do tego egzaminu.
select FIRST_NAME, LAST_NAME from EMPLOYEES where JOB_ID in (select job_id from Employees where department_id = 90 order by job_id ); i dostaję błąd: ORA-00907: missing right parenthesis
Właśnie myślę, że to jedna z różnic pomiędzy Oracle, a MySQL
Which three statements are true regarding subqueries? (Choose three.)
A. Subqueries can contain GROUP BY and ORDER BY clauses
B. Main query and subquery can get data from different tables
C. Main query and subquery must get data from the same tables
D. Subqueries can contain ORDER BY but not the GROUP BY clause
E. Only one column or expression can be compared between the main query and subqeury
F. Multiple columns or expressions can be compared between the main query and subquery
W jaki sposób przygotowywaliście się do egzaminu, z jakich materiałów? Wskazówki mile widziane ( ͡º ͜ʖ͡º)
wołam @mediateh7 bo czytałem, że przygotowywałeś się do tego egzaminu.
#oracle #bazydanych #sql
@seelk:
use mydb;
START TRANSACTION;
CREATE TABLE test (
id integer primary key auto_increment,
name text,
position integer not null default '0'
);
INSERT INTO test VALUES(0,"Kot", 1);
INSERT INTO test VALUES(0,"Pies", 3);
INSERT INTO test VALUES(0,"Malpa", -1);
COMMIT;
SELECT (SELECT name FROM test ORDER BY position LIMIT 1)
select FIRST_NAME, LAST_NAME
from EMPLOYEES
where JOB_ID in
(select job_id from Employees where department_id = 90 order by job_id );
i dostaję błąd: ORA-00907: missing right parenthesis
Właśnie myślę, że to jedna z różnic pomiędzy Oracle, a MySQL
Komentarz usunięty przez autora
select idos, nazwisko, imie1 from
(select idos, nazwisko, imie1, imie2 from tabela
order by idos desc)
Komentarz usunięty przez autora