Documente Academic
Documente Profesional
Documente Cultură
Prezentare
AGENTIIMB
OFERTE
CERERI
CLIENTII
POPULAREA TABELELOR
INSERARE NREGISTRRI
N TABELA AGENTIIMB
N TABELA OFERTE
N TABELA CLIENTII
N TABELA CERERI
EXEMPLE CU DDL
6
ALTER TABLE CERERI ADD CONSTRAINT cereri_tiploc_ck CHECK
(TIPLOC IN ('garsoniera','casa','apartament'));
EXEMPLE CU DML
UPDATE CERERI
SET (zona,tiploc)=(SELECT zona,tiploc FROM CERERI
WHERE codclient='60')
WHERE codclient='10';
UPDATE CERERI
SET codclient=10
WHERE codcerere=33;
EXEMPLE CU INTEROGRI
8
6. S se afieze ofertele propuse de agenii imobiliari.
14. S se afieze ofertele ale cror pre este mai mic dect cel mai
mare pre pentru oferta cu codul 202.
sau
SELECT nume,
DECODE(codclient, 20, 'client fidel',
50, 'potential client fidel',
70, 'client restantier') tip_client
FROM clientii;
12
SELECT * FROM agenti_femei;
CREAREA INDECILOR
CREAREA SECVENELOR
13
CREAREA SINONIMELOR
2. S se vizualizeze sinonimele.
14