Skip to content

Instantly share code, notes, and snippets.

@fromdev
Created May 23, 2016 01:39
Show Gist options
  • Save fromdev/f8e27b140e48effc6bd5445d693f48d0 to your computer and use it in GitHub Desktop.
Save fromdev/f8e27b140e48effc6bd5445d693f48d0 to your computer and use it in GitHub Desktop.
CREATE TABLE `retail_db`.`retail_master` (
`transaction_id` INT NOT NULL AUTO_INCREMENT,
`customer_name` VARCHAR(45) NOT NULL,
`bought_products` VARCHAR(255) NOT NULL,
`amount` INT NULL,
PRIMARY KEY (`transaction_id`));
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('prashantkhunt', 'laptop,headphones,watch,mobile', '70000');
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('harsh savani', 'book,sunglasses,tshirt,pen', '85000');
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('chiragloliyana', 'laptop,headphones,watch', '45000');
INSERT INTO `retail_db`.`retail_master` (`customer_name`, `bought_products`, `amount`) VALUES ('vivekpatel', 'mobile,book,tshirt', '30000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment