-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.sql
83 lines (72 loc) · 3.67 KB
/
data.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
-- MySQL dump 10.13 Distrib 5.1.39, for Win32 (ia32)
--
-- Host: localhost Database: project_name_www
-- ------------------------------------------------------
-- Server version 5.1.39-community
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `fabric`
--
DROP TABLE IF EXISTS `fabric`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fabric` (
`Fcode` varchar(6) NOT NULL DEFAULT '',
`Fname` char(20) DEFAULT NULL,
`Cost` double DEFAULT NULL,
`Quantity` int(11) DEFAULT NULL,
`vid` int(6) DEFAULT NULL,
PRIMARY KEY (`Fcode`),
KEY `vid` (`vid`),
CONSTRAINT `fabric_ibfk_1` FOREIGN KEY (`vid`) REFERENCES `vendor` (`vid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `fabric`
--
LOCK TABLES `fabric` WRITE;
/*!40000 ALTER TABLE `fabric` DISABLE KEYS */;
INSERT INTO `fabric` VALUES ('CAN141','CANVAS',6000,8000,129989),('CAS151','CASHMERE',5000,7000,125689),('CHE181','CHENNILE',8000,1000,127899),('CHI141','CHIFFON',4000,6000,126789),('COT121','COTTON',7000,6000,128899),('DEN191','DENIM',9000,3000,127989),('GOE171','GEORGETTE',7000,9000,126989),('LIN161','LINEN',6000,8000,126889),('SIL121','SILK',2000,4000,124599),('VEL131','VELVET',3000,5000,125989);
/*!40000 ALTER TABLE `fabric` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `vendor`
--
DROP TABLE IF EXISTS `vendor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendor` (
`vid` int(6) NOT NULL,
`vname` char(20) DEFAULT NULL,
`DOF` date DEFAULT NULL,
`Nworth` double DEFAULT NULL,
`City` char(10) DEFAULT NULL,
PRIMARY KEY (`vid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `vendor`
--
LOCK TABLES `vendor` WRITE;
/*!40000 ALTER TABLE `vendor` DISABLE KEYS */;
INSERT INTO `vendor` VALUES (124599,'AMIT RAWAT','1980-09-05',7000000,'AJMER'),(125689,'Mahesh PRASAD','1989-10-25',5000000,'LUCKNOW'),(125989,'RAMESH SAHU','1984-08-30',4000000,'KOLKATTA'),(126789,'HEERA SINGH','1960-06-15',6000000,'SURAT'),(126889,'SANDEEP PANDEY','1990-10-10',5000000,'HYDERABAD'),(126989,'RAMAN KUMAR','1995-05-25',2000000,'KANPUR'),(127899,'Mahesh Laal','1975-10-20',4000000,'LUDHIANA'),(127989,'PAWAN KUMAR','1955-10-20',8000000,'MUMBAI'),(128899,'ANIT RAWAT','1965-07-30',8000000,'AGRA'),(129989,'DURGESH VERMA','1985-10-15',9000000,'AMRITSAR');
/*!40000 ALTER TABLE `vendor` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-09-19 14:02:01