CREATE TABLE CONTACTS (
NAME VARCHAR2(255),
SURNAME VARCHAR2(255),
CITY VARCHAR2(255),
COUNTRY VARCHAR2(255)
)
Table created.
INSERT INTO CONTACTS (NAME, SURNAME, CITY, COUNTRY) VALUES ('Bond', 'Peter', 'London', 'UK')
1 row(s) inserted.
INSERT INTO CONTACTS (NAME, SURNAME, CITY, COUNTRY) VALUES ('Ford', 'Tom', 'New York', 'US')
1 row(s) inserted.
INSERT INTO CONTACTS (NAME, SURNAME, CITY, COUNTRY) VALUES ('Cotillard', 'Marion', 'Paris', 'FR')
1 row(s) inserted.
INSERT INTO CONTACTS (NAME, SURNAME, CITY, COUNTRY) VALUES ('Woll', 'Felicitas', 'Berlin', 'DE')
1 row(s) inserted.
COMMIT
Statement processed.
SELECT *
FROM CONTACTS c
WHERE c.name = 'Bond'
AND c.country = 'UK'
NAME | SURNAME | CITY | COUNTRY | Bond | Peter | London | UK |
---|
SELECT *
FROM CONTACTS c
WHERE c.name = 'Bond'
AND c.country = 'DE'
no data found
SELECT *
FROM CONTACTS c
WHERE c.name = 'Bond'
OR c.country = 'DE'
NAME | SURNAME | CITY | COUNTRY | Bond | Peter | London | UK | Woll | Felicitas | Berlin | DE |
---|
SELECT *
FROM CONTACTS c
WHERE c.name = 'XXX'
OR c.country = 'zz'
no data found
SELECT *
FROM CONTACTS c
WHERE NOT (c.name = 'Bond')
NAME | SURNAME | CITY | COUNTRY | Ford | Tom | New York | US | Cotillard | Marion | Paris | FR | Woll | Felicitas | Berlin | DE |
---|