Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2010, 18:29
mactus
 
Fecha de Ingreso: noviembre-2007
Mensajes: 81
Antigüedad: 16 años, 5 meses
Puntos: 0
Pregunta Llaves compuestas ?

Se puden hacer llaves compuestas en Sql Server Managerment Stuido? no se mucho de Sql server estado acostumbrando a manejar Oracle como veo Sql tiene un ambiente mas grafico necesito hacer una relacion entre dos entidades pero eh aqui el problema no se como hacerlos asi lo hacia en Oracle


CREATE TABLE MUNICIPIO(
CLAVE NUMBER (4) NOT NULL,
DESCRIPCION VARCHAR2 (35) NOT NULL,
ESTA_CLAVE NUMBER (4) NOT NULL,
CONSTRAINT MUNICIPIO_PK PRIMARY KEY (CLAVE,ESTA_CLAVE),
CONSTRAINT ESTAD_FK FOREIGN KEY(ESTA_CLAVE) REFERENCES ESTADO(CLAVE));

alguna idea o donde pueda aprender mas sobre SQL Sever?