Essays.club - Dissertations, travaux de recherche, examens, fiches de lecture, BAC, notes de recherche et mémoires
Recherche

Inf1250 tn2

Par   •  9 Décembre 2018  •  TD  •  1 989 Mots (8 Pages)  •  1 218 Vues

Page 1 sur 8

[pic 1]

SIGLE DU COURS

Titre du cours

Série A, B, C ou D, etc., s’il y a lieu

TRAVAIL NOTÉ

Titre du travail (Pondération)

        Remplissez soigneusement cette feuille d’identité.

        Rédigez votre travail, en commençant à la page suivante.

        Sauvegardez votre travail de cette façon : SIGLEDUCOURS_TN1_VOTRENOM.

        Utilisez le Dépôt des travaux pour acheminer votre travail à votre professeur ou son délégué. http://www.teluq.ca/mateluq/

Feuille d’identité

Nom             Mokrane                Prénom             Yanis        

Numéro d’étudiant             18158255                Trimestre                     

Adresse             5554 rue cartier , Montreal        

                     Code postal             h2h 1x9        

Téléphone        Domicile                             Travail                     

        Cellulaire             514 550 3056        

Courriel             yanis.mokrane@gmail.com        

Nom du professeur ou son délégué                

Réservé à l’usage du professeur ou son délégué

Date de réception                             Date de retour                     

Note                     

Date d’envoi                     [pic 2]

Exercice1 :

Question 1 :

Création du Schéma :

create database jegere;

Résultat : Query OK, 1 row affected (0,05 sec)

mysql> use jegere;

Résultat : Database changed

Question 2 :

Création de la Table Client :

Create table if not exists jegere.Client (

idClient INT Not null,

NomClient VARCHAR(45) NOT NULL,

Adresse VARCHAR(45) NOT NULL,

Telephone VARCHAR(45) NOT NULL,

AdresseCourriel VARCHAR(45) NOT NULL,

NomPays VARCHAR(7) NOT NULL,

Primary Key (idClient));        

Résultat : Query OK, 0 rows affected (0,03 sec)

Création de la Table Etape :

Create table if not exists jegere.Etape (

IdEtape INT Not Null,

nomEtape VARCHAR(45) NOT NULL,

livrable VARCHAR(45) NOT NULL,

Primary Key (idEtape)) ;

Résultat : Query OK, 0 rows affected (0,05 sec)

Création de la Table Employe :

Create table if not exists jegere.Employe (

idEmploye INT Not Null,

nomEmploye VARCHAR(45) NOT NULL,

adresse VARCHAR(45) NOT NULL,

telephone VARCHAR(45) NOT NULL,

adresseCourriel VARCHAR(45) NOT NULL,

Primary Key (idEmploye));

Résultat : Query OK, 0 rows affected (0,08 sec)

Création de la Table Projet :

Create table if not exists jegere.projet (

idProjet INT NOT NULL,

idClient INT NOT NULL,

nomProjet VARCHAR(45) NOT NULL,

dateDebut DATE NOT NULL,

dateFin DATE,

idResponsable INT NOT NULL,

Primary Key (idProjet),

Foreign Key (idResponsable) references jegere.Employe (idEmploye),

Foreign Key (idClient) references jegere.Client (idClient),

Check (idProjet between 0 and 4000));

Résultat : Query OK, 0 rows affected (0,08 sec)

Création de la Table RessourcesProjet :

Create table if not exists jegere.RessourcesProjet (

idProjet INT NOT NULL,

idEmploye INT NOT NULL,

nbHeures INT NOT NULL,

prixHeures FLOAT NOT NULL,

Foreign Key (idProjet) references jegere.projet (idProjet),

Foreign Key (idEmploye) references jegere.Employe (idEmploye));

Résultat : Query OK, 0 rows affected (0,45 sec)

Création de la Table EtapexProjet :

Create table if not exists jegere.EtapexProjet (

idEtape INT NOT NULL,

idProjet INT NOT NULL,

dateDebut DATE NOT NULL,

dateFin DATE,

Foreign Key (idEtape) references jegere.Etape (IdEtape),

Foreign Key (idProjet) references jegere.projet (idProjet);

Résultat : Query OK, 0 rows affected (0,54 sec)

Question 3: insertion des informations dans les tables : 

Insert into jegere.Client (idClient, NomClient, Adresse, Telephone, AdresseCourriel, NomPays)

 Values

(321,’Financière Quebec’, ‘1234 Rue La Montagne, Trois Rivières, QC’, ‘819 3765244’, ‘info@fquebec.qc.ca’, ‘Canada’);

Résultat : Query OK, 1 row affected (0,11 sec)

Insert into jegere.Client (idClient, nomClient, adresse, telephone, adresseCourriel, nomPays) VALUES (345, 'Services Comptables Garneau', '8721 Rue St Laurent, Montreal, QC', '514 3217896', 'services@comptablegarneau.ca', 'Canada');

...

Télécharger :   txt (11.8 Kb)   pdf (446.4 Kb)   docx (210.6 Kb)  
Voir 7 pages de plus »
Uniquement disponible sur Essays.club