Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2.  
  3. CREATE TABLE FACTURA_2(
  4.  
  5. id_factura2 int NOT NULL,
  6. serie nvarchar(4) NOT NULL,
  7. nr_factura nvarchar(4) NOT NULL,
  8. PRIMARY KEY(id_factura2, serie, nr_factura)
  9.  
  10. );
  11.  
  12.  
  13. CREATE TABLE INGREDIENTE_FACTURA2(
  14. cod_ingredient int PRIMARY KEY NOT NULL,
  15. id_ingredient int NOT NULL,
  16. id_factura2 int NOT NULL,
  17. serie nvarchar(4) NOT NULL,
  18. nr_factura nvarchar(4) NOT NULL,
  19. FOREIGN KEY (id_factura2, serie, nr_factura) REFERENCES FACTURA_2(id_factura2, serie, nr_factura),
  20. pret money NOT NULL,
  21. cantitate int NOT NULL
  22.  
  23.  
  24. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement