sql
stringlengths
6
1.05M
<filename>server/db/sql query/q_month.sql /*** Initial Queries ***/ USE trash; SELECT * FROM bin b; SELECT * FROM employee e; SELECT * FROM employee_activity ea; SELECT * FROM location l; SELECT * FROM sensor_data sa; /*** Bar/Line Graph Queries ***/ -- average trash accumulated (in height) of the month -- -------------------------------------------------------------------------- SELECT avg(waste_height) AS waste_height FROM sensor_data WHERE month(data_timestamp) = month(CURRENT_TIMESTAMP); -- average trash accumulated (in height) per month -- -------------------------------------------------------------------------- SELECT avg(waste_height) AS waste_height, month(data_timestamp) AS month, monthname(data_timestamp) AS month_name, year(data_timestamp) AS year FROM sensor_data WHERE year(data_timestamp) = year(CURRENT_TIMESTAMP) GROUP BY month ORDER BY month; -- bin that has the top 10 most trash (in height) of the month -- -------------------------------------------------------------------------- SELECT dt.bin_id, dt.name AS bin_name, dt_waste_height AS waste_height FROM ( SELECT b.bin_id, b.name, max(sd.waste_height) AS dt_waste_height FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND month(sd.data_timestamp) = month(CURRENT_TIMESTAMP) AND sd.waste_height != 0 GROUP BY day(sd.data_timestamp) ) AS dt ORDER BY waste_height DESC LIMIT 10; -- bin that has the most trash (in height) per month -- -------------------------------------------------------------------------- SELECT dt.bin_id, bin_name, max(dt_waste_height) AS waste_height, month, month_name, year FROM ( SELECT b.bin_id, b.name AS bin_name, max(sd.waste_height) AS dt_waste_height, month(sd.data_timestamp) AS month, monthname(sd.data_timestamp) AS month_name, year(sd.data_timestamp) AS year FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND year(sd.data_timestamp) = year(CURRENT_TIMESTAMP) AND sd.waste_height != 0 GROUP BY day(sd.data_timestamp) ) AS dt GROUP BY month ORDER BY month; -- bin that has the top 10 most humid of the month -- -------------------------------------------------------------------------- SELECT dt.bin_id, dt.name AS bin_name, dt_humidity AS humidity FROM ( SELECT b.bin_id, b.name, max(sd.humidity) AS dt_humidity FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND month(sd.data_timestamp) = month(CURRENT_TIMESTAMP) AND sd.humidity != 0 GROUP BY day(sd.data_timestamp) ) AS dt ORDER BY humidity DESC LIMIT 10; -- trash that has the most humid per month -- -------------------------------------------------------------------------- SELECT dt.bin_id, bin_name, max(dt_humidity) AS humidity, month, month_name, year FROM ( SELECT b.bin_id, b.name AS bin_name, max(sd.humidity) AS dt_humidity, month(sd.data_timestamp) AS month, monthname(sd.data_timestamp) AS month_name, year(sd.data_timestamp) AS year FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND year(sd.data_timestamp) = year(CURRENT_TIMESTAMP) AND sd.humidity != 0 GROUP BY day(sd.data_timestamp) ) AS dt GROUP BY month ORDER BY month; -- bin that has the top 10 most weight of the month -- -------------------------------------------------------------------------- SELECT dt.bin_id, dt.name AS bin_name, dt_weight AS weight FROM ( SELECT b.bin_id, b.name, max(sd.weight) AS dt_weight FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND month(sd.data_timestamp) = month(CURRENT_TIMESTAMP) AND sd.weight != 0 GROUP BY day(sd.data_timestamp) ) AS dt ORDER BY weight DESC LIMIT 10; -- trash that has the most weight per month -- -------------------------------------------------------------------------- SELECT dt.bin_id, bin_name, max(dt_weight) AS weight, month, month_name, year FROM ( SELECT b.bin_id, b.name AS bin_name, max(sd.weight) AS dt_weight, month(sd.data_timestamp) AS month, monthname(sd.data_timestamp) AS month_name, year(sd.data_timestamp) AS year FROM bin b, sensor_data sd WHERE b.bin_id = sd.bin_id AND year(sd.data_timestamp) = year(CURRENT_TIMESTAMP) AND sd.weight != 0 GROUP BY day(sd.data_timestamp) ) AS dt GROUP BY month ORDER BY month; -- peak day that reached trash threshold of the month -- -------------------------------------------------------------------------- SELECT day, max(ctr_waste_height) AS peak_waste_count, day_name FROM ( SELECT day(sd.data_timestamp) AS day, count(sd.waste_height) AS ctr_waste_height, dayname(sd.data_timestamp) AS day_name FROM sensor_data sd, bin b WHERE month(sd.data_timestamp) = month(CURRENT_TIMESTAMP) AND sd.waste_height > (b.height * 0.75) GROUP BY day ) AS dt; -- peak day that reached trash threshold per month -- -------------------------------------------------------------------------- SELECT day, max(ctr_waste_height) AS peak_waste_count, month, month_name, day_name FROM ( SELECT dayofyear(sd.data_timestamp) AS day, count(sd.waste_height) AS ctr_waste_height, dayname(sd.data_timestamp) AS day_name, month(sd.data_timestamp) AS month, monthname(sd.data_timestamp) AS month_name FROM sensor_data sd, bin b WHERE year(sd.data_timestamp) = year(CURRENT_TIMESTAMP) AND sd.waste_height > (b.height * 0.75) GROUP BY dayofyear(sd.data_timestamp) ) AS dt GROUP BY month ORDER BY month;
<reponame>1newstar/sql-ocm12c -- ----------------------------------------------------------------------------- -- Create the default tablespace for Flashback Data Archive -- ----------------------------------------------------------------------------- DECLARE c_req_ts_name CONSTANT VARCHAR2(128) := 'FDA_DEFAULT'; l_db_dest VARCHAR2(1024) := NULL; l_db_dir VARCHAR2(1024) := NULL; l_ts_name VARCHAR2(128) := NULL; BEGIN -- --------------------------------------------------------------------------- -- If the required tablespace does not exist, create it. -- --------------------------------------------------------------------------- BEGIN SELECT tablespace_name INTO l_ts_name FROM dba_tablespaces WHERE tablespace_name = c_req_ts_name; EXCEPTION WHEN no_data_found THEN -- ------------------------------------------------------------------------- -- Create the required tablespace. -- -- Determine if OMF is used. If not, put the data file into the same -- directory as that for the SYSTEM tablespace. -- ------------------------------------------------------------------------- SELECT "VALUE" INTO l_db_dest FROM v$parameter WHERE "NAME" = 'db_create_file_dest'; IF l_db_dest IS NOT NULL THEN EXECUTE immediate 'CREATE BIGFILE TABLESPACE ' || c_req_ts_name; ELSE SELECT regexp_substr(file_name, '.*/') INTO l_db_dir FROM dba_data_files WHERE TABLESPACE_NAME = 'SYSTEM' AND rownum = 1; EXECUTE immediate 'CREATE BIGFILE TABLESPACE ' || c_req_ts_name || ' DATAFILE ''' || l_db_dir || c_req_ts_name || '01.dbf''v SIZE 500M AUTOEXTEND ON NEXT 5M'; END IF; END; END; /
SELECT e.FirstName, e.LastName, e.HireDate, d.Name AS [DeptName] FROM Employees e INNER JOIN Departments d ON d.DepartmentID = e.DepartmentID WHERE e.HireDate > '01-01-1999' AND d.Name IN ('Sales', 'Finance') ORDER BY e.HireDate
<filename>db/schema.sql DROP DATABASE IF EXISTS employee_DB; CREATE DATABASE employee_DB; USE employee_DB; CREATE TABLE department( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL ); CREATE TABLE role( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, title VARCHAR (50), salary DECIMAL NOT NULL, department_id INT NOT NULL, CONSTRAINT fk_department FOREIGN KEY (department_id) REFERENCES department(id) ); CREATE TABLE employee( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, role_id INT NOT NULL, CONSTRAINT fk_role FOREIGN KEY (role_id) REFERENCES role(id), manager_id INT, CONSTRAINT fk_manager FOREIGN KEY (manager_id) REFERENCES employee(id) ); SELECT * FROM department; SELECT * FROM role; SELECT * FROM employee;
SELECT * FROM base64_resources WHERE id = 'replacement_parameter_resource_id';
<reponame>Tosh1984/halalan127<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 28, 2019 at 07:56 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `carl` -- -- -------------------------------------------------------- -- -- Table structure for table `candidate` -- CREATE TABLE `candidate` ( `id` int(11) NOT NULL, `name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `date_of_birth` date DEFAULT NULL, `address` varchar(300) COLLATE utf8mb4_bin DEFAULT NULL, `contact_number` varchar(15) COLLATE utf8mb4_bin DEFAULT NULL, `subelection_position_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `candidate` -- INSERT INTO `candidate` (`id`, `name`, `date_of_birth`, `address`, `contact_number`, `subelection_position_id`) VALUES (1, 'dump', '2019-04-16', 'born yesterday', '43254543', 2), (2, 'dump 2', '2019-04-02', 'slightly more mature st.', '55555555', 2), (3, '<NAME>', '0000-00-00', 'Millanyse Street', '9999999999', 4), (4, '<NAME>', '0000-00-00', 'U621 Jay Apura Bldg Bali Oasis 2', '9999999999', 4), (5, '<NAME>', '0000-00-00', '', '', 4), (6, '<NAME>', '2000-01-15', '', '', 4), (7, 'ggg', '2019-01-01', 'gjh', '4', 5), (9, 'aaaa', '1987-03-05', 'here', '1', 19); -- -------------------------------------------------------- -- -- Table structure for table `election` -- CREATE TABLE `election` ( `id` int(11) NOT NULL, `name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `description` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `election` -- INSERT INTO `election` (`id`, `name`, `description`, `enabled`) VALUES (1, 'test', 'desc11', 0), (2, 'dog election', 'test lol', 0), (3, 'safsadsa', 'dsadsadsa', 0), (4, 'hunger election', 'Libre ni Roniel', 0), (8, 'wesley', 'kayanan', 0), (11, 'john', 'john', 0); -- -------------------------------------------------------- -- -- Table structure for table `subelection` -- CREATE TABLE `subelection` ( `id` int(11) NOT NULL, `name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `description` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL, `election_id` int(11) NOT NULL, `allow_all_voter_blocks` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `subelection` -- INSERT INTO `subelection` (`id`, `name`, `description`, `election_id`, `allow_all_voter_blocks`) VALUES (1, 'puppet 1', 'test subelection 1', 1, 0), (3, 'puppet 2', 'test subelection 2 communist ed', 1, 1), (4, 'District Wesley', 'blah blah blah', 3, 1), (5, 'y', 'yyyy', 4, 0), (6, 'christopher', 'reyes', 8, 0), (8, 'sub', 'sub', 11, 0); -- -------------------------------------------------------- -- -- Table structure for table `subelection_authorized_vblocks` -- CREATE TABLE `subelection_authorized_vblocks` ( `id` int(11) NOT NULL, `subelection_id` int(11) NOT NULL, `authorized_voter_block_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `subelection_authorized_vblocks` -- INSERT INTO `subelection_authorized_vblocks` (`id`, `subelection_id`, `authorized_voter_block_id`) VALUES (1, 1, 3), (4, 1, 4), (6, 4, 5), (7, 6, 6), (8, 8, 32); -- -------------------------------------------------------- -- -- Table structure for table `subelection_position` -- CREATE TABLE `subelection_position` ( `id` int(11) NOT NULL, `name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `description` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL, `subelection_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `subelection_position` -- INSERT INTO `subelection_position` (`id`, `name`, `description`, `subelection_id`) VALUES (1, 'president', 'sadsasassa', 1), (2, 'vice president', '副会長', 1), (4, 'Dictator', '', 4), (5, 'h', 'nhh', 6), (19, 'position', 'position', 8); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `name` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, `surname` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, `date_of_birth` date DEFAULT NULL, `address` varchar(300) COLLATE utf8mb4_bin DEFAULT NULL, `contact_number` varchar(15) COLLATE utf8mb4_bin DEFAULT NULL, `username` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, `password` varchar(5) COLLATE utf8mb4_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `surname`, `date_of_birth`, `address`, `contact_number`, `username`, `password`) VALUES (9, 'test vblock user barch', 'american', '2019-04-22', '<PASSWORD>', '3213213', 'tamerican', 'Y6sr3'), (10, 'test vblock user barch', 'test', '2019-04-22', 'sadsad', '3213213', 'ttest', 'she6a'), (11, 'test vblock user barch', 'um', '2019-04-22', 'sadsad', '3213213', 'tum', 'Mau6S'), (12, 'test vblock user barch', 'yoyoyo', '2019-04-22', 'sadsad', '3213213', 'tyoyoyo', 'ajs6z'), (13, 'test vblock user barch', 'heyy', '2019-04-22', 'sadsad', '3213213', 'theyy', 'syqmx'), (14, 'test vblock user barch', 'heyy', '2019-04-22', 'sadsad', '3213213', 'theyy1', 'JsgSn'), (15, 'alice', 'alice', '2000-01-01', 'abc', '999999999', 'aalice', 'HstS5'), (16, 'bob', 'bob', '2000-01-01', 'abc', '999999999', 'bbob', 'y5ELf'), (17, 'charlie', 'chan', '2000-01-01', 'abc', '999999999', 'cchan', 'POs9a'), (18, 'dave', 'cruz', '2000-01-01', 'abc', '999999999', 'dcruz', 'Nsiqm'), (19, 'j', 'surname', '2019-01-01', 'gghj', '17', 'jsurname', 'JArx5'), (20, 'j', 'man', '2019-01-01', 'gghj', '18', 'jman', 'yRz5v'), (21, 'ggg', 'hhh', '2019-01-01', 'gghj', '19', 'ghhh', 'sh3o0'), (22, 'GGGGG', 'GGGGG', '2004-03-03', 'rtyuio', '123456789', 'GGGGGG', 'HzrwF'), (23, 'hello', 'world', '1998-05-04', 'earth', '23', 'hworld', '17b4e'), (24, 'wsfe', 'fesf', '2020-11-02', 'wsf', '204934983', 'wfesf', '5d79f'); -- -------------------------------------------------------- -- -- Table structure for table `vote` -- CREATE TABLE `vote` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `candidate_id` int(11) NOT NULL, `subelection_position_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `voter_block` -- CREATE TABLE `voter_block` ( `id` int(11) NOT NULL, `name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `description` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL, `parent_election_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `voter_block` -- INSERT INTO `voter_block` (`id`, `name`, `description`, `parent_election_id`) VALUES (3, 'test voter block', 'lalaalalala', 1), (4, 'sdad', 'asdadsada', 1), (5, 'District Wesley', 'Binayaran ni Wesley', 3), (6, 'roberto', 'daniel', 8), (8, 'hello', 'hello', 1), (30, 'v', 'v', 8), (32, 'loss', 'loss', 11); -- -------------------------------------------------------- -- -- Table structure for table `voter_block_members` -- CREATE TABLE `voter_block_members` ( `id` int(11) NOT NULL, `block_id` int(11) NOT NULL, `user_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `voter_block_members` -- INSERT INTO `voter_block_members` (`id`, `block_id`, `user_id`) VALUES (4, 3, 12), (5, 3, 13), (6, 3, 14), (7, 4, 13), (8, 5, 15), (9, 5, 16), (10, 5, 17), (11, 5, 18), (12, 3, 15), (13, 6, 19), (14, 6, 20), (15, 6, 21), (16, 5, 19), (17, 3, 22), (18, 3, 23), (25, 3, 24); -- -------------------------------------------------------- -- -- Table structure for table `vote_results` -- CREATE TABLE `vote_results` ( `id` int(11) NOT NULL, `election_id` int(11) NOT NULL, `vote_count` int(11) NOT NULL, `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `candidate` -- ALTER TABLE `candidate` ADD PRIMARY KEY (`id`), ADD KEY `subelection_position_id` (`subelection_position_id`); -- -- Indexes for table `election` -- ALTER TABLE `election` ADD PRIMARY KEY (`id`); -- -- Indexes for table `subelection` -- ALTER TABLE `subelection` ADD PRIMARY KEY (`id`), ADD KEY `election_id` (`election_id`); -- -- Indexes for table `subelection_authorized_vblocks` -- ALTER TABLE `subelection_authorized_vblocks` ADD PRIMARY KEY (`id`), ADD KEY `subelection_id` (`subelection_id`), ADD KEY `authorized_voter_block_id` (`authorized_voter_block_id`); -- -- Indexes for table `subelection_position` -- ALTER TABLE `subelection_position` ADD PRIMARY KEY (`id`), ADD KEY `subelection_id` (`subelection_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `vote` -- ALTER TABLE `vote` ADD PRIMARY KEY (`id`), ADD KEY `user_id` (`user_id`), ADD KEY `candidate_id` (`candidate_id`), ADD KEY `subelection_position_id` (`subelection_position_id`); -- -- Indexes for table `voter_block` -- ALTER TABLE `voter_block` ADD PRIMARY KEY (`id`), ADD KEY `fk_parent_election` (`parent_election_id`); -- -- Indexes for table `voter_block_members` -- ALTER TABLE `voter_block_members` ADD PRIMARY KEY (`id`), ADD KEY `block_id` (`block_id`), ADD KEY `user_id` (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `candidate` -- ALTER TABLE `candidate` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `election` -- ALTER TABLE `election` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `subelection` -- ALTER TABLE `subelection` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `subelection_authorized_vblocks` -- ALTER TABLE `subelection_authorized_vblocks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `subelection_position` -- ALTER TABLE `subelection_position` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT for table `vote` -- ALTER TABLE `vote` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `voter_block` -- ALTER TABLE `voter_block` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `voter_block_members` -- ALTER TABLE `voter_block_members` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- Constraints for dumped tables -- -- -- Constraints for table `candidate` -- ALTER TABLE `candidate` ADD CONSTRAINT `candidate_ibfk_1` FOREIGN KEY (`subelection_position_id`) REFERENCES `subelection_position` (`id`); -- -- Constraints for table `subelection` -- ALTER TABLE `subelection` ADD CONSTRAINT `subelection_ibfk_1` FOREIGN KEY (`election_id`) REFERENCES `election` (`id`); -- -- Constraints for table `subelection_authorized_vblocks` -- ALTER TABLE `subelection_authorized_vblocks` ADD CONSTRAINT `subelection_authorized_vblocks_ibfk_1` FOREIGN KEY (`subelection_id`) REFERENCES `subelection` (`id`), ADD CONSTRAINT `subelection_authorized_vblocks_ibfk_2` FOREIGN KEY (`authorized_voter_block_id`) REFERENCES `voter_block` (`id`); -- -- Constraints for table `subelection_position` -- ALTER TABLE `subelection_position` ADD CONSTRAINT `subelection_position_ibfk_1` FOREIGN KEY (`subelection_id`) REFERENCES `subelection` (`id`); -- -- Constraints for table `vote` -- ALTER TABLE `vote` ADD CONSTRAINT `vote_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`), ADD CONSTRAINT `vote_ibfk_2` FOREIGN KEY (`candidate_id`) REFERENCES `candidate` (`id`), ADD CONSTRAINT `vote_ibfk_3` FOREIGN KEY (`subelection_position_id`) REFERENCES `subelection_position` (`id`); -- -- Constraints for table `voter_block` -- ALTER TABLE `voter_block` ADD CONSTRAINT `fk_parent_election` FOREIGN KEY (`parent_election_id`) REFERENCES `election` (`id`); -- -- Constraints for table `voter_block_members` -- ALTER TABLE `voter_block_members` ADD CONSTRAINT `voter_block_members_ibfk_1` FOREIGN KEY (`block_id`) REFERENCES `voter_block` (`id`), ADD CONSTRAINT `voter_block_members_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); COMMIT; /*!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 */;
<filename>old_eval/RandomJsonQueries/query05.sql -- Or the explicit version of that EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON) SELECT to_char(published, 'YYYY-WW') AS week, COUNT(*) week_count FROM ( SELECT doc.published FROM hyperedges as h, hyperedge_document as hd, documents as doc, terms t WHERE h.edge_id = hd.edge_id AND t.term_id = h.term_id AND t.term_text ILIKE '<NAME>' AND hd.document_id = doc.document_id) as trump_documents GROUP BY week;
<filename>plugins/event_module/uninstall/query.sql SET foreign_key_checks = 0; DROP TABLE IF EXISTS `events`; DROP TABLE IF EXISTS `event_details`; SET foreign_key_checks = 1;
<reponame>CoolestProjects/cp_liquibase CREATE DATABASE IF NOT EXISTS liquibase_test;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `spring_test` -- -- -------------------------------------------------------- -- -- Table structure for table `mydata` -- DROP TABLE IF EXISTS `mydata`; CREATE TABLE IF NOT EXISTS `mydata` ( `id` bigint(20) NOT NULL, `name` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `sample_table` -- DROP TABLE IF EXISTS `sample_table`; CREATE TABLE IF NOT EXISTS `sample_table` ( `id` bigint(20) NOT NULL, `name` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `mydata` -- ALTER TABLE `mydata` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sample_table` -- ALTER TABLE `sample_table` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `mydata` -- ALTER TABLE `mydata` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `sample_table` -- ALTER TABLE `sample_table` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
<filename>SubqueriesAndJOINsExercise/02.AddresseswithTowns.sql SELECT TOP(50) e.FirstName, e.LastName, t.[Name] AS Town, a.AddressText FROM Employees AS e JOIN Addresses AS a ON a.AddressID = e.AddressID JOIN Towns AS t ON t.TownID = a.TownID ORDER BY FirstName, LastName
<gh_stars>1-10 SET DEFINE OFF; CREATE UNIQUE INDEX AFW_23_DETL_APLIC_MODL_REC_PK ON AFW_23_DETL_APLIC_MODL_RECHR (SEQNC) LOGGING /
<gh_stars>1-10 CREATE PROCEDURE [dbo].[aspnet_Membership_GetNumberOfUsersOnline] @ApplicationName nvarchar(256), @MinutesSinceLastInActive int, @CurrentTimeUtc datetime AS BEGIN DECLARE @DateActive datetime SELECT @DateActive = DATEADD(minute, -(@MinutesSinceLastInActive), @CurrentTimeUtc) DECLARE @NumOnline int SELECT @NumOnline = COUNT(*) FROM dbo.aspnet_Users u(NOLOCK), dbo.aspnet_Applications a(NOLOCK), dbo.aspnet_Membership m(NOLOCK) WHERE u.ApplicationId = a.ApplicationId AND LastActivityDate > @DateActive AND a.LoweredApplicationName = LOWER(@ApplicationName) AND u.UserId = m.UserId RETURN(@NumOnline) END
<gh_stars>10-100 DO $$ BEGIN IF NOT EXISTS ( SELECT 1 FROM information_schema.tables WHERE table_schema = 'auth' AND table_name = 'user' ) THEN CREATE TABLE auth.user ( user_id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, password_hash VARCHAR(255) NOT NULL, password_salt VARCHAR(255) NOT NULL ); END IF; IF NOT EXISTS ( SELECT 1 FROM information_schema.tables WHERE table_schema = 'auth' AND table_name = 'claim' ) THEN CREATE TABLE auth.claim ( claim_id SERIAL PRIMARY KEY, type VARCHAR(255) NOT NULL, value VARCHAR(255) NOT NULL ); END IF; IF NOT EXISTS ( SELECT 1 FROM information_schema.tables WHERE table_schema = 'auth' AND table_name = 'user_claim' ) THEN CREATE TABLE auth.user_claim ( user_claim_id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL, claim_id INTEGER NOT NULL ); END IF; END; $$;
<gh_stars>1-10 DO $$ BEGIN PERFORM * FROM information_schema.columns WHERE table_schema = 'public' AND table_name = 'cd_events' AND column_name = 'dates' AND data_type = 'ARRAY' AND udt_name = '_json'; IF NOT FOUND THEN BEGIN ALTER TABLE cd_events ADD COLUMN dates_json json[]; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE 'column dates_json already exists in cd_events.'; END; UPDATE cd_events e SET dates_json = ( SELECT array ( SELECT row_to_json(t) FROM ( SELECT "startTime" - (SELECT EXTRACT(timezone_hour FROM "startTime") * INTERVAL '1 HOURS') as "startTime", "startTime" - (SELECT EXTRACT(timezone_hour FROM "startTime") * INTERVAL '1 HOURS') + interval '2 hours' as "endTime" FROM ( SELECT unnest(dates) as "startTime" from cd_events ev where ev.id = e.id ) s) t ) ); ALTER TABLE cd_events DROP COLUMN dates; ALTER TABLE cd_events RENAME COLUMN dates_json TO dates; ELSE RAISE NOTICE 'column dates already is already of type json[].'; END IF; END; $$
<reponame>SQLSith/TestDataGenerator  CREATE Proc [Test].[usp_Get_Date] (@MinDate date = '1980/01/01', @MaxDate date = '2020/01/01', @MaxIteration int = 100, @ResultOnly bit = 0, @Result tinyint = 0 out) as Set nocount on ; if object_id('tempdb..#test') is not null begin Drop Table #test end ; Create Table #test ( [Date] Date ) ; Declare @Date Date, @Iteration int = 1, @ValuesGenerated int = 0 while @Iteration <= @MaxIteration begin exec SingleValue.usp_Get_Date @MinDate = @MinDate, @MaxDate = @MaxDate, @Date = @Date out ; insert #test values(@Date) ; Select @Iteration = @Iteration + 1 end Select @ValuesGenerated = count(*) from #test if @ResultOnly = 0 begin Select @MaxIteration Expected, @ValuesGenerated Actual Select [Date], count(*) from #test group by [Date] order by 1 ; end Select @Result = case when @MaxIteration = @ValuesGenerated then 1 else 0 end Drop Table #test
<filename>src/BinaryDataDecoders.SqlServer.Samples/Person/Tables/Password.sql<gh_stars>1-10 CREATE TABLE [Person].[Password] ( [BusinessEntityID] INT NOT NULL, [PasswordHash] VARCHAR (128) NOT NULL, [PasswordSalt] VARCHAR (10) NOT NULL, [rowguid] UNIQUEIDENTIFIER CONSTRAINT [DF_Password_rowguid] DEFAULT (newid()) ROWGUIDCOL NOT NULL, [ModifiedDate] DATETIME CONSTRAINT [DF_Password_ModifiedDate] DEFAULT (getdate()) NOT NULL, CONSTRAINT [PK_Password_BusinessEntityID] PRIMARY KEY CLUSTERED ([BusinessEntityID] ASC), CONSTRAINT [FK_Password_Person_BusinessEntityID] FOREIGN KEY ([BusinessEntityID]) REFERENCES [Person].[Person] ([BusinessEntityID]) ); GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Default constraint value of GETDATE()', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'CONSTRAINT', @level2name = N'DF_Password_ModifiedDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Default constraint value of NEWID()', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'CONSTRAINT', @level2name = N'DF_Password_rowguid'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Foreign key constraint referencing Person.BusinessEntityID.', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'CONSTRAINT', @level2name = N'FK_Password_Person_BusinessEntityID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary key (clustered) constraint', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'CONSTRAINT', @level2name = N'PK_Password_BusinessEntityID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Date and time the record was last updated.', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'COLUMN', @level2name = N'ModifiedDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'COLUMN', @level2name = N'rowguid'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Random value concatenated with the password string before the password is hashed.', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'COLUMN', @level2name = N'PasswordSalt'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Password for the e-mail account.', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password', @level2type = N'COLUMN', @level2name = N'PasswordHash'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'One way hashed authentication information', @level0type = N'SCHEMA', @level0name = N'Person', @level1type = N'TABLE', @level1name = N'Password';
<reponame>danieldiamond/gitlab-analytics WITH source AS ( SELECT * FROM {{ source('sheetload', 'yc_companies') }} ), renamed as ( SELECT MD5("Name"::VARCHAR || "Batch"::VARCHAR) AS company_id, "Name"::VARCHAR AS company_name, "Batch"::VARCHAR AS yc_batch, "Description"::VARCHAR AS company_description FROM source ) SELECT * FROM renamed
<filename>packages/acs-messaging/sql/oracle/upgrade/upgrade-5.2.1d1-5.2.1d2.sql -- -- packages/acs-messaging/sql/acs-messaging-packages.sql -- -- @author <NAME> <<EMAIL>> -- @author <NAME> <<EMAIL>> -- @creation-date 2000-08-27 -- @cvs-id $Id: upgrade-5.2.1d1-5.2.1d2.sql,v 1.4 2015/12/04 13:50:05 cvs Exp $ -- create or replace package acs_message as function new ( message_id in acs_messages.message_id%TYPE default null, reply_to in acs_messages.reply_to%TYPE default null, sent_date in acs_messages.sent_date%TYPE default sysdate, sender in acs_messages.sender%TYPE default null, rfc822_id in acs_messages.rfc822_id%TYPE default null, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', text in varchar2 default null, data in cr_revisions.content%TYPE default null, parent_id in cr_items.parent_id%TYPE default -4, context_id in acs_objects.context_id%TYPE, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, object_type in acs_objects.object_type%TYPE default 'acs_message', is_live in char default 't', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE; function edit ( message_id in acs_messages.message_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', text in varchar2 default null, data in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE; procedure del ( message_id in acs_messages.message_id%TYPE ); function message_p ( message_id in acs_messages.message_id%TYPE ) return char; procedure send ( message_id in acs_messages.message_id%TYPE, recipient_id in parties.party_id%TYPE, grouping_id in integer default null, wait_until in date default sysdate ); procedure send ( message_id in acs_messages.message_id%TYPE, to_address in varchar2, grouping_id in integer default null, wait_until in date default sysdate ); function first_ancestor ( message_id in acs_messages.message_id%TYPE ) return acs_messages.message_id%TYPE; -- ACHTUNG! WARNING! ACHTUNG! WARNING! ACHTUNG! WARNING! -- -- Developers: Please don't depend on the following functionality -- to remain in the same place. Chances are very good these -- functions will migrate to another PL/SQL package or be replaced -- by direct calls to CR code in the near future. function new_file ( message_id in acs_messages.message_id%TYPE, file_id in cr_items.item_id%TYPE default null, file_name in cr_items.name%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't', storage_type in cr_items.storage_type%TYPE default 'file', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE; function edit_file ( file_id in cr_items.item_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE; procedure delete_file ( file_id in cr_items.item_id%TYPE ); function new_image ( message_id in acs_messages.message_id%TYPE, image_id in cr_items.item_id%TYPE default null, file_name in cr_items.name%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, width in images.width%TYPE default null, height in images.height%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't', storage_type in cr_items.storage_type%TYPE default 'file', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE; function edit_image ( image_id in cr_items.item_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, width in images.width%TYPE default null, height in images.height%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE; procedure delete_image ( image_id in cr_items.item_id%TYPE ); function new_extlink ( name in cr_items.name%TYPE default null, extlink_id in cr_extlinks.extlink_id%TYPE default null, url in cr_extlinks.url%TYPE, label in cr_extlinks.label%TYPE default null, description in cr_extlinks.description%TYPE default null, parent_id in acs_objects.context_id%TYPE, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, package_id in acs_objects.package_id%TYPE default null ) return cr_extlinks.extlink_id%TYPE; function edit_extlink ( extlink_id in cr_extlinks.extlink_id%TYPE, url in cr_extlinks.url%TYPE, label in cr_extlinks.label%TYPE default null, description in cr_extlinks.description%TYPE default null ) return cr_extlinks.extlink_id%TYPE; procedure delete_extlink ( extlink_id in cr_extlinks.extlink_id%TYPE ); function name ( message_id in acs_objects.object_id%TYPE ) return varchar2; end acs_message; / show errors create or replace package body acs_message as function new ( message_id in acs_messages.message_id%TYPE default null, reply_to in acs_messages.reply_to%TYPE default null, sent_date in acs_messages.sent_date%TYPE default sysdate, sender in acs_messages.sender%TYPE default null, rfc822_id in acs_messages.rfc822_id%TYPE default null, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', text in varchar2 default null, data in cr_revisions.content%TYPE default null, parent_id in cr_items.parent_id%TYPE default -4, context_id in acs_objects.context_id%TYPE, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, object_type in acs_objects.object_type%TYPE default 'acs_message', is_live in char default 't', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE is v_message_id acs_messages.message_id%TYPE; v_rfc822_id acs_messages.rfc822_id%TYPE; v_revision_id cr_revisions.revision_id%TYPE; begin -- generate a message id now so we can get an rfc822 message-id if message_id is null then select acs_object_id_seq.nextval into v_message_id from dual; else v_message_id := message_id; end if; -- this needs to be fixed up, but Oracle doesn't give us a way -- to get the FQDN if rfc822_id is null then v_rfc822_id := sysdate || '.' || v_message_id || '@' || utl_inaddr.get_host_name || '.hate'; else v_rfc822_id := rfc822_id; end if; v_message_id := content_item.new ( name => v_rfc822_id, parent_id => parent_id, content_type => 'acs_message_revision', item_id => message_id, context_id => context_id, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, item_subtype => object_type, package_id => package_id ); insert into acs_messages (message_id, reply_to, sent_date, sender, rfc822_id) values (v_message_id, reply_to, sent_date, sender, v_rfc822_id); -- create an initial revision for the new message v_revision_id := acs_message.edit ( message_id => v_message_id, title => title, description => description, mime_type => mime_type, text => text, data => data, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, is_live => is_live ); return v_message_id; end new; function edit ( message_id in acs_messages.message_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', text in varchar2 default null, data in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE is v_revision_id cr_revisions.revision_id%TYPE; begin -- create a new revision using whichever call is appropriate if edit.data is not null then v_revision_id := content_revision.new ( item_id => message_id, title => title, description => description, data => data, mime_type => mime_type, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip ); elsif title is not null or text is not null then v_revision_id := content_revision.new ( item_id => message_id, title => title, description => description, text => text, mime_type => mime_type, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip ); end if; -- test for auto approval of revision if edit.is_live = 't' then content_item.set_live_revision(v_revision_id); end if; return v_revision_id; end edit; procedure del ( message_id in acs_messages.message_id%TYPE ) is begin delete from acs_messages where message_id = acs_message.del.message_id; content_item.del(message_id); end del; function message_p ( message_id in acs_messages.message_id%TYPE ) return char is v_check_message_id integer; begin select decode(count(message_id),0,0,1) into v_check_message_id from acs_messages where message_id = message_p.message_id; if v_check_message_id <> 0 then return 't'; else return 'f'; end if; end message_p; procedure send ( message_id in acs_messages.message_id%TYPE, to_address in varchar2, grouping_id in integer default null, wait_until in date default sysdate ) is v_wait_until date; begin v_wait_until := nvl(wait_until, sysdate); insert into acs_messages_outgoing (message_id, to_address, grouping_id, wait_until) values (message_id, to_address, grouping_id, v_wait_until); end send; procedure send ( message_id in acs_messages.message_id%TYPE, recipient_id in parties.party_id%TYPE, grouping_id in integer default null, wait_until in date default sysdate ) is v_wait_until date; begin v_wait_until := nvl(wait_until, sysdate); insert into acs_messages_outgoing (message_id, to_address, grouping_id, wait_until) select send.message_id, p.email, send.grouping_id, v_wait_until from parties p where p.party_id = send.recipient_id; end send; function first_ancestor ( message_id in acs_messages.message_id%TYPE ) return acs_messages.message_id%TYPE is v_message_id acs_messages.message_id%TYPE; begin select message_id into v_message_id from (select message_id, reply_to from acs_messages connect by message_id = prior reply_to start with message_id = first_ancestor.message_id) ancestors where reply_to is null; return v_message_id; end first_ancestor; -- ACHTUNG! WARNING! ACHTUNG! WARNING! ACHTUNG! WARNING! -- -- Developers: Please don't depend on the following functionality -- to remain in the same place. Chances are very good these -- functions will migrate to another PL/SQL package or be replaced -- by direct calls to CR code in the near future. function new_file ( message_id in acs_messages.message_id%TYPE, file_id in cr_items.item_id%TYPE default null, file_name in cr_items.name%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't', storage_type in cr_items.storage_type%TYPE default 'file', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE is v_file_id cr_items.item_id%TYPE; v_revision_id cr_revisions.revision_id%TYPE; begin v_file_id := content_item.new ( name => file_name, parent_id => message_id, item_id => file_id, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, storage_type => storage_type, package_id => package_id ); -- create an initial revision for the new attachment v_revision_id := edit_file ( file_id => v_file_id, title => title, description => description, mime_type => mime_type, content => content, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, is_live => is_live ); return v_file_id; end new_file; function edit_file ( file_id in cr_items.item_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE is v_revision_id cr_revisions.revision_id%TYPE; begin v_revision_id := content_revision.new ( title => title, mime_type => mime_type, data => content, item_id => file_id, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip ); -- test for auto approval of revision if is_live = 't' then content_item.set_live_revision(v_revision_id); end if; return v_revision_id; end edit_file; procedure delete_file ( file_id in cr_items.item_id%TYPE ) is begin content_item.del(delete_file.file_id); end delete_file; function new_image ( message_id in acs_messages.message_id%TYPE, image_id in cr_items.item_id%TYPE default null, file_name in cr_items.name%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, width in images.width%TYPE default null, height in images.height%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't', storage_type in cr_items.storage_type%TYPE default 'file', package_id in acs_objects.package_id%TYPE default null ) return acs_objects.object_id%TYPE is v_image_id cr_items.item_id%TYPE; v_revision_id cr_revisions.revision_id%TYPE; begin v_image_id := content_item.new ( name => file_name, parent_id => message_id, item_id => image_id, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, storage_type => storage_type, package_id => package_id ); -- create an initial revision for the new attachment v_revision_id := edit_image ( image_id => v_image_id, title => title, description => description, mime_type => mime_type, content => content, width => width, height => height, creation_date => creation_date, creation_user => creation_user, creation_ip => creation_ip, is_live => is_live ); return v_image_id; end new_image; function edit_image ( image_id in cr_items.item_id%TYPE, title in cr_revisions.title%TYPE default null, description in cr_revisions.description%TYPE default null, mime_type in cr_revisions.mime_type%TYPE default 'text/plain', content in cr_revisions.content%TYPE default null, width in images.width%TYPE default null, height in images.height%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, is_live in char default 't' ) return acs_objects.object_id%TYPE is v_revision_id cr_revisions.revision_id%TYPE; begin v_revision_id := content_revision.new ( title => edit_image.title, mime_type => edit_image.mime_type, data => edit_image.content, item_id => edit_image.image_id, creation_date => edit_image.creation_date, creation_user => edit_image.creation_user, creation_ip => edit_image.creation_ip ); -- insert new width and height values -- XXX fix after image.new exists insert into images (image_id, width, height) values (v_revision_id, width, height); -- test for auto approval of revision if edit_image.is_live = 't' then content_item.set_live_revision(v_revision_id); end if; return v_revision_id; end edit_image; procedure delete_image ( image_id in cr_items.item_id%TYPE ) is begin -- XXX fix after image.delete exists delete from images where image_id = delete_image.image_id; content_item.del(image_id); end delete_image; -- XXX should just call content_extlink.new function new_extlink ( name in cr_items.name%TYPE default null, extlink_id in cr_extlinks.extlink_id%TYPE default null, url in cr_extlinks.url%TYPE, label in cr_extlinks.label%TYPE default null, description in cr_extlinks.description%TYPE default null, parent_id in acs_objects.context_id%TYPE, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, package_id in acs_objects.package_id%TYPE default null ) return cr_extlinks.extlink_id%TYPE is v_extlink_id cr_extlinks.extlink_id%TYPE; begin v_extlink_id := content_extlink.new ( name => new_extlink.name, url => new_extlink.url, label => new_extlink.label, description => new_extlink.description, parent_id => new_extlink.parent_id, extlink_id => new_extlink.extlink_id, creation_date => new_extlink.creation_date, creation_user => new_extlink.creation_user, creation_ip => new_extlink.creation_ip, package_id => new_extlink.package_id ); end new_extlink; -- XXX should just edit extlink function edit_extlink ( extlink_id in cr_extlinks.extlink_id%TYPE, url in cr_extlinks.url%TYPE, label in cr_extlinks.label%TYPE default null, description in cr_extlinks.description%TYPE default null ) return cr_extlinks.extlink_id%TYPE is v_is_extlink char; begin v_is_extlink := content_extlink.is_extlink(edit_extlink.extlink_id); if v_is_extlink = 't' then update cr_extlinks set url = edit_extlink.url, label = edit_extlink.label, description = edit_extlink.description where extlink_id = edit_extlink.extlink_id; end if; return v_is_extlink; end edit_extlink; procedure delete_extlink ( extlink_id in cr_extlinks.extlink_id%TYPE ) is begin content_extlink.del(extlink_id => delete_extlink.extlink_id); end delete_extlink; function name ( message_id in acs_objects.object_id%TYPE ) return varchar2 is v_message_name acs_messages_all.title%TYPE; begin select title into v_message_name from acs_messages_all where message_id = name.message_id; return v_message_name; end name; end acs_message; / show errors
<filename>sql/sql/007-delete.sql<gh_stars>0 -- see: https://www.postgresql.org/docs/14/tutorial-delete.html DELETE FROM weather WHERE city = 'Hayward'; SELECT * FROM weather; /* city | temp_lo | temp_hi | prcp | date ---------------+---------+---------+------+------------ San Francisco | 46 | 50 | 0.25 | 1994-11-27 San Francisco | 41 | 55 | 0 | 1994-11-29 (2 rows) */ -- Delete all rows -- DELETE FROM tablename;
<gh_stars>0 -- -- Dumping data for table `t_user` -- INSERT INTO `t_user` VALUES (1,'zhenjiba','21232f297a57a5a743894a0e4a801fc3','Mic',NULL,'13073804251','MAN',1,'2019-08-08 15:15:08',NULL,'dangoulicc'),(2,'ligoudan',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(3,'tangtang',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(5,'tangtang111',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(6,'tt666',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(7,'tt777',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(9,'tt999',NULL,NULL,NULL,NULL,'MAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(10,'tt1010',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(11,'tt1111',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(12,'jiaoshigun',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(14,'jiaoshigun2',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(15,'jiaoshigun3',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(16,'jiaoshigun6',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(17,'jiaoshigun7',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(20,'jiaoshigun10',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(22,'jiaoshigun11',NULL,NULL,NULL,NULL,'WOMAN',NULL,'2019-08-08 15:04:44',NULL,'zhangsan'),(24,'ligoudancc','996',NULL,NULL,NULL,'MAN',NULL,NULL,NULL,NULL);
TRUNCATE TABLE public.alert_template_translation; -- -- Load public.alert_template_translation -- INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_LEAK'), 'en', 'Check for water leaks!', 'We believe there could be a water leak in your house. Please check all fixtures for leaks and contact your water utility.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_LEAK'), 'es', '¡Comprueba las fugas de agua!', 'Creemos que tienes una fuga de agua en casa. Por favor, comprueba tus dispositivos y contacta con tu compañía suministradora de agua.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('SHOWER_ON'), 'en', 'Shower still on!', 'Someone forgot to close the shower?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('SHOWER_ON'), 'es', '¡Te has dejado la ducha encendida!', '¿Alguien ha olvidado cerrar el grifo de la ducha?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_FIXTURES'), 'en', 'Check the water fixtures!', 'Please check your water fixtures, there may be water running in one of them!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_FIXTURES'), 'es', 'Comprueba tus dispositivos que funcionen con agua', 'Por favor, comprueba tus dispositivos que funcionen con agua, puede que te hayas dejado alguno funcionando.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('UNUSUAL_ACTIVITY'), 'en', 'Unusual activity detected!', 'Water is being used in your household at an unusual time. Is everything OK?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('UNUSUAL_ACTIVITY'), 'es', '¡Actividad inusual detectada!', 'Se está utilizando agua en una hora un poco inusual. ¿Está todo bien?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_QUALITY'), 'en', 'Water quality not assured!', 'Remember to leave the water running for a few minutes when you return home after a long period of absence. Temperatures have been over 28 since you last used water. Better be safe from Legionella.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_QUALITY'), 'es', '¡Calidad del agua no asegurada!', 'Recuerda dejar correr un par de minutos el agua en el grifo cuando vuelvas a casa después de estar mucho tiempo fuera. Si la temperatura ha superado los 28ºC en algún momento podrías contraer legionela.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('HIGH_TEMPERATURE'), 'en', 'Water too hot!', 'Be careful, the water in your shower is extremely hot!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('HIGH_TEMPERATURE'), 'es', '¡Agua demasiado caliente!', '¡Cuidado, el agua de tu ducha está demasiado caliente!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_DAILY_WATER_BUDGET'), 'en', 'Reached 80% of your daily water budget', 'You have already used <h1>{integer1}</h1> litres, and you have <h1>{integer2}</h1> litres remaining for today. Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_DAILY_WATER_BUDGET'), 'es', 'Ya has consumido el 80% de lo que sueles consumir normalmente al día.', 'Ya has consumo <h1>{integer1}</h1> litros, y normalmente gastas <h1>{integer2}</h1> al día. ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_WEEKLY_WATER_BUDGET'), 'en', 'Reached 80% of your weekly water budget', 'You have already used <h1>{integer1}</h1> litres, and you have <h1>{integer2}</h1> litres remaining for this week. Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_WEEKLY_WATER_BUDGET'), 'es', 'Ya has consumido el 80% de lo que sueles consumir normalmente a la semana', 'Ya has consumo <h1>{integer1}</h1> litros, y normalmente gastas <h1>{integer2}</h1> a la semana. ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_DAILY_SHOWER_BUDGET'), 'en', 'Reached 80% of your daily shower budget', 'You have already used <h1>{integer1}</h1> litres, and you have <h1>{integer2}</h1> litres remaining for today. Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_DAILY_SHOWER_BUDGET'), 'es', 'Ya has consumido el 80% de lo que sueles consumir normalmente al día en la ducha.', 'Ya has consumo <h1>{integer1}</h1> litros, y normalmente gastas <h1>{integer2}</h1> al día duchándote. ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_WEEKLY_SHOWER_BUDGET'), 'en', 'Reached 80% of your weekly shower budget', 'You have already used <h1>{integer1}</h1> litres and you have <h1>{integer2}</h1> litres remaining for this week. Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('NEAR_WEEKLY_SHOWER_BUDGET'), 'es', 'Ya has consumido el 80% de lo que sueles consumir normalmente a la semana en la ducha', 'Ya has consumo <h1>{integer1}</h1> litros, y normalmente gastas <h1>{integer2}</h1> a la semana duchándote. ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REACHED_DAILY_WATER_BUDGET'), 'en', 'Reached daily Water Budget', 'You have used all <h1>{integer1}</h1> litres of your water budget. Let’s stick to our budget tomorrow! Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REACHED_DAILY_WATER_BUDGET'), 'es', 'Alcanzado el consumo medio diario de agua', 'Has consumo los <h1>{integer1}</h1> litros que consumes normalmente. ¡Intentemos mejorarlo mañana! ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REACHED_DAILY_SHOWER_BUDGET'), 'en', 'Reached daily Shower Budget', 'You have used all <h1>{integer1}</h1> litres of your shower budget. Let’s stick to our budget tomorrow! Want some tips to save water?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REACHED_DAILY_SHOWER_BUDGET'), 'es', 'Alcanzado el consumo medio diario de agua en la ducha', 'Has consumo los <h1>{integer1}</h1> litros que consumes normalmente en la ducha. ¡Intentemos mejorarlo mañana! ¿Quieres algunas recomendaciones para ahorrar agua?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_CHAMPION'), 'en', 'You are a real water champion!', 'Well done! You have managed to stay within your budget for 1 whole month! Feel you can do better? Try targeting a slightly lower daily budget.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_CHAMPION'), 'es', '¡Eres un genio del agua!', '¡Bien hecho! ¡Has conseguido mejorar tu consumo diario durante 1 mes completo! ¿Podrías hacerlo mejor? Intenta optimizar un poco más tu consumo.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('SHOWER_CHAMPION'), 'en', 'You are a real shower champion!', 'Well done! You have managed to stay within your shower budget for 1 whole month! Feel you can do better? Try targeting a slightly lower daily shower budget.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('SHOWER_CHAMPION'), 'es', '¡Eres un genio de la ducha!', '¡Bien hecho! ¡Has conseguido mejorar tu consumo diario en la ducha durante 1 mes completo! ¿Podrías hacerlo mejor? Intenta optimizar un poco más tu consumo' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_WATER_METER'), 'en', 'You are using too much water', 'You are using twice the amount of water compared to city average. You could save up to <h1>{integer1}</h1> liters. Want to learn how?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_WATER_METER'), 'es', '¡Estás gastando mucha agua!', 'Estás gastando el doble que la media ciudadana. Puedes ahorrar sobre <h1>{integer1}</h1> litros. ¿Quiéres aprender cómo?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_WATER_SHOWER'), 'en', 'You are using too much water in the shower', 'You are using twice the amount of water compared to other consumers. You could save up to <h1>{integer1}</h1> liters. Want to learn how?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_WATER_SHOWER'), 'es', '¡Estás gastando mucha agua en la ducha!', 'Estás consumiendo el doble que otros. Puedes ahorrar sobre <h1>{integer1}</h1> litros. ¿Quiéres aprender cómo?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_ENERGY'), 'en', 'You are spending too much energy for showering', 'You are spending too much hot water in the shower. Reducing the water temperature by a few degrees could save you up to <h1>{currency1}</h1> a year. Want to learn how?' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOO_MUCH_ENERGY'), 'es', 'Estás gastando mucha energía en tu ducha', 'Estás gastando mucha agua caliente. Reduce la temperatura un par de grados, podrías ahorrar <h1>{currency1}</h1>. ¿Quiéres aprender cómo’' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REDUCED_WATER_USE_METER'), 'en', 'Well done! You have greatly reduced your water use', 'You have reduced your water use by <h1>{integer1}</h1>% since you joined DAIAD! Congratulations, you are a water champion!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REDUCED_WATER_USE_METER'), 'es', '¡Bien hecho! Has reducido tu consumo de agu', '¡Has reducido tu consum de agua en un <h1>{integer1}</h1>% desde que participas en el piloto DAIAD!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REDUCED_WATER_USE_SHOWER'), 'en', 'Well done! You have greatly improved your shower efficiency', 'You have reduced your water use in the shower by <h1>{integer1}</h1>% since you joined DAIAD! Congratulations, you are a water champion!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('REDUCED_WATER_USE_SHOWER'), 'es', '¡Bien hecho! Has mejorado la eficiencia de tus duchas', '¡Has reducido tu consumo de agua en la ducha un <h1>{integer1}</h1>% desde que participas en el piloto DAIAD! ¡Enhorabuena, eres un genio del agua!' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_EFFICIENCY_LEADER'), 'en', 'Congratulations! You are a water efficiency leader', 'You are a true leader for water efficiency! If everyone adopted your behavior your city could save <h1>{integer1}</h1> litres of water' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('WATER_EFFICIENCY_LEADER'), 'es', '¡Enhorabuena! ¡Eres un máquina ahorrando agua!', '¡Eres realmente un máquina ahorrando agua! Si todos se comportaran como tú la ciudad ahorraría <h1>{integer1}</h1> litros de agua.' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('KEEP_UP_SAVING_WATER'), 'en', 'Keep up saving water!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('KEEP_UP_SAVING_WATER'), 'es', '¡Ahorremos agua!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('GOOD_JOB_MONTHLY'), 'en', 'You are doing a great job!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('GOOD_JOB_MONTHLY'), 'es', '¡Buen trabajo!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('LITERS_ALREADY_SAVED'), 'en', 'You have already saved <h1>{integer1}</h1> litres of water!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('LITERS_ALREADY_SAVED'), 'es', '¡Vamos, ya has ahorrado <h1>{integer1}</h1> litros!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOP_25_PERCENT_OF_SAVERS'), 'en', 'Congratulations! You are one of the top 25% savers in your region.', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOP_25_PERCENT_OF_SAVERS'), 'es', '¡Enhorabuena! Estás en el top 25 del piloto!', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOP_10_PERCENT_OF_SAVERS'), 'en', 'Congratulations! You are among the top group of savers in your city.', '' ); INSERT INTO public.alert_template_translation (template, locale, title, description) VALUES ( alert_template_from_name('TOP_10_PERCENT_OF_SAVERS'), 'es', '¡Enhorabuena! Estás entre los que más ahorran del piloto!', '' );
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `stats_callsign` ( `stats_callsign_id` int(11) NOT NULL, `callsign_icao` varchar(10) NOT NULL, `cnt` int(11) NOT NULL, `airline_icao` varchar(10) DEFAULT NULL, `filter_name` varchar(255) DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `stats_callsign` ADD PRIMARY KEY (`stats_callsign_id`), ADD UNIQUE KEY `callsign_icao` (`callsign_icao`,`filter_name`); ALTER TABLE `stats_callsign` MODIFY `stats_callsign_id` int(11) NOT NULL AUTO_INCREMENT;
<filename>DMS5/AddUpdateOrganisms.sql /****** Object: StoredProcedure [dbo].[AddUpdateOrganisms] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[AddUpdateOrganisms] /**************************************************** ** ** Desc: ** Adds new or edits existing Organisms ** ** Return values: 0: success, otherwise, error code ** ** Auth: grk ** Date: 03/07/2006 ** 01/12/2007 jds - Added support for new field OG_Active ** 01/12/2007 mem - Added validation that genus, species, and strain are not duplicated in T_Organisms ** 10/16/2007 mem - Updated to allow genus, species, and strain to all be 'na' (Ticket #562) ** 03/25/2008 mem - Added optional parameter @callingUser; if provided, then will populate field Entered_By with this name ** 09/12/2008 mem - Updated to call ValidateNAParameter to validate genus, species, and strain (Ticket #688, http://prismtrac.pnl.gov/trac/ticket/688) ** 09/09/2009 mem - No longer populating field OG_organismDBLocalPath ** 11/20/2009 mem - Removed parameter @orgDBLocalPath ** 12/03/2009 mem - Now making sure that @orgDBPath starts with two slashes and ends with one slash ** 08/04/2010 grk - try-catch for error handling ** 08/01/2012 mem - Now calling RefreshCachedOrganisms in MT_Main on ProteinSeqs ** 09/25/2012 mem - Expanded @orgName and @orgDBName to varchar(128) ** 11/20/2012 mem - No longer allowing @orgDBName to contain '.fasta' ** 05/10/2013 mem - Added @newtIdentifier ** 05/13/2013 mem - Now validating @newtIdentifier against S_V_CV_NEWT ** 05/24/2013 mem - Added @newtIDList ** 10/15/2014 mem - Removed @orgDBPath and added validation logic to @orgStorageLocation ** 06/25/2015 mem - Now validating that the protein collection specified by @orgDBName exists ** 09/10/2015 mem - Switch to using synonym S_MT_Main_RefreshCachedOrganisms ** 02/23/2016 mem - Add Set XACT_ABORT on ** 02/26/2016 mem - Check for @orgName containing a space ** 03/01/2016 mem - Added @ncbiTaxonomyID ** 03/02/2016 mem - Added @autoDefineTaxonomy ** - Removed parameter @newtIdentifier since superseded by @ncbiTaxonomyID ** 03/03/2016 mem - Now storing @autoDefineTaxonomy in column Auto_Define_Taxonomy ** 04/06/2016 mem - Now using Try_Convert to convert from text to int ** 12/02/2016 mem - Assure that @orgName and @orgShortName do not have any spaces or commas ** 02/06/2017 mem - Auto-update @newtIDList to match @ncbiTaxonomyID if @newtIDList is null or empty ** 03/17/2017 mem - Pass this procedure's name to udfParseDelimitedList ** 06/13/2017 mem - Use SCOPE_IDENTITY() ** 06/16/2017 mem - Restrict access using VerifySPAuthorized ** 08/01/2017 mem - Use THROW if not authorized ** 10/23/2017 mem - Check for the protein collection specified by @orgDBName being a valid name, but inactive ** 04/09/2018 mem - Auto-define @orgStorageLocation if empty ** 06/26/2019 mem - Remove DNA translation table arguments since unused ** 04/15/2020 mem - Populate OG_Storage_URL using @orgStorageLocation ** 09/14/2020 mem - Expand the description field to 512 characters ** 12/11/2020 mem - Allow duplicate metagenome organisms ** 10/13/2021 mem - Now using Try_Parse to convert from text to int, since Try_Convert('') gives 0 ** ** Pacific Northwest National Laboratory, Richland, WA ** Copyright 2005, Battelle Memorial Institute *****************************************************/ ( @orgName varchar(128), @orgShortName varchar(128), @orgStorageLocation varchar(256), @orgDBName varchar(128), -- Default protein collection name (prior to 2012 was default fasta file) @orgDescription varchar(512), @orgDomain varchar(64), @orgKingdom varchar(64), @orgPhylum varchar(64), @orgClass varchar(64), @orgOrder varchar(64), @orgFamily varchar(64), @orgGenus varchar(128), @orgSpecies varchar(128), @orgStrain varchar(128), @orgActive varchar(3), @newtIDList varchar(255), -- If blank, this is auto-populated using @ncbiTaxonomyID @ncbiTaxonomyID int, -- This is the preferred way to define the taxonomy ID for the organism. NEWT ID is typically identical to taxonomy ID @autoDefineTaxonomy varchar(12), -- 'Yes' or 'No' @id int output, @mode varchar(12) = 'add', -- 'add' or 'update' @message varchar(512) output, @callingUser varchar(128) = '' ) As Set XACT_ABORT, nocount on Declare @myError int = 0 Declare @myRowCount int = 0 Set @message = '' Declare @msg varchar(256) Declare @duplicateTaxologyMsg varchar(512) Declare @matchCount INT Declare @serverNameEndSlash int Declare @serverName varchar(64) Declare @pathForURL varchar(256) Declare @orgStorageURL varchar(256) = '' --------------------------------------------------- -- Verify that the user can execute this procedure from the given client host --------------------------------------------------- Declare @authorized tinyint = 0 Exec @authorized = VerifySPAuthorized 'AddUpdateOrganisms', @raiseError = 1 If @authorized = 0 Begin; THROW 51000, 'Access denied', 1; End; Begin Try --------------------------------------------------- -- Validate input fields --------------------------------------------------- Set @orgStorageLocation = IsNull(@orgStorageLocation, '') If @orgStorageLocation <> '' Begin If Not @orgStorageLocation LIKE '\\%' RAISERROR ('Org. Storage Path must start with \\', 11, 8) -- Make sure @orgStorageLocation does not End in \FASTA or \FASTA\ -- That text gets auto-appended via computed column OG_organismDBPath If @orgStorageLocation Like '%\FASTA' Set @orgStorageLocation = Substring(@orgStorageLocation, 1, Len(@orgStorageLocation) - 6) If @orgStorageLocation Like '%\FASTA\' Set @orgStorageLocation = Substring(@orgStorageLocation, 1, Len(@orgStorageLocation) - 7) If Not @orgStorageLocation Like '%\' Set @orgStorageLocation = @orgStorageLocation + '\' -- Auto-define @orgStorageURL -- Find the next slash after the 3rd character Set @serverNameEndSlash = CharIndex('\', @orgStorageLocation, 3) If @serverNameEndSlash > 3 Begin Set @serverName = Substring(@orgStorageLocation, 3, @serverNameEndSlash - 3) Set @pathForURL = Substring(@orgStorageLocation, @serverNameEndSlash + 1, LEN(@orgStorageLocation)) Set @orgStorageURL= 'http://' + @serverName + '/' + REPLACE(@pathForURL, '\', '/') End End Set @orgName = LTrim(RTrim(IsNull(@orgName, ''))) If Len(@orgName) < 1 Begin RAISERROR ('Organism Name cannot be blank', 11, 0) End If @orgName Like '% %' Begin RAISERROR ('Organism Name cannot contain spaces', 11, 0) End If @orgName Like '%,%' Begin RAISERROR ('Organism Name cannot contain commas', 11, 0) End If Len(@orgStorageLocation) = 0 Begin -- Auto define @orgStorageLocation Declare @orgDbPathBase varchar(128) = '\\gigasax\DMS_Organism_Files\' SELECT @orgDbPathBase = [Server] FROM T_MiscPaths WHERE [Function] = 'DMSOrganismFiles' Set @orgStorageLocation = dbo.udfCombinePaths(@orgDbPathBase, @orgName) + '\' End If Len(IsNull(@orgShortName, '')) > 0 Begin Set @orgShortName = LTrim(RTrim(IsNull(@orgShortName, ''))) If @orgShortName Like '% %' Begin RAISERROR ('Organism Short Name cannot contain spaces', 11, 0) End If @orgShortName Like '%,%' Begin RAISERROR ('Organism Short Name cannot contain commas', 11, 0) End End Set @orgDBName = IsNull(@orgDBName, '') If @orgDBName Like '%.fasta' Begin RAISERROR ('Default Protein Collection cannot contain ".fasta"', 11, 0) End Set @orgActive = IsNull(@orgActive, '') If Len(@orgActive) = 0 Or Try_Parse(@orgActive as int) Is Null Begin RAISERROR ('Organism active state must be 0 or 1', 11, 1) End Set @orgGenus = IsNull(@orgGenus, '') Set @orgSpecies = IsNull(@orgSpecies, '') Set @orgStrain = IsNull(@orgStrain, '') Set @autoDefineTaxonomy = IsNull(@autoDefineTaxonomy, 'Yes') -- Organism ID Set @id = IsNull(@id, 0) Set @newtIDList = ISNULL(@newtIDList, '') If LEN(@newtIDList) > 0 Begin CREATE TABLE #NEWTIDs ( NEWT_ID_Text varchar(24), NEWT_ID int NULL ) INSERT INTO #NEWTIDs (NEWT_ID_Text) SELECT Cast(Value as varchar(24)) FROM dbo.udfParseDelimitedList(@newtIDList, ',', 'AddUpdateOrganisms') WHERE IsNull(Value, '') <> '' -- Look for non-numeric values IF Exists (SELECT * FROM #NEWTIDs WHERE Try_Parse(NEWT_ID_Text as int) IS NULL) Begin Set @msg = 'Non-numeric NEWT ID values found in the NEWT_ID List: "' + Convert(varchar(32), @newtIDList) + '"; see http://dms2.pnl.gov/ontology/report/NEWT' RAISERROR (@msg, 11, 3) End -- Make sure all of the NEWT IDs are Valid UPDATE #NEWTIDs Set NEWT_ID = Try_Parse(NEWT_ID_Text as int) Declare @invalidNEWTIDs varchar(255) = null SELECT @invalidNEWTIDs = COALESCE(@invalidNEWTIDs + ', ', '') + #NEWTIDs.NEWT_ID_Text FROM #NEWTIDs LEFT OUTER JOIN S_V_CV_NEWT ON #NEWTIDs.NEWT_ID = S_V_CV_NEWT.identifier WHERE S_V_CV_NEWT.identifier IS NULL If LEN(ISNULL(@invalidNEWTIDs, '')) > 0 Begin Set @msg = 'Invalid NEWT ID(s) "' + @invalidNEWTIDs + '"; see http://dms2.pnl.gov/ontology/report/NEWT' RAISERROR (@msg, 11, 3) End End Else Begin -- Auto-define @newtIDList using @ncbiTaxonomyID though only if the NEWT table has the ID -- (there are numerous organisms that nave an NCBI Taxonomy ID but not a NEWT ID) -- If Exists (SELECT * FROM S_V_CV_NEWT WHERE Identifier = Cast(@ncbiTaxonomyID as varchar(24))) Begin Set @newtIDList = Cast(@ncbiTaxonomyID as varchar(24)) End End If IsNull(@ncbiTaxonomyID, 0) = 0 Set @ncbiTaxonomyID = null Else Begin If Not Exists (Select * From [S_V_NCBI_Taxonomy_Cached] Where Tax_ID = @ncbiTaxonomyID) Begin Set @msg = 'Invalid NCBI Taxonomy ID "' + Convert(varchar(24), @ncbiTaxonomyID) + '"; see http://dms2.pnl.gov/ncbi_taxonomy/report' RAISERROR (@msg, 11, 3) End End Declare @autoDefineTaxonomyFlag tinyint If @autoDefineTaxonomy Like 'Y%' Set @autoDefineTaxonomyFlag = 1 Else Set @autoDefineTaxonomyFlag = 0 If @autoDefineTaxonomyFlag = 1 And IsNull(@ncbiTaxonomyID, 0) > 0 Begin --------------------------------------------------- -- Try to auto-update the taxonomy information -- Existing values are preserved if matches are not found --------------------------------------------------- EXEC GetTaxonomyValueByTaxonomyID @ncbiTaxonomyID, @orgDomain=@orgDomain output, @orgKingdom=@orgKingdom output, @orgPhylum=@orgPhylum output, @orgClass=@orgClass output, @orgOrder=@orgOrder output, @orgFamily=@orgFamily output, @orgGenus=@orgGenus output, @orgSpecies=@orgSpecies output, @orgStrain=@orgStrain output, @previewResults = 0 End --------------------------------------------------- -- Is entry already in database? --------------------------------------------------- Declare @existingOrganismID Int = 0 -- cannot create an entry that already exists -- If @mode = 'add' Begin execute @existingOrganismID = GetOrganismID @orgName If @existingOrganismID <> 0 Begin Set @msg = 'Cannot add: Organism "' + @orgName + '" already in database ' RAISERROR (@msg, 11, 5) End End -- cannot update a non-existent entry -- Declare @existingOrgName varchar(128) If @mode = 'update' Begin -- SELECT @existingOrganismID = Organism_ID, @existingOrgName = OG_name FROM T_Organisms WHERE (Organism_ID = @id) -- SELECT @myError = @@error, @myRowCount = @@rowcount -- If @existingOrganismID = 0 Begin Set @msg = 'Cannot update: Organism "' + @orgName + '" is not in database ' RAISERROR (@msg, 11, 6) End -- If @existingOrgName <> @orgName Begin Set @msg = 'Cannot update: Organism name may not be changed from "' + @existingOrgName + '"' RAISERROR (@msg, 11, 7) End End --------------------------------------------------- -- If Genus, Species, and Strain are unknown, na, or none, -- then make sure all three are "na" --------------------------------------------------- Set @orgGenus = dbo.ValidateNAParameter(@orgGenus, 1) Set @orgSpecies = dbo.ValidateNAParameter(@orgSpecies, 1) Set @orgStrain = dbo.ValidateNAParameter(@orgStrain, 1) If @orgGenus IN ('unknown', 'na', 'none') AND @orgSpecies IN ('unknown', 'na', 'none') AND @orgStrain IN ('unknown', 'na', 'none') Begin Set @orgGenus = 'na' Set @orgSpecies = 'na' Set @orgStrain = 'na' End --------------------------------------------------- -- Check whether an organism already exists with the specified Genus, Species, and Strain -- Allow exceptions for metagenome organisms --------------------------------------------------- Set @duplicateTaxologyMsg = 'Another organism was found with Genus "' + @orgGenus + '", Species "' + @orgSpecies + '", and Strain "' + @orgStrain + '"; if unknown, use "na" for these values' If Not (@orgGenus = 'na' AND @orgSpecies = 'na' AND @orgStrain = 'na') Begin If @mode = 'add' Begin -- Make sure that an existing entry doesn't exist with the same values for Genus, Species, and Strain Set @matchCount = 0 SELECT @matchCount = COUNT(*) FROM T_Organisms WHERE IsNull(OG_Genus, '') = @orgGenus AND IsNull(OG_Species, '') = @orgSpecies AND IsNull(OG_Strain, '') = @orgStrain If @matchCount <> 0 AND Not @orgSpecies LIKE '%metagenome' Begin Set @msg = 'Cannot add: ' + @duplicateTaxologyMsg RAISERROR (@msg, 11, 8) End End If @mode = 'update' Begin -- Make sure that an existing entry doesn't exist with the same values for Genus, Species, and Strain (ignoring Organism_ID = @id) Set @matchCount = 0 SELECT @matchCount = COUNT(*) FROM T_Organisms WHERE IsNull(OG_Genus, '') = @orgGenus AND IsNull(OG_Species, '') = @orgSpecies AND IsNull(OG_Strain, '') = @orgStrain AND Organism_ID <> @id If @matchCount <> 0 AND Not @orgSpecies LIKE '%metagenome' Begin Set @msg = 'Cannot update: ' + @duplicateTaxologyMsg RAISERROR (@msg, 11, 9) End End End --------------------------------------------------- -- Validate the default protein collection --------------------------------------------------- If @orgDBName <> '' Begin -- Protein collections in S_V_Protein_Collection_Picker are those with state 1, 2, or 3 -- In contrast, S_V_Protein_Collections_by_Organism has all protein collections If Not Exists (SELECT * FROM S_V_Protein_Collection_Picker WHERE [Name] = @orgDBName) Begin If Exists (SELECT * FROM S_V_Protein_Collections_by_Organism WHERE Filename = @orgDBName AND Collection_State_ID = 4) Set @msg = 'Default protein collection is invalid because it is inactive: ' + @orgDBName Else Set @msg = 'Protein collection not found: ' + @orgDBName RAISERROR (@msg, 11, 9) End End --------------------------------------------------- -- action for add mode --------------------------------------------------- If @mode = 'add' Begin INSERT INTO T_Organisms ( OG_name, OG_organismDBName, OG_created, OG_description, OG_Short_Name, OG_Storage_Location, OG_Storage_URL, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, NEWT_ID_List, NCBI_Taxonomy_ID, Auto_Define_Taxonomy ) VALUES ( @orgName, @orgDBName, getdate(), @orgDescription, @orgShortName, @orgStorageLocation, @orgStorageURL, @orgDomain, @orgKingdom, @orgPhylum, @orgClass, @orgOrder, @orgFamily, @orgGenus, @orgSpecies, @orgStrain, @orgActive, @newtIDList, @ncbiTaxonomyID, @autoDefineTaxonomyFlag ) -- SELECT @myError = @@error, @myRowCount = @@rowcount -- If @myError <> 0 Begin Set @message = 'Insert operation failed' RAISERROR (@message, 11, 10) End -- Return ID of newly created entry -- Set @id = SCOPE_IDENTITY() -- If @callingUser is defined, then update Entered_By in T_Organisms_Change_History If Len(@callingUser) > 0 Exec AlterEnteredByUser 'T_Organisms_Change_History', 'Organism_ID', @id, @callingUser End -- add mode --------------------------------------------------- -- action for update mode --------------------------------------------------- -- If @mode = 'update' Begin UPDATE T_Organisms Set OG_name = @orgName, OG_organismDBName = @orgDBName, OG_description = @orgDescription, OG_Short_Name = @orgShortName, OG_Storage_Location = @orgStorageLocation, OG_Storage_URL = @orgStorageURL, OG_Domain = @orgDomain, OG_Kingdom = @orgKingdom, OG_Phylum = @orgPhylum, OG_Class = @orgClass, OG_Order = @orgOrder, OG_Family = @orgFamily, OG_Genus = @orgGenus, OG_Species = @orgSpecies, OG_Strain = @orgStrain, OG_Active = @orgActive, NEWT_ID_List = @newtIDList, NCBI_Taxonomy_ID = @ncbiTaxonomyID, Auto_Define_Taxonomy = @autoDefineTaxonomyFlag WHERE (Organism_ID = @id) -- SELECT @myError = @@error, @myRowCount = @@rowcount -- If @myError <> 0 Begin Set @message = 'Update operation failed: "' + @id + '"' RAISERROR (@message, 11, 11) End -- If @callingUser is defined, then update Entered_By in T_Organisms_Change_History If Len(@callingUser) > 0 Exec AlterEnteredByUser 'T_Organisms_Change_History', 'Organism_ID', @id, @callingUser End -- update mode End Try Begin Catch EXEC FormatErrorMessage @message output, @myError output -- rollback any open transactions IF (XACT_STATE()) <> 0 ROLLBACK TRANSACTION; End Catch Begin Try -- Update the cached organism info in MT_Main on ProteinSeqs -- This table is used by the Protein_Sequences database and we want to assure that it is up-to-date -- Note that the table is auto-updated once per hour by a Sql Server Agent job running on ProteinSeqs -- This hourly update captures any changes manually made to table T_Organisms Exec dbo.S_MT_Main_RefreshCachedOrganisms End Try Begin Catch Declare @logMessage varchar(256) EXEC FormatErrorMessage @message=@logMessage output, @myError=@myError output exec PostLogEntry 'Error', @logMessage, 'AddUpdateOrganisms' End Catch return @myError GO GRANT VIEW DEFINITION ON [dbo].[AddUpdateOrganisms] TO [DDL_Viewer] AS [dbo] GO GRANT EXECUTE ON [dbo].[AddUpdateOrganisms] TO [DMS_Org_Database_Admin] AS [dbo] GO GRANT EXECUTE ON [dbo].[AddUpdateOrganisms] TO [DMS2_SP_User] AS [dbo] GO GRANT VIEW DEFINITION ON [dbo].[AddUpdateOrganisms] TO [Limited_Table_Write] AS [dbo] GO
CREATE OR REPLACE FUNCTION "CONCATFLATVALUESBYID" (idfield in varchar2, fieldval in varchar2, fieldtoconcat in varchar2, collcode in varchar2) return varchar2 as type rc is ref cursor; l_str varchar2(4000); l_sep varchar2(30); l_val varchar2(4000); l_cur rc; begin If collcode is null then open l_cur for 'select distinct ' || fieldtoconcat || ' from flat where ' || idfield || '= :x' using fieldval; Else open l_cur for 'select distinct ' || fieldtoconcat || ' from flat where ' || idfield || '= :x and collection_cde = :y' using fieldval, collcode; End IF; loop fetch l_cur into l_val; exit when l_cur%notfound; l_str := l_str || l_sep || l_val; l_sep := ', '; end loop; close l_cur; return l_str; end;
DROP TYPE vizier_status; CREATE TYPE vizier_status AS ENUM ('UNKNOWN', 'HEALTHY', 'UNHEALTHY', 'DISCONNECTED', 'UPDATING', 'CONNECTED');
-- -- PostgreSQL database dump -- -- Dumped from database version 12.2 (Debian 12.2-2.pgdg100+1) -- Dumped by pg_dump version 12.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: users; Type: TABLE; Schema: public; Owner: cloud -- CREATE TABLE public.users ( id integer NOT NULL PRIMARY KEY, first_name character varying(255) NOT NULL, last_name character varying(255) NOT NULL ); ALTER TABLE public.users OWNER TO cloud; -- -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: cloud -- CREATE SEQUENCE public.users_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.users_id_seq OWNER TO cloud; -- -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: cloud -- ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id; -- -- Name: users id; Type: DEFAULT; Schema: public; Owner: cloud -- ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass); -- -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: cloud -- COPY public.users (id, first_name, last_name) FROM stdin; \. -- -- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: cloud -- SELECT pg_catalog.setval('public.users_id_seq', 1, false); -- -- PostgreSQL database dump complete --
<reponame>bbaobelief/falcon-plus create database uic_hl DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE uic_hl; SET NAMES utf8; -- ---------------------------- -- Table structure for rel_team_user -- ---------------------------- DROP TABLE IF EXISTS `rel_team_user`; CREATE TABLE `rel_team_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tid` int(10) unsigned NOT NULL, `uid` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `idx_rel_tid` (`tid`), KEY `idx_rel_uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for session -- ---------------------------- DROP TABLE IF EXISTS `session`; CREATE TABLE `session` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL, `sig` varchar(32) NOT NULL, `expired` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `idx_session_uid` (`uid`), KEY `idx_session_sig` (`sig`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for team -- ---------------------------- DROP TABLE IF EXISTS `team`; CREATE TABLE `team` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `resume` varchar(255) NOT NULL DEFAULT '', `creator` int(10) unsigned NOT NULL DEFAULT '0', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_team_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `passwd` varchar(64) NOT NULL DEFAULT '', `cnname` varchar(128) NOT NULL DEFAULT '', `email` varchar(255) NOT NULL DEFAULT '', `phone` varchar(16) NOT NULL DEFAULT '', `im` varchar(32) NOT NULL DEFAULT '', `qq` varchar(16) NOT NULL DEFAULT '', `role` tinyint(4) NOT NULL DEFAULT '0', `creator` int(10) unsigned NOT NULL DEFAULT '0', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `idx_user_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
drop if exists tx; create table tx (tx int); insert into tx values (7); create view BUFFER as select tx from tx where tx is not null; select * from BUFFER; drop view BUFFER; rename table tx as BUFFER; alter table BUFFER change tx BUFFER integer; create view CLOSE as select BUFFER from BUFFER where BUFFER is not null; select * from CLOSE; drop view CLOSE; rename table BUFFER as CLOSE; alter table CLOSE change BUFFER CLOSE integer; create view COMMENT as select CLOSE from CLOSE where CLOSE is not null; select * from COMMENT; drop view COMMENT; rename table CLOSE as COMMENT; alter table COMMENT change CLOSE COMMENT integer; create view CRITICAL as select COMMENT from COMMENT where COMMENT is not null; select * from CRITICAL; drop view CRITICAL; rename table COMMENT as CRITICAL; alter table CRITICAL change COMMENT CRITICAL integer; create view DBLINK as select CRITICAL from CRITICAL where CRITICAL is not null; select * from DBLINK; drop view DBLINK; rename table CRITICAL as DBLINK; alter table DBLINK change CRITICAL DBLINK integer; create view DBNAME as select DBLINK from DBLINK where DBLINK is not null; select * from DBNAME; drop view DBNAME; rename table DBLINK as DBNAME; alter table DBNAME change DBLINK DBNAME integer; create view DISK_SIZE as select DBNAME from DBNAME where DBNAME is not null; select * from DISK_SIZE; drop view DISK_SIZE; rename table DBNAME as DISK_SIZE; alter table DISK_SIZE change DBNAME DISK_SIZE integer; create view DONT_REUSE_OID as select DISK_SIZE from DISK_SIZE where DISK_SIZE is not null; select * from DONT_REUSE_OID; drop view DONT_REUSE_OID; rename table DISK_SIZE as DONT_REUSE_OID; alter table DONT_REUSE_OID change DISK_SIZE DONT_REUSE_OID integer; create view HOST as select DONT_REUSE_OID from DONT_REUSE_OID where DONT_REUSE_OID is not null; select * from HOST; drop view HOST; rename table DONT_REUSE_OID as HOST; alter table HOST change DONT_REUSE_OID HOST integer; create view INVISIBLE as select HOST from HOST where HOST is not null; select * from INVISIBLE; drop view INVISIBLE; rename table HOST as INVISIBLE; alter table INVISIBLE change HOST INVISIBLE integer; create view JOB as select INVISIBLE from INVISIBLE where INVISIBLE is not null; select * from JOB; drop view JOB; rename table INVISIBLE as JOB; alter table JOB change INVISIBLE JOB integer; create view NULLS as select JOB from JOB where JOB is not null; select * from NULLS; drop view NULLS; rename table JOB as NULLS; alter table NULLS change JOB NULLS integer; create view OPEN as select NULLS from NULLS where NULLS is not null; select * from OPEN; drop view OPEN; rename table NULLS as OPEN; alter table OPEN change NULLS OPEN integer; create view PATH as select OPEN from OPEN where OPEN is not null; select * from PATH; drop view PATH; rename table OPEN as PATH; alter table PATH change OPEN PATH integer; create view PERCENTILE_CONT as select PATH from PATH where PATH is not null; select * from PERCENTILE_CONT; drop view PERCENTILE_CONT; rename table PATH as PERCENTILE_CONT; alter table PERCENTILE_CONT change PATH PERCENTILE_CONT integer; create view PERCENTILE_DISC as select PERCENTILE_CONT from PERCENTILE_CONT where PERCENTILE_CONT is not null; select * from PERCENTILE_DISC; drop view PERCENTILE_DISC; rename table PERCENTILE_CONT as PERCENTILE_DISC; alter table PERCENTILE_DISC change PERCENTILE_CONT PERCENTILE_DISC integer; create view PORT as select PERCENTILE_DISC from PERCENTILE_DISC where PERCENTILE_DISC is not null; select * from PORT; drop view PORT; rename table PERCENTILE_DISC as PORT; alter table PORT change PERCENTILE_DISC PORT integer; create view PROPERTIES as select PORT from PORT where PORT is not null; select * from PROPERTIES; drop view PROPERTIES; rename table PORT as PROPERTIES; alter table PROPERTIES change PORT PROPERTIES integer; create view QUEUES as select PROPERTIES from PROPERTIES where PROPERTIES is not null; select * from QUEUES; drop view QUEUES; rename table PROPERTIES as QUEUES; alter table QUEUES change PROPERTIES QUEUES integer; create view RESPECT as select QUEUES from QUEUES where QUEUES is not null; select * from RESPECT; drop view RESPECT; rename table QUEUES as RESPECT; alter table RESPECT change QUEUES RESPECT integer; create view SECTIONS as select RESPECT from RESPECT where RESPECT is not null; select * from SECTIONS; drop view SECTIONS; rename table RESPECT as SECTIONS; alter table SECTIONS change RESPECT SECTIONS integer; create view SERVER as select SECTIONS from SECTIONS where SECTIONS is not null; select * from SERVER; drop view SERVER; rename table SECTIONS as SERVER; alter table SERVER change SECTIONS SERVER integer; create view THREADS as select SERVER from SERVER where SERVER is not null; select * from THREADS; drop view THREADS; rename table SERVER as THREADS; alter table THREADS change SERVER THREADS integer; create view TRAN as select THREADS from THREADS where THREADS is not null; select * from TRAN; drop view TRAN; rename table THREADS as TRAN; alter table TRAN change THREADS TRAN integer; create view VISIBLE as select TRAN from TRAN where TRAN is not null; select * from VISIBLE; drop view VISIBLE; rename table TRAN as VISIBLE; alter table VISIBLE change TRAN VISIBLE integer; create view WITHIN as select VISIBLE from VISIBLE where VISIBLE is not null; select * from WITHIN; drop view WITHIN; rename table VISIBLE as WITHIN; alter table WITHIN change VISIBLE WITHIN integer; create view BUFFER as select WITHIN from WITHIN where WITHIN is not null; select * from BUFFER; drop view BUFFER; drop table WITHIN;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2017 at 09:58 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `shop` -- -- -------------------------------------------------------- -- -- Table structure for table `answer` -- CREATE TABLE `answer` ( `post_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `description` text NOT NULL, `image` varchar(255) NOT NULL, `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `answer` -- INSERT INTO `answer` (`post_id`, `title`, `description`, `image`, `created_at`, `updated_at`) VALUES (26, '', '', '', 1497365647, 1497365647), (24, 'Determine your reasons for using stevia.', 'Manage your blood glucose levels. If you are a diabetic, stevia may be an attractive option because it is 100 to 300 times sweeter than sugar and does not raise your blood glucose level. Identify the sugary foods and drinks that you usually consume, and consider replacing the sugar with stevia.\r\nReduce caloric intake. Stevia contains no calories, making it a possible sugar alternative for high-calorie foods and drinks.\r\nLimit dental health issues. Particularly for children, stevia is useful for limiting sugar intake in fruit juices and baked goods that may cause tooth decay.', 'aid1387330-v4-728px-Use-Stevia-Step-5.jpg.webp', 1497365660, 1497365660), (23, ' Expanding your options', 'Change what you\'ve been cooking. If all you\'ve been doing is opening cans and ripping over packages of instant food, it\'s time to get daring and dip your fingers into food-from-scratch. Don\'t worry––there are plenty of recipes which explain exactly what to do in order to create real food that tastes great.', 'aid716823-v4-728px-Be-a-Great-Cook-Step-1-Version-2.jpg.webp', 1497365673, 1497365673), (23, 'Visit your local library', ' Go to the cookbook section and borrow some cookbooks that tickle your fancy. Try to stick with less complicated recipes to begin with though––you don\'t want to be put off before you\'ve even started.\r\nBasics cookbooks are very good books to begin with. These books tend to explain terminology and techniques, as well as providing samples of simple but essential recipes. You can learn a lot from even just one such book, and then graduate onto cookbooks that seem like favourites to you.\r\nWhen reading a cookbook, check out how recipes are written and look for the basic terms and methods. Also notice that particular types of food (for example, bread, soup, meat, cake, etc.) have specific requirements in common to many recipes within that type of food.', 'aid716823-v4-728px-Be-a-Great-Cook-Step-2-Version-2.jpg.webp', 1497365674, 1497365674), (23, 'Check out free recipes on the internet', ' There are recipes everywhere on the internet, including on wikiHow. You have so many choices that it is important to work out which sites you like and trust instead of spending all day collecting recipes, so be discerning in your selection. It also helps to find recipes that allow comments; that way, you can see what others say about the recipes and what changes or additions they suggest.\r\nGet to know the food bloggers. There are bound to be some you love because they cook the sort of food you like and share interesting anecdotes that make reading their blog worthwhile. You can usually subscribe to such blogs to get regular updates and when you\'re game, you can also share comments about your experiences of the recipes they\'re suggesting.', 'aid716823-v4-728px-Be-a-Great-Cook-Step-3-Version-2.jpg.webp', 1497365674, 1497365674), (22, 'bfsf ưefc', 'fsd wqwdfdfdfdfdfdfdf', '58d8fcbdc3f864513a711a68-contest.jpg', 1497365692, 1497365692), (22, 'dfsssssssss', 'dfssssssss', '2016-11-09_gaboxoi2-600x375.jpg', 1497365692, 1497365692), (27, '', '', '', 1497412365, 1497412365), (29, '', '', 'lam-sao-day-.jpg', 1497432301, 1497432301), (65, '', '', '', 1497591911, 1497591911); -- -------------------------------------------------------- -- -- Table structure for table `comment` -- CREATE TABLE `comment` ( `id` int(11) NOT NULL, `parent_id` int(11) DEFAULT NULL, `post_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `content` text, `status` int(11) DEFAULT NULL, `ip` varchar(50) DEFAULT NULL, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `migration` -- CREATE TABLE `migration` ( `version` varchar(180) NOT NULL, `apply_time` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1488976099), ('m130524_201442_init', 1488976127); -- -------------------------------------------------------- -- -- Table structure for table `order` -- CREATE TABLE `order` ( `id` int(11) NOT NULL, `code` int(11) DEFAULT NULL, `fullname` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `phone` int(11) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `total` int(11) DEFAULT NULL, `note` text, `status` tinyint(4) DEFAULT '0', `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `order` -- INSERT INTO `order` (`id`, `code`, `fullname`, `email`, `phone`, `address`, `total`, `note`, `status`, `created_at`, `updated_at`) VALUES (8, 750555419, 'Vinh', '<EMAIL>', 905951699, '<NAME>', NULL, NULL, 0, 1498533958, 1498533958), (9, 475650024, 'sac', '<EMAIL>', 545454564, 'scascs', 100000, '', 0, 1498536041, 1498536041); -- -------------------------------------------------------- -- -- Table structure for table `post` -- CREATE TABLE `post` ( `id` int(11) NOT NULL, `parent_id` int(11) DEFAULT NULL, `type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `content` text COLLATE utf8_unicode_ci, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `author` int(11) NOT NULL, `views` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `post` -- INSERT INTO `post` (`id`, `parent_id`, `type`, `title`, `slug`, `content`, `image`, `status`, `author`, `views`, `created_at`, `updated_at`) VALUES (75, NULL, 'blog', 'Tin về phong thủy', 'tin-v-phong-thy', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>T&ocirc;i kh&ocirc;ng tin</p>\r\n</body>\r\n</html>', NULL, 1, 1, 0, 1497865459, 1497865894), (76, NULL, 'blog', 'Tin về phong thủy trên xe', 'tin-v-phong-thy-tren-xe', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n\r\n</body>\r\n</html>', NULL, 1, 1, 0, 1497865836, 1497865836), (77, NULL, 'product', 'Nhẫn Tỳ hưu Myanmar', 'nhan-ty-huu-myanmar', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n\r\n</body>\r\n</html>', 'nhan-ty-huu-myanmar-1498102986.jpg', 1, 1, 0, 1498102986, 1498532491), (78, NULL, 'product', 'Phật bản mệnh đá mã não đỏ ', 'phat-ban-menh-da-ma-nao-do', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Phật bản mệnh đ&aacute; hắc m&atilde; nảo đỏ &ndash; tuổi Tuất, Hợi (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x d&agrave;y): 2.3 cm x 4 cm x 0.4 cm<br />+ Khối lượng: 15gr<br />+ &Yacute; nghĩa: <NAME> Di Đ&agrave; cư tr&uacute; tại thế giới T&acirc;y phương Cực Lạc, dựa v&agrave;o nguyện lực v&ocirc; lượng của ng&agrave;i để phổ độ ch&uacute;ng sinh. Những người sinh năm Tuất, Hợi sẽ nhận được sự ph&ugrave; hộ của ng&agrave;i, một đời b&igrave;nh an, gặp hung ho&aacute; c&aacute;t, được v&atilde;ng sinh v&agrave;o thế giới Cực Lạc.<br />+ C&aacute;ch sử dụng: Trang sức đeo cổ, ngọc bội.</p>\r\n</body>\r\n</html>', 'phat-ban-menh-da-ma-nao-do-1498103137.jpg', 1, 1, 0, 1498103137, 1498103137), (79, NULL, 'product', 'Tỳ hưu mã não đỏ', 'ty-huu-ma-nao-do', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<div>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu m&atilde; n&atilde;o đỏ (Quảng Đ&ocirc;ng)<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3cm x 1.6cm x 1cm<br />+ Khối lượng: 7g<br />+ &Yacute; nghĩa: chi&ecirc;u t&agrave;i vượng lộc, tịch t&agrave; h&oacute;a s&aacute;t.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền.</p>\r\n</div>\r\n</body>\r\n</html>', 'ty-huu-ma-nao-do-1498104990.jpg', 1, 1, 0, 1498103289, 1498104990), (80, NULL, 'product', 'Tỳ hưu Hoàng Long lớn', 'ty-huu-hoang-long-lon', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n\r\n</body>\r\n</html>', 'ty-huu-hoang-long-lon-1498105070.jpg', 1, 1, 0, 1498105070, 1498105070), (81, NULL, 'product', 'Tỳ hưu đá Đông Linh xanh', 'ty-huu-da-dong-linh-xanh', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n\r\n</body>\r\n</html>', 'ty-huu-da-dong-linh-xanh-1498105230.jpg', 1, 1, 0, 1498105230, 1498105230), (82, NULL, 'product', 'Tỳ hưu trên chuông hoàng long', 'ty-huu-tren-chuong-hoang-long', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<h1 class=\"title\">&nbsp;</h1>\r\n<div>&nbsp;</div>\r\n<div>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu đ&aacute; ngọc Ho&agrave;ng Long v&agrave;ng (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3.5cm x 2.5cm x 1cm<br />+ Khối lượng: 13g<br />+ &Yacute; nghĩa: chi&ecirc;u t&agrave;i lộc,vượng lộc, tịch t&agrave; h&oacute;a s&aacute;t, hợp mệnh Thổ, Kim, Mộc.<br />+ C&aacute;ch sử dụng: mặt d&acirc;y chuyền, ngọc bội, m&oacute;c kh&oacute;a xe&hellip;</p>\r\n</div>\r\n<form class=\"cart\" enctype=\"multipart/form-data\" method=\"post\">\r\n<div class=\"quantity buttons_added\"><input class=\"minus\" type=\"button\" value=\"-\" /><input class=\"input-text qty text\" title=\"SL\" min=\"1\" name=\"quantity\" size=\"4\" step=\"1\" type=\"number\" value=\"1\" /><input class=\"plus\" type=\"button\" value=\"+\" /></div>\r\n<button class=\"single_add_to_cart_button button alt\" type=\"submit\">Đặt Mua</button></form>\r\n</body>\r\n</html>', 'ty-huu-tren-chuong-hoang-long-1498105330.jpg', 1, 1, 0, 1498105330, 1498105330), (83, NULL, 'product', 'Tỳ hưu đông linh đứng', 'ty-huu-dong-linh-dung', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu đ&aacute; ngọc Đ&ocirc;ng Linh ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3.2cm x 1.1cm x 2.9cm<br />+ Khối lượng: 14g<br />+ &Yacute; nghĩa: chi&ecirc;u t&agrave;i ph&aacute;t lộc, may mắn trong c&ocirc;ng danh, thăng tiến trong c&ocirc;ng việc, tốt cho sức khỏe.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền, ngọc bội, m&oacute;c</p>\r\n</body>\r\n</html>', 'ty-huu-dong-linh-dung-1498105425.jpg', 1, 1, 0, 1498105425, 1498532178), (84, NULL, 'product', 'Cặp Tỳ Hưu đá Hoàng Long ngậm tiền nhỏ', 'cap-ty-huu-da-hoang-long-ngam-tien-nho', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Cặp Tỳ Hưu đ&aacute; Ho&agrave;ng Long ngậm tiền nhỏ ((tại Việt Nam)).<br />+ K&iacute;ch thước (cao x d&agrave;i x rộng): 2,3cm x 4,5cm x 1cm<br />+ Khối lượng: 23gr<br />+ &Yacute; nghĩa: thu h&uacute;t, chi&ecirc;u t&agrave;i lộc, mang may mắn cho người đeo, hợp mệnh Kim v&agrave; Mộc&hellip;<br />+ C&aacute;ch sử dụng: trang sức. mặt d&acirc;y chuyền, m&oacute;c kh&oacute;a, mang theo người&hellip;</p>\r\n</body>\r\n</html>', 'cap-ty-huu-da-hoang-long-ngam-tien-nho-1498105512.jpg', 1, 1, 0, 1498105512, 1498105512), (85, NULL, 'product', 'Tỳ Hưu đeo cổ đá Hoàng Long đứng nhỏ', 'ty-huu-deo-co-da-hoang-long-dung-nho', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ Hưu đeo cổ đ&aacute; Ho&agrave;ng Long đứng nhỏ ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 2,8cm x 1,1cm x 1,8cm<br />+ Khối lượng: 16gr<br />+ &Yacute; nghĩa: thu h&uacute;t, chi&ecirc;u t&agrave;i lộc, mang may mắn cho người đeo, trừ t&agrave;, h&oacute;a s&aacute;t, hợp mệnh Kim v&agrave; Mộc&hellip;<br />+ C&aacute;ch sử dụng: trang sức, mặt d&acirc;y chuyền, m&oacute;c kh&oacute;a, bọc trong v&iacute;&hellip;.</p>\r\n</body>\r\n</html>', 'ty-huu-deo-co-da-hoang-long-dung-nho-1498105593.jpg', 1, 1, 0, 1498105593, 1498105593), (86, NULL, 'product', 'Tỳ Hưu đứng đá Miến Điện', 'ty-huu-dung-da-mien-dien', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ Hưu đứng đ&aacute; Miến Điện (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3,2cm x 2,3cm x 1,4cm<br />+ Khối lượng: 20gr<br />+ &Yacute; nghĩa: thu h&uacute;t, chi&ecirc;u t&agrave;i lộc, mang may mắn cho người đeo, trừ t&agrave;, h&oacute;a s&aacute;t,..<br />+ C&aacute;ch sử dụng: trang sức, mặt d&acirc;y chuyền, m&oacute;c kh&oacute;a, bọc trong v&iacute;&hellip;.</p>\r\n</body>\r\n</html>', 'ty-huu-dung-da-mien-dien-1498105681.jpg', 1, 1, 0, 1498105681, 1498531675), (87, NULL, 'product', 'Móc khóa Tỳ Hưu đứng đá Miến Điện', 'moc-khoa-ty-huu-dung-da-mien-dien', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện:M&oacute;c kh&oacute;a Tỳ Hưu đứng đ&aacute; Miến Điện (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3,2cm x 2,3cm x 1,4cm<br />+ Khối lượng: 25gr<br />+ &Yacute; nghĩa: thu h&uacute;t, chi&ecirc;u t&agrave;i lộc, mang may mắn cho người đeo, trừ t&agrave;, h&oacute;a s&aacute;t,..<br />+ C&aacute;ch sử dụng: trang sức, mặt d&acirc;y chuyền, m&oacute;c kh&oacute;a, bọc trong v&iacute;&hellip;.</p>\r\n</body>\r\n</html>', 'moc-khoa-ty-huu-dung-da-mien-dien-1498105798.jpg', 1, 1, 0, 1498105798, 1498105798), (88, NULL, 'product', 'Tỳ hưu đá kim sa', 'ty-huu-da-kim-sa', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu đ&aacute; kim sa ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3cm x 1cm x 0.5cm<br />+ Khối lượng: 7g<br />+ &Yacute; nghĩa: chi&ecirc;u t&agrave;i vượng lộc, tịch t&agrave; h&oacute;a s&aacute;t.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền, m&oacute;c kh&oacute;a xe, ngọc bội&hellip;</p>\r\n</body>\r\n</html>', 'ty-huu-da-kim-sa-1498105923.jpg', 1, 1, 0, 1498105923, 1498105923), (89, NULL, 'product', '3 Tỳ hưu Hoàng Long', '3-ty-huu-hoang-long', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu đ&aacute; ngọc Ho&agrave;ng Long v&agrave;ng (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 4.2cm x 2.5cm x 1cm<br />+ Khối lượng: 19g<br />+ &Yacute; nghĩa: h&uacute;t t&agrave;i lộc, tăng vận may.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền, ngọc bội, d&acirc;y treo.</p>\r\n</body>\r\n</html>', '3-ty-huu-hoang-long-1498106002.jpg', 1, 1, 0, 1498106002, 1498531710), (90, NULL, 'product', 'Chuỗi Tỳ hưu Hoàng Long', 'chuoi-ty-huu-hoang-long', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu đ&aacute; ngọc Ho&agrave;ng Long T&acirc;n Cương.((tại Việt Nam))<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): bi lớn, th&iacute;ch hợp tay nam, 13 hạt.<br />+ Khối lượng: 54g<br />+ &Yacute; nghĩa: chi&ecirc;u t&agrave;i ph&aacute;t lộc, tịch t&agrave;, thuận lợi c&ocirc;ng việc, may mắn sức khỏe.<br />+ C&aacute;ch sử dụng: trang sức v&ograve;ng đeo tay.</p>\r\n</body>\r\n</html>', 'chuoi-ty-huu-hoang-long-1498106089.jpg', 1, 1, 0, 1498106089, 1498532401), (91, NULL, 'product', 'Vòng Tỳ Hưu mã não đỏ lớn12 li', 'vong-ty-huu-ma-nao-do-lon12-li', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi Tỳ Hưu đ&aacute; m&atilde; n&atilde;o đỏ lớn 12 li ((tại Việt Nam))<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): bi lớn, 13 hạt, th&iacute;ch hợp tay nam.<br />+ Khối lượng: 46g<br />+ &Yacute; nghĩa: Chuỗi Tỳ Hưu trang sức phong thủy mang may mắn về t&agrave;i lộc, hợp mệnh Hỏa, Thổ, Thủy.<br />+ C&aacute;ch sử dụng: v&ograve;ng chuỗi đeo tay.</p>\r\n</body>\r\n</html>', 'vong-ty-huu-ma-nao-do-lon12-li-1498106198.jpg', 1, 1, 0, 1498106198, 1498106198), (92, NULL, 'product', 'Chuỗi tỳ hưu và đồng tiền phỉ thúy', 'chuoi-ty-huu-va-dong-tien-phi-thuy', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi hạt ngọc Phỉ Th&uacute;y treo 1 tỳ hưu v&agrave; 1 chiếc l&aacute; (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): bi tr&ograve;n, 19 hạt.<br />+ Khối lượng: 31.6g<br />+ &Yacute; nghĩa: trang sức phong thủy bổ trợ sức khỏe, mang b&igrave;nh an che chở v&agrave; chi&ecirc;u t&agrave;i lộc. Hợp mệnh Kim, Mộc, Hỏa<br />+ C&aacute;ch sử dụng: v&ograve;ng chuỗi đeo tay</p>\r\n</body>\r\n</html>', 'chuoi-ty-huu-va-dong-tien-phi-thuy-1498106377.jpg', 1, 1, 0, 1498106377, 1498106377), (93, NULL, 'product', 'Chuỗi Tỳ hưu mắt mèo', 'chuoi-ty-huu-mat-meo', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi đ&aacute; mắt m&egrave;o Tỳ hưu trung ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): bi nhỏ, 18 hạt.<br />+ Khối lượng: 21g<br />+ &Yacute; nghĩa: mang lại may mắn về t&agrave;i lộc, hợp mệnh Thổ, Kim.<br />+ C&aacute;ch sử dụng: trang sức v&ograve;ng đeo tay.</p>\r\n</body>\r\n</html>', 'chuoi-ty-huu-mat-meo-1498106488.jpg', 1, 1, 0, 1498106488, 1498106488), (94, NULL, 'product', 'Chuỗi tỳ hưu hắc ngà bi trung', 'chuoi-ty-huu-hac-nga-bi-trung', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: chuỗi tỳ hưu thạch anh đen &ndash; đ&aacute; hắc ng&agrave; (Nam MỸ).<br />+ K&iacute;ch thước: đường k&iacute;nh bi 0.9cm.<br />+ Khối lượng: 26g<br />+ &Yacute; nghĩa: c&oacute; t&aacute;c dụng chi&ecirc;u t&agrave;i, trừ t&agrave;, may mắn, mang đến điềm l&agrave;nh v&agrave; b&igrave;nh an, tốt cho sức khỏe&hellip;<br />+ C&aacute;ch sử dụng: Trang sức v&ograve;ng đeo tay.</p>\r\n</body>\r\n</html>', 'chuoi-ty-huu-hac-nga-bi-trung-1498106654.jpg', 1, 1, 0, 1498106654, 1498106654), (95, NULL, 'product', 'Mặt nhẫn Tỳ hưu thạch anh', 'mat-nhan-ty-huu-thach-anh', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Mặt nhẫn Tỳ hưu đ&aacute; thạch anh v&agrave;ng (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 1.5cm x 0.8cm x 0.8cm<br />+ Khối lượng: 3g<br />+ &Yacute; nghĩa: đem lại may mắn về t&agrave;i lộc, tăng nh&acirc;n duy&ecirc;n, tr&aacute;nh điều thị phi, hợp mệnh Kim, Thổ, Mộc.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền, mặt nhẫn.</p>\r\n</body>\r\n</html>', 'mat-nhan-ty-huu-thach-anh-1498106730.jpg', 1, 1, 0, 1498106730, 1498106730), (96, NULL, 'product', 'Mặt thạch anh tóc vàng', 'mat-thach-anh-toc-vang', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Mặt thạch anh t&oacute;c v&agrave;ng (Nam Mỹ, Brazil)<br />+ K&iacute;ch thước (d&agrave;i x rộng): 2.5cm x 1.5cm<br />+ Khối lượng: 1.8gr<br />+ &Yacute; nghĩa: Thạch anh gi&uacute;p tăng cường sức khỏe, giải trừ bệnh tật, lưu th&ocirc;ng kh&iacute; huyết, giảm căng thẳng mệt mỏi.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền, bỏ b&oacute;p v&iacute;.</p>\r\n</body>\r\n</html>', 'mat-thach-anh-toc-vang-1498107035.jpg', 1, 1, 0, 1498107035, 1498107035), (97, NULL, 'product', 'Tỳ hưu thạch anh vàng', 'ty-huu-thach-anh-vang', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Tỳ hưu thạch anh v&agrave;ng chạm vảy rồng tr&ecirc;n lưng (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 3cm x 1.8cm x 1.5cm<br />+ Khối lượng: 18g<br />+ &Yacute; nghĩa: Tỳ Hưu c&oacute; t&aacute;c dụng chi&ecirc;u t&agrave;i, ph&aacute;t lộc , bổ trợ c&ocirc;ng danh, tr&aacute;nh tiểu nh&acirc;n thị phi<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền.</p>\r\n</body>\r\n</html>', 'ty-huu-thach-anh-vang-1498107202.jpg', 1, 1, 0, 1498107202, 1498107202), (98, NULL, 'product', 'Mặt thạch anh tóc vàng', 'mat-thach-anh-toc-vang', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Mặt thạch anh t&oacute;c v&agrave;ng (Nam Mỹ, Brazil)<br />+ K&iacute;ch thước (d&agrave;i x rộng): 3.2cm x 2.9cm<br />+ Khối lượng: 2.6gr<br />+ &Yacute; nghĩa: Thạch anh gi&uacute;p tăng cường sức khỏe, giải trừ bệnh tật, lưu th&ocirc;ng kh&iacute; huyết, giảm căng thẳng mệt mỏi.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền, bỏ b&oacute;p v&iacute;.</p>\r\n</body>\r\n</html>', 'mat-thach-anh-toc-vang-1498107724.jpg', 1, 1, 0, 1498107724, 1498107724), (99, NULL, 'product', 'Chuỗi thạch anh vàng trong A Uruguay (8li) 23hạt ', 'chuoi-thach-anh-vang-trong-a-uruguay-8li-23hat', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi thạch anh v&agrave;ng trong Uruguay (tại Việt Nam).<br />+ K&iacute;ch thước : 23 bi tr&ograve;n, (8li)<br />+ Khối lượng: 17.1 gr<br />+ &Yacute; nghĩa: trang sức phong thủy bổ trợ sức khỏe, loại đ&aacute; chi&ecirc;u t&agrave;i, gi&uacute;p đầu &oacute;c tỉnh t&aacute;o, gi&uacute;p ngủ ngon.<br />+ C&aacute;ch sử dụng: trang sức đeo tay</p>\r\n</body>\r\n</html>', 'chuoi-thach-anh-vang-trong-a-uruguay-8li-23hat-1498107859.jpg', 1, 1, 0, 1498107859, 1498107859), (100, NULL, 'product', 'Chuỗi thạch anh vàng trong A Uruguay (12li) 17 hạt ', 'chuoi-thach-anh-vang-trong-a-uruguay-12li-17-hat', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi thạch anh v&agrave;ng trong Uruguay (tại Việt Nam).<br />+ K&iacute;ch thước : 17 bi tr&ograve;n, (12li)<br />+ Khối lượng: 44.3 gr<br />+ &Yacute; nghĩa: trang sức phong thủy bổ trợ sức khỏe, loại đ&aacute; chi&ecirc;u t&agrave;i, gi&uacute;p đầu &oacute;c tỉnh t&aacute;o, gi&uacute;p ngủ ngon.<br />+ C&aacute;ch sử dụng: trang sức đeo tay</p>\r\n</body>\r\n</html>', 'chuoi-thach-anh-vang-trong-a-uruguay-12li-17-hat-1498109525.jpg', 1, 1, 0, 1498109525, 1498109525), (101, NULL, 'product', 'Chuỗi thạch anh tóc vàng', 'chuoi-thach-anh-toc-vang', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi thạch anh t&oacute;c v&agrave;ng đậm (tại Việt Nam).<br />+ K&iacute;ch thước: bi vừa<br />+ Khối lượng: 22.6g<br />+ &Yacute; nghĩa: bổ trợ sức khỏe, tăng cường tr&iacute; nhớ, lưu th&ocirc;ng kh&iacute; huyết, loại đ&aacute; chi&ecirc;u t&agrave;i, thu h&uacute;t kh&iacute; tốt&hellip;<br />+ C&aacute;ch sử dụng: trang sức v&ograve;ng đeo tay.</p>\r\n</body>\r\n</html>', 'chuoi-thach-anh-toc-vang-1498109663.jpg', 1, 1, 0, 1498109663, 1498109663), (102, NULL, 'product', 'Chuỗi đá thạch anh tóc vàng A+ Uruguay 8li 21bi ', 'chuoi-da-thach-anh-toc-vang-a-uruguay-8li-21bi', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi đ&aacute; thạch anh t&oacute;c v&agrave;ng A+ Uruguay. (tại Việt Nam).<br />+ K&iacute;ch thước: Chuỗi bi tr&ograve;n 8li, 21bi.<br />+ Khối lượng: 26.2gr<br />+ &Yacute; nghĩa: Thạch anh t&oacute;c v&agrave;ng c&oacute; c&ocirc;ng dụng bổ trợ sức khỏe, tăng cường tr&iacute; nhớ, lưu th&ocirc;ng kh&iacute; huyết. Loại đ&aacute; chi&ecirc;u t&agrave;i, thu h&uacute;t c&aacute;t kh&iacute; tốt, hợp với người mệnh Kim, Thổ.<br />+ C&aacute;ch sử dụng: trang sức v&ograve;ng đeo tay.</p>\r\n</body>\r\n</html>', 'chuoi-da-thach-anh-toc-vang-a-uruguay-8li-21bi-1498109900.jpg', 1, 1, 0, 1498109900, 1498109900), (103, NULL, 'product', 'Vòng tay Tỳ Hưu mã não đỏ nhỏ', 'vong-tay-ty-huu-ma-nao-do-nho', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Chuỗi Tỳ Hưu đ&aacute; m&atilde; n&atilde;o đỏ cỡ nhỏ 8 li ((tại Việt Nam))<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): bi nhỏ, 18 bi.<br />+ Khối lượng: 17g<br />+ &Yacute; nghĩa: trang sức phong thủy mang may mắn về t&agrave;i lộc, hợp mệnh Hỏa, Thổ, Thủy.<br />+ C&aacute;ch sử dụng: v&ograve;ng chuỗi đeo tay.</p>\r\n</body>\r\n</html>', 'vong-tay-ty-huu-ma-nao-do-nho-1498112628.jpg', 1, 1, 0, 1498112628, 1498112628), (104, NULL, 'product', 'Phật Quan Âm đá hắc ngà nhỏ ', 'phat-quan-am-da-hac-nga-nho', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Phật quan &acirc;m đ&aacute; hắc ng&agrave; (thạch anh đen) ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng): 3cm x 1.8cm<br />+ Khối lượng: 30g<br />+ &Yacute; nghĩa: Phật quan &acirc;m biểu tượng của b&igrave;nh an, chế h&oacute;a hung kh&iacute;, mang lại điềm l&agrave;nh, che chở độ hộ độ mạng cho người sử dụng.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền&hellip;</p>\r\n</body>\r\n</html>', 'phat-quan-am-da-hac-nga-nho-1498112780.jpg', 1, 1, 0, 1498112780, 1498112780), (105, NULL, 'product', 'Phật bản mệnh đá mắt mèo nhỏ-Phổ Hiền Bồ Tát (Thìn+Tỵ) ', 'phat-ban-menh-da-mat-meo-nho-pho-hien-bo-tat-thinty', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Phật bản mệnh đ&aacute; mắt m&egrave;o &ndash; tuổi Th&igrave;n, Tỵ (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x d&agrave;y): 2.7 cm x 1.8cm x 0.5cm<br />+ Khối lượng: 6gr<br />+ &Yacute; nghĩa: Phật <NAME> t&aacute;t bổ trợ cho người tuổi Th&igrave;n, Tỵ l&agrave; thần bảo vệ cho những người sinh năm Th&igrave;n, Tỵ. <NAME> t&aacute;t ph&ugrave; hộ cho họ k&eacute;o d&agrave;i tuổi thọ, cả đời y&ecirc;n ổn v&agrave; tr&aacute;nh xa c&aacute;c loại bệnh tật, tai hoạ. Những người sinh năm tăng th&ecirc;m tr&iacute; nhớ, ph&ugrave; hộ cho họ c&oacute; của cải dồi d&agrave;o, gia đ&igrave;nh y&ecirc;n vui ho&agrave; hợp.<br />+ C&aacute;ch sử dụng: Trang sức đeo cổ, ngọc bội.</p>\r\n</body>\r\n</html>', 'phat-ban-menh-da-mat-meo-nho-pho-hien-bo-tat-thinty-1498113047.jpg', 1, 1, 0, 1498113047, 1498113047), (106, NULL, 'product', 'Phật Di Lạc thạch anh hồng lớn', 'phat-di-lac-thach-anh-hong-lon', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Phật Di Lạc thạch anh hồng ((tại Việt Nam))<br />+ K&iacute;ch thước (d&agrave;i x rộng) : 3cm x 2.5cm<br />+ Khối lượng: 14g<br />+ &Yacute; nghĩa: Phật Di Lạc biểu tượng của sự vui vẻ, an lạc như &yacute;, ban phước nạp t&agrave;i.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền,..</p>\r\n</body>\r\n</html>', 'phat-di-lac-thach-anh-hong-lon-1498113179.jpg', 1, 1, 0, 1498113179, 1498113179), (107, NULL, 'product', 'Phật Quan Âm đá hắc ngà lớn', 'phat-quan-am-da-hac-nga-lon', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Phật quan &acirc;m đ&aacute; hắc ng&agrave; (thạch anh đen) ((tại Việt Nam)).<br />+ K&iacute;ch thước (d&agrave;i x rộng): 3.8cm x 2.2cm<br />+ Khối lượng: 16g<br />+ &Yacute; nghĩa: Phật quan &acirc;m biểu tượng của b&igrave;nh an, chế h&oacute;a hung kh&iacute;, mang lại điềm l&agrave;nh, che chở độ hộ độ mạng cho người sử dụng.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền&hellip;</p>\r\n</body>\r\n</html>', 'phat-quan-am-da-hac-nga-lon-1498113263.jpg', 1, 1, 0, 1498113263, 1498113263), (108, NULL, 'product', 'Mặt thạch anh ưu linh xanh', 'mat-thach-anh-uu-linh-xanh', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Mặt thạch anh ưu linh xanh (Nam Mỹ, Brazil)<br />+ K&iacute;ch thước (d&agrave;i x rộng): 2.5cm x 1.5cm<br />+ Khối lượng: 4 gr<br />+ &Yacute; nghĩa: Thạch anh ưu linh xanh gi&uacute;p tăng cường sức khỏe, giải trừ bệnh tật, lưu th&ocirc;ng kh&iacute; huyết, giảm căng thẳng mệt mỏi.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền, bỏ b&oacute;p v&iacute;.</p>\r\n</body>\r\n</html>', 'mat-thach-anh-uu-linh-xanh-1498113386.jpg', 1, 1, 0, 1498113386, 1498113386), (109, NULL, 'product', 'Ve ngọc xanh nhỏ', 've-ngoc-xanh-nho', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Ve ngọc Myanmar v&acirc;n xanh l&yacute; (tại Việt Nam).<br />+ K&iacute;ch thước (d&agrave;i x rộng x cao): 2.8cm x 1.3cm x 0.3cm<br />+ Khối lượng: 4gr<br />+ &Yacute; nghĩa: biểu tượng của cuộc sống tốt đẹp d&agrave;i l&acirc;u, h&igrave;nh tượng ve sầu lột x&aacute;c mang lại sự trẻ trung, miếng ngọc hộ mệnh tr&aacute;nh kẻ tiểu nh&acirc;n, tốt cho những ai c&ograve;n đi học, củng cố tinh thần, gia tăng &yacute; ch&iacute;, đem lại kết quả cao trong c&aacute;c kỳ thi.<br />+ C&aacute;ch sử dụng: Trang sức mặt d&acirc;y chuyền đeo cổ, ngọc bội, m&oacute;c kh&oacute;a&hellip;</p>\r\n</body>\r\n</html>', 've-ngoc-xanh-nho-1498113528.jpg', 1, 1, 0, 1498113528, 1498797681), (110, NULL, 'product', 'Ngọc bội Quan Âm mã não trắng', 'ngoc-boi-quan-am-ma-nao-trang', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>+ Chất liệu v&agrave; ho&agrave;n thiện: Ngọc bội Phật Quan &Acirc;m đ&aacute; m&atilde; n&atilde;o trắng ((tại Việt Nam)).<br />+ K&iacute;ch thước (đường k&iacute;nh): 35cm<br />+ Khối lượng: 35g<br />+ &Yacute; nghĩa: biểu tượng của b&igrave;nh an, chế h&oacute;a hung kh&iacute;, mang lại điềm l&agrave;nh cho người sử dụng.<br />+ C&aacute;ch sử dụng: trang sức mặt d&acirc;y chuyền, ngọc bội.</p>\r\n</body>\r\n</html>', 'ngoc-boi-quan-am-ma-nao-trang-1498114918.jpg', 1, 1, 0, 1498114918, 1498792575), (111, NULL, 'slide', 'ACFasS', 'acfass', NULL, NULL, 1, 1, 0, 1498442913, 1498442913), (112, NULL, 'slide', 'DSS', 'dss', NULL, NULL, 1, 1, 0, 1498442941, 1498442941), (113, NULL, 'page', 'Giới thiệu', 'gioi-thieu', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p><strong>I. QU&Aacute; TR&Igrave;NH H&Igrave;NH TH&Agrave;NH V&Agrave; PH&Aacute;T TRIỂN</strong></p>\r\n<p>Trong những năm qua, x&atilde; hội ph&aacute;t triển, kinh tế tăng trưởng đồng thời l&agrave; chất lượng cuộc sống của người d&acirc;n ng&agrave;y c&agrave;ng c&agrave;ng được n&acirc;ng cao nhiều trung t&acirc;m thương mại, nh&agrave; cao tầng, biệt thự được mọc ra k&egrave;m theo đấy l&agrave; nhu cầu mua sắm c&aacute;c mặt h&agrave;ng phục vụ nhu cầu cuộc sống h&agrave;ng ng&agrave;y như hoa v&agrave; qu&agrave; tặng.</p>\r\n<p>GiftShop khai trương si&ecirc;u thị số 442 Đội Cấn, Cống Vị, Ba Đ&igrave;nh, H&agrave; Nội, ch&iacute;nh thức tham gia v&agrave;o lĩnh vực kinh doanh b&aacute;n lẻ trực tuyến, tạo ra một phong c&aacute;ch mua sắm ho&agrave;n to&agrave;n mới với người d&acirc;n thủ đ&ocirc;, th&ocirc;ng qua cung cấp c&aacute;c sản phẩm v&agrave; dịch vụ tới người ti&ecirc;u d&ugrave;ng.</p>\r\n<p><strong>II. MỤC TI&Ecirc;U CHIẾN LƯỢC</strong></p>\r\n<p>1. Tối đa ho&aacute; gi&aacute; trị đầu tư của c&aacute;c cổ đ&ocirc;ng; giữ vững tốc độ tăng trưởng lợi nhuận v&agrave; t&igrave;nh h&igrave;nh t&agrave;i ch&iacute;nh l&agrave;nh mạnh;</p>\r\n<p>2. Kh&ocirc;ng ngừng n&acirc;ng cao động lực l&agrave;m việc v&agrave; năng lực c&aacute;n bộ; GiftShop phải lu&ocirc;n dẫn đầu ng&agrave;nh b&aacute;n lẻ trong việc s&aacute;ng tạo, ph&aacute;t triển ch&iacute;nh s&aacute;ch đ&atilde;i ngộ v&agrave; cơ hội thăng tiến nghề nghiệp cho c&aacute;n bộ của m&igrave;nh;</p>\r\n<p>3. Duy tr&igrave; sự h&agrave;i l&ograve;ng, trung th&agrave;nh v&agrave; gắn b&oacute; của kh&aacute;ch h&agrave;ng với GiftShop; x&acirc;y dựng GiftShop th&agrave;nh một trong những c&ocirc;ng ty h&agrave;ng đầu Việt Nam c&oacute; chất lượng dịch vụ tốt nhất do kh&aacute;ch h&agrave;ng lựa chọn.</p>\r\n<p>4. Ph&aacute;t triển GiftShop th&agrave;nh một trong những c&ocirc;ng ty h&agrave;ng đầu Việt Nam về: quản l&yacute; tốt nhất, m&ocirc;i trường l&agrave;m việc tốt nhất, văn ho&aacute; doanh nghiệp ch&uacute; trọng kh&aacute;ch h&agrave;ng, th&uacute;c đẩy hợp t&aacute;c v&agrave; s&aacute;ng tạo, linh hoạt nhất khi m&ocirc;i trường kinh doanh thay đổi.</p>\r\n<p><strong>III. THẾ MẠNH V&Agrave; ĐỊNH HƯỚNG CỦA C&Ocirc;NG TY</strong></p>\r\n<p>Với kim chỉ nam l&agrave; &ldquo;<em>Kh&ocirc;ng ngừng ph&aacute;t triển v&igrave; kh&aacute;ch h&agrave;ng</em>&rdquo;, GiftShop đ&atilde; quy tụ được Ban l&atilde;nh đạo c&oacute; bề d&agrave;y kinh nghiệm trong lĩnh vực b&aacute;n lẻ, kh&ocirc;ng chỉ mạnh về kinh doanh m&agrave; c&ograve;n mạnh về c&ocirc;ng nghệ, c&oacute; nhiều tiềm năng ph&aacute;t triển, kết hợp với đội ngũ nh&acirc;n vi&ecirc;n trẻ, năng động v&agrave; chuy&ecirc;n nghiệp, tạo n&ecirc;n thế mạnh n&ograve;ng cốt của c&ocirc;ng ty để thực hiện tốt c&aacute;c mục ti&ecirc;u đề ra.</p>\r\n<p>Hơn nữa, tr&ecirc;n cơ sở nguồn lực của c&ocirc;ng ty v&agrave; nhu cầu của x&atilde; hội, GiftShop<strong>&nbsp;</strong>lựa chọn ph&aacute;t triển kinh doanh hoa v&agrave; qu&agrave; tặng phục vụ nhu cầu thiết yếu của người d&acirc;n với c&aacute;c sản phẩm đa dạng, phong ph&uacute;, mang lại gi&aacute; trị gia tăng cho người ti&ecirc;u d&ugrave;ng th&ocirc;ng qua c&aacute;c dịch vụ sau b&aacute;n h&agrave;ng.</p>\r\n<p>Qua qu&aacute; tr&igrave;nh ph&aacute;t triển, b&ecirc;n cạnh việc thiết lập được một hệ thống đối t&aacute;c nước trong nước v&agrave; ngo&agrave;i đến từ c&aacute;c doanh nghiệp lớn, c&oacute; thế mạnh trong lĩnh vực ban..., c&ocirc;ng ty sẽ đầu tư v&agrave;o c&aacute;c ng&agrave;nh nghề mới như bất động sản, khai th&aacute;c kho&aacute;ng, đầu tư t&agrave;i ch&iacute;nh... trong thời gian tới.</p>\r\n</body>\r\n</html>', NULL, 1, 1, 0, 1498447992, 1498447992), (114, NULL, 'page', 'Liên hệ', 'lien-he', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p><strong>I. QU&Aacute; TR&Igrave;NH H&Igrave;NH TH&Agrave;NH V&Agrave; PH&Aacute;T TRIỂN</strong></p>\r\n<p>Trong những năm qua, x&atilde; hội ph&aacute;t triển, kinh tế tăng trưởng đồng thời l&agrave; chất lượng cuộc sống của người d&acirc;n ng&agrave;y c&agrave;ng c&agrave;ng được n&acirc;ng cao nhiều trung t&acirc;m thương mại, nh&agrave; cao tầng, biệt thự được mọc ra k&egrave;m theo đấy l&agrave; nhu cầu mua sắm c&aacute;c mặt h&agrave;ng phục vụ nhu cầu cuộc sống h&agrave;ng ng&agrave;y như hoa v&agrave; qu&agrave; tặng.</p>\r\n<p>GiftShop khai trương si&ecirc;u thị số 442 Đội Cấn, Cống Vị, Ba Đ&igrave;nh, H&agrave; Nội, ch&iacute;nh thức tham gia v&agrave;o lĩnh vực kinh doanh b&aacute;n lẻ trực tuyến, tạo ra một phong c&aacute;ch mua sắm ho&agrave;n to&agrave;n mới với người d&acirc;n thủ đ&ocirc;, th&ocirc;ng qua cung cấp c&aacute;c sản phẩm v&agrave; dịch vụ tới người ti&ecirc;u d&ugrave;ng.</p>\r\n<p><strong>II. MỤC TI&Ecirc;U CHIẾN LƯỢC</strong></p>\r\n<p>1. Tối đa ho&aacute; gi&aacute; trị đầu tư của c&aacute;c cổ đ&ocirc;ng; giữ vững tốc độ tăng trưởng lợi nhuận v&agrave; t&igrave;nh h&igrave;nh t&agrave;i ch&iacute;nh l&agrave;nh mạnh;</p>\r\n<p>2. Kh&ocirc;ng ngừng n&acirc;ng cao động lực l&agrave;m việc v&agrave; năng lực c&aacute;n bộ; GiftShop phải lu&ocirc;n dẫn đầu ng&agrave;nh b&aacute;n lẻ trong việc s&aacute;ng tạo, ph&aacute;t triển ch&iacute;nh s&aacute;ch đ&atilde;i ngộ v&agrave; cơ hội thăng tiến nghề nghiệp cho c&aacute;n bộ của m&igrave;nh;</p>\r\n<p>3. Duy tr&igrave; sự h&agrave;i l&ograve;ng, trung th&agrave;nh v&agrave; gắn b&oacute; của kh&aacute;ch h&agrave;ng với GiftShop; x&acirc;y dựng GiftShop th&agrave;nh một trong những c&ocirc;ng ty h&agrave;ng đầu Việt Nam c&oacute; chất lượng dịch vụ tốt nhất do kh&aacute;ch h&agrave;ng lựa chọn.</p>\r\n<p>4. Ph&aacute;t triển GiftShop th&agrave;nh một trong những c&ocirc;ng ty h&agrave;ng đầu Việt Nam về: quản l&yacute; tốt nhất, m&ocirc;i trường l&agrave;m việc tốt nhất, văn ho&aacute; doanh nghiệp ch&uacute; trọng kh&aacute;ch h&agrave;ng, th&uacute;c đẩy hợp t&aacute;c v&agrave; s&aacute;ng tạo, linh hoạt nhất khi m&ocirc;i trường kinh doanh thay đổi.</p>\r\n<p><strong>III. THẾ MẠNH V&Agrave; ĐỊNH HƯỚNG CỦA C&Ocirc;NG TY</strong></p>\r\n<p>Với kim chỉ nam l&agrave; &ldquo;<em>Kh&ocirc;ng ngừng ph&aacute;t triển v&igrave; kh&aacute;ch h&agrave;ng</em>&rdquo;, GiftShop đ&atilde; quy tụ được Ban l&atilde;nh đạo c&oacute; bề d&agrave;y kinh nghiệm trong lĩnh vực b&aacute;n lẻ, kh&ocirc;ng chỉ mạnh về kinh doanh m&agrave; c&ograve;n mạnh về c&ocirc;ng nghệ, c&oacute; nhiều tiềm năng ph&aacute;t triển, kết hợp với đội ngũ nh&acirc;n vi&ecirc;n trẻ, năng động v&agrave; chuy&ecirc;n nghiệp, tạo n&ecirc;n thế mạnh n&ograve;ng cốt của c&ocirc;ng ty để thực hiện tốt c&aacute;c mục ti&ecirc;u đề ra.</p>\r\n<p>Hơn nữa, tr&ecirc;n cơ sở nguồn lực của c&ocirc;ng ty v&agrave; nhu cầu của x&atilde; hội, GiftShop<strong>&nbsp;</strong>lựa chọn ph&aacute;t triển kinh doanh hoa v&agrave; qu&agrave; tặng phục vụ nhu cầu thiết yếu của người d&acirc;n với c&aacute;c sản phẩm đa dạng, phong ph&uacute;, mang lại gi&aacute; trị gia tăng cho người ti&ecirc;u d&ugrave;ng th&ocirc;ng qua c&aacute;c dịch vụ sau b&aacute;n h&agrave;ng.</p>\r\n<p>Qua qu&aacute; tr&igrave;nh ph&aacute;t triển, b&ecirc;n cạnh việc thiết lập được một hệ thống đối t&aacute;c nước trong nước v&agrave; ngo&agrave;i đến từ c&aacute;c doanh nghiệp lớn, c&oacute; thế mạnh trong lĩnh vực ban..., c&ocirc;ng ty sẽ đầu tư v&agrave;o c&aacute;c ng&agrave;nh nghề mới như bất động sản, khai th&aacute;c kho&aacute;ng, đầu tư t&agrave;i ch&iacute;nh... trong thời gian tới.</p>\r\n</body>\r\n</html>', NULL, 1, 1, 0, 1498448006, 1498448006), (115, NULL, 'blog', 'egfwe', 'egfwe', '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>cfsd</p>\r\n</body>\r\n</html>', NULL, 1, 1, 0, 1498451994, 1498532462); -- -------------------------------------------------------- -- -- Table structure for table `post_meta` -- CREATE TABLE `post_meta` ( `post_id` int(11) NOT NULL, `meta_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `meta_value` text COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `post_meta` -- INSERT INTO `post_meta` (`post_id`, `meta_key`, `meta_value`) VALUES (76, 'description', 'Tin về phong thủy trên xe'), (76, 'picture', NULL), (75, 'description', 'Tôi không tin\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n'), (75, 'picture', 'http://admin.shop.loc/uploads/tin-v-phong-thy.jpg'), (78, 'tag', ''), (78, 'images', 'a:0:{}'), (78, 'description', ''), (78, 'price', ''), (78, 'price_sale', ''), (78, 'price_fake', ''), (79, 'tag', ''), (79, 'images', 'a:0:{}'), (79, 'description', ''), (79, 'price', ''), (79, 'price_sale', ''), (79, 'price_fake', ''), (80, 'tag', ''), (80, 'images', 'a:0:{}'), (80, 'description', '+ Chất liệu và hoàn thiện: <NAME> <NAME> (Tân Cương, (tại Việt Nam)).\r\n+ Kích thước (dài x rộng x cao): 3.5cm x 2cm x 1cm\r\n+ Khối lượng: 16g\r\n+ Ý nghĩa: đem lại may mắn về tài lộc, thích hợp cho người kinh doanh, buôn bán, hợp mệnh Thổ, Mộc, Kim.\r\n+ Cách sử dụng: trang sức mặt dây chuyền.'), (80, 'price', ''), (80, 'price_sale', ''), (80, 'price_fake', ''), (81, 'tag', ''), (81, 'images', 'a:0:{}'), (81, 'description', '+ Chất liệu và hoàn thiện: Tỳ hưu đeo cổ đá ngọc Đông Linh cõng tiền nhỏ ((tại Việt Nam)).\r\n+ Kích thước (dài x rộng x cao): 3cm x 1.7cm x 1.4cm\r\n+ Khối lượng: 9g\r\n+ Ý nghĩa: tài lộc hanh thông, công việc thành công nhanh chóng.\r\n+ Cách sử dụng: trang sức mặt dây chuyền, móc khóa, ngọc bội…'), (81, 'price', ''), (81, 'price_sale', ''), (81, 'price_fake', ''), (82, 'tag', ''), (82, 'images', 'a:0:{}'), (82, 'description', ''), (82, 'price', ''), (82, 'price_sale', ''), (82, 'price_fake', ''), (102, 'tag', ''), (102, 'images', 'a:0:{}'), (102, 'description', ''), (102, 'price', '50000'), (102, 'price_sale', ''), (102, 'price_fake', '50000'), (101, 'tag', ''), (101, 'images', 'a:0:{}'), (101, 'description', ''), (101, 'price', '100000'), (101, 'price_sale', ''), (101, 'price_fake', '50000'), (100, 'tag', ''), (100, 'images', 'a:0:{}'), (100, 'description', ''), (100, 'price', '1000000'), (100, 'price_sale', ''), (100, 'price_fake', '500000'), (99, 'tag', ''), (99, 'images', 'a:0:{}'), (99, 'description', ''), (99, 'price', ''), (99, 'price_sale', ''), (99, 'price_fake', ''), (98, 'tag', ''), (98, 'images', 'a:0:{}'), (98, 'description', ''), (98, 'price', ''), (98, 'price_sale', ''), (98, 'price_fake', ''), (97, 'tag', ''), (97, 'images', 'a:0:{}'), (97, 'description', ''), (97, 'price', ''), (97, 'price_sale', ''), (97, 'price_fake', ''), (96, 'tag', ''), (96, 'images', 'a:0:{}'), (96, 'description', ''), (96, 'price', ''), (96, 'price_sale', ''), (96, 'price_fake', ''), (95, 'tag', ''), (95, 'images', 'a:0:{}'), (95, 'description', ''), (95, 'price', ''), (95, 'price_sale', ''), (95, 'price_fake', ''), (94, 'tag', ''), (94, 'images', 'a:0:{}'), (94, 'description', ''), (94, 'price', ''), (94, 'price_sale', ''), (94, 'price_fake', ''), (93, 'tag', ''), (93, 'images', 'a:0:{}'), (93, 'description', ''), (93, 'price', ''), (93, 'price_sale', ''), (93, 'price_fake', ''), (92, 'tag', ''), (92, 'images', 'a:0:{}'), (92, 'description', ''), (92, 'price', ''), (92, 'price_sale', ''), (92, 'price_fake', ''), (91, 'tag', ''), (91, 'images', 'a:0:{}'), (91, 'description', ''), (91, 'price', ''), (91, 'price_sale', ''), (91, 'price_fake', ''), (88, 'tag', ''), (88, 'images', 'a:0:{}'), (88, 'description', ''), (88, 'price', ''), (88, 'price_sale', ''), (88, 'price_fake', ''), (87, 'tag', ''), (87, 'images', 'a:0:{}'), (87, 'description', ''), (87, 'price', ''), (87, 'price_sale', ''), (87, 'price_fake', ''), (85, 'tag', ''), (85, 'images', 'a:0:{}'), (85, 'description', ''), (85, 'price', ''), (85, 'price_sale', ''), (85, 'price_fake', ''), (84, 'tag', ''), (84, 'images', 'a:0:{}'), (84, 'description', ''), (84, 'price', ''), (84, 'price_sale', ''), (84, 'price_fake', ''), (103, 'tag', ''), (103, 'images', 'a:0:{}'), (103, 'description', ''), (103, 'price', ''), (103, 'price_sale', ''), (103, 'price_fake', ''), (104, 'tag', ''), (104, 'images', 'a:0:{}'), (104, 'description', ''), (104, 'price', ''), (104, 'price_sale', ''), (104, 'price_fake', ''), (105, 'tag', ''), (105, 'images', 'a:0:{}'), (105, 'description', ''), (105, 'price', ''), (105, 'price_sale', ''), (105, 'price_fake', ''), (106, 'tag', ''), (106, 'images', 'a:0:{}'), (106, 'description', ''), (106, 'price', ''), (106, 'price_sale', ''), (106, 'price_fake', ''), (107, 'tag', ''), (107, 'images', 'a:0:{}'), (107, 'description', ''), (107, 'price', ''), (107, 'price_sale', ''), (107, 'price_fake', ''), (108, 'tag', ''), (108, 'images', 'a:0:{}'), (108, 'description', ''), (108, 'price', ''), (108, 'price_sale', ''), (108, 'price_fake', ''), (111, 'description', 'SDSDDS'), (111, 'meta_keywords', NULL), (111, 'meta_description', NULL), (111, 'picture', 'http://admin.thegioitailoc.loc/uploads/acfass.jpg'), (111, 'link', 'http://admin.thegioitailoc.loc/slide/create'), (111, 'price', '23'), (111, 'price_sale', '32'), (112, 'description', 'SFCA'), (112, 'meta_keywords', NULL), (112, 'meta_description', NULL), (112, 'picture', 'http://admin.thegioitailoc.loc/uploads/dss.jpg'), (112, 'link', 'http://admin.thegioitailoc.loc/slide/create'), (112, 'price', ''), (112, 'price_sale', ''), (113, 'description', NULL), (113, 'meta_keywords', NULL), (113, 'meta_description', NULL), (113, 'picture', NULL), (113, 'page_type', NULL), (113, 'widget', NULL), (114, 'description', NULL), (114, 'meta_keywords', NULL), (114, 'meta_description', NULL), (114, 'picture', NULL), (114, 'page_type', NULL), (114, 'widget', NULL), (86, 'tag', ''), (86, 'images', 'a:0:{}'), (86, 'description', ''), (86, 'featured', '0'), (86, 'price', ''), (86, 'price_sale', ''), (86, 'price_fake', ''), (86, 'buy_many', '0'), (89, 'tag', ''), (89, 'images', 'a:0:{}'), (89, 'description', ''), (89, 'featured', '1'), (89, 'price', ''), (89, 'price_sale', ''), (89, 'price_fake', ''), (89, 'buy_many', '0'), (83, 'tag', ''), (83, 'images', 'a:0:{}'), (83, 'description', ''), (83, 'featured', '0'), (83, 'price', ''), (83, 'price_sale', ''), (83, 'price_fake', ''), (83, 'buy_many', '0'), (90, 'tag', ''), (90, 'images', 'a:0:{}'), (90, 'description', ''), (90, 'featured', '0'), (90, 'price', ''), (90, 'price_sale', ''), (90, 'price_fake', ''), (90, 'buy_many', '0'), (115, 'description', 'sssss'), (115, 'picture', 'http://thegioitailoc.loc/images/default.jpg'), (115, 'featured_blog', '0'), (77, 'tag', ''), (77, 'images', 'a:0:{}'), (77, 'description', ''), (77, 'featured', '0'), (77, 'price', ''), (77, 'price_sale', ''), (77, 'price_fake', ''), (77, 'buy_many', '0'), (110, 'tag', ''), (110, 'images', 'a:0:{}'), (110, 'description', ''), (110, 'featured', '0'), (110, 'price', ''), (110, 'price_sale', ''), (110, 'price_fake', ''), (110, 'buy_many', '0'), (110, 'tracking_link', ''), (109, 'tag', ''), (109, 'images', 'a:0:{}'), (109, 'description', ''), (109, 'featured', '0'), (109, 'price', ''), (109, 'price_sale', ''), (109, 'price_fake', ''), (109, 'buy_many', '0'), (109, 'tracking_link', ''); -- -------------------------------------------------------- -- -- Table structure for table `post_view` -- CREATE TABLE `post_view` ( `id` int(11) NOT NULL, `post_id` int(11) NOT NULL, `ip` varchar(50) NOT NULL, `last_visit` int(11) NOT NULL, `hit` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `post_view` -- INSERT INTO `post_view` (`id`, `post_id`, `ip`, `last_visit`, `hit`) VALUES (13, 26, '127.0.0.1', 1497283592, 1), (14, 64, '127.0.0.1', 1497588832, 1), (15, 63, '127.0.0.1', 1497592756, 1), (16, 65, '127.0.0.1', 1497601236, 1), (17, 69, '127.0.0.1', 1497857523, 1), (18, 73, '127.0.0.1', 1497867329, 1), (19, 74, '127.0.0.1', 1497926451, 1), (20, 71, '127.0.0.1', 1497926548, 1), (21, 72, '127.0.0.1', 1497926620, 1), (22, 70, '127.0.0.1', 1498016000, 1), (23, 109, '127.0.0.1', 1498113587, 1), (24, 105, '127.0.0.1', 1498280880, 1), (25, 110, '127.0.0.1', 1498283247, 1), (26, 82, '127.0.0.1', 1498284250, 1), (27, 80, '127.0.0.1', 1498284318, 1), (28, 79, '127.0.0.1', 1498284462, 1), (29, 78, '127.0.0.1', 1498461567, 1), (30, 101, '127.0.0.1', 1498490098, 1), (31, 100, '127.0.0.1', 1498491805, 1), (32, 102, '127.0.0.1', 1498493127, 1), (33, 106, '127.0.0.1', 1498971113, 1); -- -------------------------------------------------------- -- -- Table structure for table `product_order` -- CREATE TABLE `product_order` ( `id` int(11) NOT NULL, `order_id` int(11) DEFAULT NULL, `name` varchar(250) DEFAULT NULL, `url` varchar(250) DEFAULT NULL, `image` varchar(250) DEFAULT NULL, `quantity` int(11) DEFAULT NULL, `price` int(11) DEFAULT NULL, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `product_order` -- INSERT INTO `product_order` (`id`, `order_id`, `name`, `url`, `image`, `quantity`, `price`, `created_at`, `updated_at`) VALUES (1, 8, 'Chuỗi thạch anh tóc vàng', 'http://thegioitailoc.loc/chuoi-thach-anh-toc-vang', 'http://thegioitailoc.loc/uploads/chuoi-thach-anh-toc-vang-1498109663.jpg', 1, 100000, 1498533958, 1498533958), (2, 9, 'Chuỗi thạch anh tóc vàng', 'http://thegioitailoc.loc/chuoi-thach-anh-toc-vang', 'http://thegioitailoc.loc/uploads/chuoi-thach-anh-toc-vang-1498109663.jpg', 1, 100000, 1498536041, 1498536041); -- -------------------------------------------------------- -- -- Table structure for table `qa` -- CREATE TABLE `qa` ( `id` int(11) NOT NULL, `title` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `qa` -- INSERT INTO `qa` (`id`, `title`, `email`, `created_at`, `updated_at`) VALUES (1, 'dvvvvvsdcvf', '<EMAIL>', 1497328642, 1497328642), (2, 'dsfcaadc', '<EMAIL>', 1497329063, 1497329063), (3, 'dvsafa', '<EMAIL>', 1497329326, 1497329326), (4, 'ừqwda', '<EMAIL>', 1497329519, 1497329519), (5, 'ứcdaaD', '<EMAIL>', 1497329640, 1497329640), (6, 'âdd', '<EMAIL>', 1497329688, 1497329688); -- -------------------------------------------------------- -- -- Table structure for table `relationship` -- CREATE TABLE `relationship` ( `term_id` int(11) NOT NULL, `post_id` int(11) NOT NULL, `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `relationship` -- INSERT INTO `relationship` (`term_id`, `post_id`, `created_at`, `updated_at`) VALUES (1, 78, 1498103138, 1498103138), (1, 79, 1498104991, 1498104991), (1, 80, 1498105071, 1498105071), (1, 82, 1498105330, 1498105330), (2, 86, 1498531676, 1498531676), (2, 89, 1498531711, 1498531711), (2, 83, 1498532179, 1498532179), (2, 90, 1498532401, 1498532401), (1, 77, 1498532492, 1498532492), (20, 110, 1498792576, 1498792576), (21, 110, 1498792576, 1498792576), (23, 110, 1498792576, 1498792576), (24, 110, 1498792576, 1498792576), (1, 109, 1498797682, 1498797682), (20, 109, 1498797682, 1498797682), (22, 109, 1498797682, 1498797682); -- -------------------------------------------------------- -- -- Table structure for table `review` -- CREATE TABLE `review` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `ip` varchar(50) DEFAULT NULL, `star` int(11) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `fullname` varchar(255) DEFAULT NULL, `content` text, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `review` -- INSERT INTO `review` (`id`, `post_id`, `ip`, `star`, `email`, `fullname`, `content`, `created_at`, `updated_at`) VALUES (1, 109, '127.0.0.1', 3, '<EMAIL>', '<NAME>', 'dqssssssssssss', 1498966560, 1498966560); -- -------------------------------------------------------- -- -- Table structure for table `setting` -- CREATE TABLE `setting` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `setting` -- INSERT INTO `setting` (`id`, `name`, `description`, `type`) VALUES (1, 'General', NULL, 'general'); -- -------------------------------------------------------- -- -- Table structure for table `setting_meta` -- CREATE TABLE `setting_meta` ( `setting_id` int(11) NOT NULL, `meta_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `meta_value` text COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `setting_meta` -- INSERT INTO `setting_meta` (`setting_id`, `meta_key`, `meta_value`) VALUES (1, 'title', 'Boi toan'), (1, 'description', 'Boi toan'), (1, 'website', 'http://boitoan.loc/'); -- -------------------------------------------------------- -- -- Table structure for table `term` -- CREATE TABLE `term` ( `id` int(11) NOT NULL, `parent_id` int(11) DEFAULT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `indent` int(11) NOT NULL DEFAULT '0', `order` int(11) NOT NULL, `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `term` -- INSERT INTO `term` (`id`, `parent_id`, `title`, `slug`, `type`, `status`, `indent`, `order`, `created_at`, `updated_at`) VALUES (1, NULL, 'Tỳ hưu', 'ty-huu', 'category', 1, 0, 12, 0, 1498102621), (2, NULL, 'Thiềm thừ', 'thiem-thu', 'category', 1, 0, 2, 0, 1498102656), (3, NULL, 'Đá quý', 'da-quy', 'category', 1, 0, 3, 0, 1498102679), (4, NULL, 'Trang sức', 'trang-suc', 'category', 1, 0, 4, 0, 1498102698), (18, NULL, 'Vật phẩm', 'vat-pham', 'category', 1, 0, 0, 1497850202, 1498102734), (19, NULL, 'Linh vật', 'linh-vat', 'category', 1, 0, 0, 1497850210, 1498102754), (20, NULL, 'Bạch dương (29/3-19/4)', 'bach-duong-293-194', 'zodiac', 1, 0, 0, 1498791162, 1498791162), (21, NULL, 'Kim Ngưu (20/4-20/5)', 'kim-nguu-204-205', 'zodiac', 1, 0, 0, 1498791191, 1498791191), (22, NULL, 'Tuổi Tý', 'tuoi-ty', 'age', 1, 0, 0, 1498791326, 1498791326), (23, NULL, '<NAME>', 'tuoi-suu', 'age', 1, 0, 0, 1498791351, 1498791351), (24, NULL, '<NAME>', 'tuoi-dan', 'age', 1, 0, 0, 1498791363, 1498791363); -- -------------------------------------------------------- -- -- Table structure for table `term_meta` -- CREATE TABLE `term_meta` ( `term_id` int(11) NOT NULL, `meta_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `meta_value` text COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `term_meta` -- INSERT INTO `term_meta` (`term_id`, `meta_key`, `meta_value`) VALUES (1, 'description', ''), (2, 'description', ''), (3, 'description', ''), (4, 'description', ''), (18, 'description', ''), (19, 'description', ''), (20, 'description', ''), (21, 'description', ''), (22, 'description', ''), (23, 'description', ''), (24, 'description', ''); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `role` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `username`, `email`, `auth_key`, `password_hash`, `password_reset_token`, `role`, `status`, `created_at`, `updated_at`) VALUES (1, 'admin', '<EMAIL>', 'MMhaEXrgi7MNh1fiRQ2abT_ePpXIMzy5', <PASSWORD>', NULL, 'admin', 10, 1489110367, 1489110367), (6, 'huynhtuvinh12', '<EMAIL>', 'HgUWEIXt4X9IpEJlX2MI5hLSaG3LhW3j', '$2y$13$E8vHZw0HfB6w.4CdxQFuTunRT3YN9FgTyDWz9mmj3Ilk22ZTNVRvm', NULL, 'admin', 10, 1496722598, 1496728846), (7, 'saaaaaaaaadc', '<EMAIL>', '<PASSWORD>', '$2y$13$c<PASSWORD>', NULL, 'admin', 10, 1496728111, 1496728111), (8, NULL, '<EMAIL>', '<PASSWORD>', '$2y$13$gg7bhZONwg1/CDZsHqfa1OwnLAtazeijZdahNUqvA8PxNAIkDfMLq', NULL, 'member', 10, 1497341170, 1497341170); -- -------------------------------------------------------- -- -- Table structure for table `user_meta` -- CREATE TABLE `user_meta` ( `user_id` int(11) NOT NULL, `meta_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `meta_value` text COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `user_meta` -- INSERT INTO `user_meta` (`user_id`, `meta_key`, `meta_value`) VALUES (7, 'firstname', 'sc'), (7, 'lastname', 'ssssssssssssd'), (7, 'address', ''), (6, 'firstname', 'rứ'), (6, 'lastname', 'wsf'), (6, 'address', ''), (8, 'firstname', 'Huynh'), (8, 'lastname', 'Vinh'); -- -- Indexes for dumped tables -- -- -- Indexes for table `comment` -- ALTER TABLE `comment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migration` -- ALTER TABLE `migration` ADD PRIMARY KEY (`version`); -- -- Indexes for table `order` -- ALTER TABLE `order` ADD PRIMARY KEY (`id`); -- -- Indexes for table `post` -- ALTER TABLE `post` ADD PRIMARY KEY (`id`), ADD KEY `index-post-status` (`status`), ADD KEY `index-post-author` (`author`); -- -- Indexes for table `post_meta` -- ALTER TABLE `post_meta` ADD KEY `index-post_meta-post_id` (`post_id`), ADD KEY `index-post_meta-meta_key` (`meta_key`); -- -- Indexes for table `post_view` -- ALTER TABLE `post_view` ADD PRIMARY KEY (`id`); -- -- Indexes for table `product_order` -- ALTER TABLE `product_order` ADD PRIMARY KEY (`id`); -- -- Indexes for table `qa` -- ALTER TABLE `qa` ADD PRIMARY KEY (`id`); -- -- Indexes for table `relationship` -- ALTER TABLE `relationship` ADD KEY `fk-category_post-post_id` (`post_id`); -- -- Indexes for table `review` -- ALTER TABLE `review` ADD PRIMARY KEY (`id`); -- -- Indexes for table `setting` -- ALTER TABLE `setting` ADD PRIMARY KEY (`id`); -- -- Indexes for table `setting_meta` -- ALTER TABLE `setting_meta` ADD KEY `fk-setting_meta-setting_id` (`setting_id`); -- -- Indexes for table `term` -- ALTER TABLE `term` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `title` (`title`), ADD UNIQUE KEY `slug` (`slug`); -- -- Indexes for table `term_meta` -- ALTER TABLE `term_meta` ADD KEY `index-category_meta-category_id` (`term_id`), ADD KEY `index-category_meta-meta_key` (`meta_key`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `password_reset_token` (`password_reset_token`), ADD KEY `index-user-status` (`status`), ADD KEY `index-user-email` (`email`); -- -- Indexes for table `user_meta` -- ALTER TABLE `user_meta` ADD KEY `index-user_meta-user_id` (`user_id`), ADD KEY `index-user_meta-meta_key` (`meta_key`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `comment` -- ALTER TABLE `comment` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `order` -- ALTER TABLE `order` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `post` -- ALTER TABLE `post` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=116; -- -- AUTO_INCREMENT for table `post_view` -- ALTER TABLE `post_view` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `product_order` -- ALTER TABLE `product_order` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `qa` -- ALTER TABLE `qa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `review` -- ALTER TABLE `review` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `setting` -- ALTER TABLE `setting` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `term` -- ALTER TABLE `term` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- Constraints for dumped tables -- -- -- Constraints for table `post` -- ALTER TABLE `post` ADD CONSTRAINT `fk-post-author` FOREIGN KEY (`author`) REFERENCES `user` (`id`); -- -- Constraints for table `post_meta` -- ALTER TABLE `post_meta` ADD CONSTRAINT `fk-post_meta-post_id` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE; -- -- Constraints for table `relationship` -- ALTER TABLE `relationship` ADD CONSTRAINT `fk-category_post-post_id` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE; -- -- Constraints for table `setting_meta` -- ALTER TABLE `setting_meta` ADD CONSTRAINT `fk-setting_meta-setting_id` FOREIGN KEY (`setting_id`) REFERENCES `setting` (`id`) ON DELETE CASCADE; -- -- Constraints for table `term_meta` -- ALTER TABLE `term_meta` ADD CONSTRAINT `fk-category_meta-category_id` FOREIGN KEY (`term_id`) REFERENCES `term` (`id`) ON DELETE CASCADE; -- -- Constraints for table `user_meta` -- ALTER TABLE `user_meta` ADD CONSTRAINT `fk-user_meta-user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; COMMIT; /*!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 */;
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: mysql:3306 -- Tiempo de generación: 17-08-2018 a las 05:07:58 -- Versión del servidor: 5.7.22 -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Base de datos: `cursophp` -- CREATE DATABASE IF NOT EXISTS `cursophp` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `cursophp`; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuarios` -- DROP TABLE IF EXISTS `usuarios`; CREATE TABLE `usuarios` ( `id` int(11) NOT NULL, `usuario` text NOT NULL, `password` text NOT NULL, `email` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `usuarios` -- INSERT INTO `usuarios` (`id`, `usuario`, `password`, `email`) VALUES (13, 'uno', '<PASSWORD>', '<PASSWORD>'), (14, 'eligio', '<PASSWORD>', 'el<EMAIL>'), (15, 'ana', '<PASSWORD>', '<PASSWORD>'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `usuarios` -- ALTER TABLE `usuarios` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `usuarios` -- ALTER TABLE `usuarios` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; COMMIT; /*!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 */;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 19, 2022 at 10:25 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `monitor` -- -- -------------------------------------------------------- -- -- Table structure for table `bussinessaffairs` -- DROP TABLE IF EXISTS `bussinessaffairs`; CREATE TABLE IF NOT EXISTS `bussinessaffairs` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `SubjectID` int(11) DEFAULT NULL, `SectionID` int(11) DEFAULT NULL, `bussinessid` int(11) DEFAULT NULL, `date` varchar(45) DEFAULT NULL, `Actions` char(100) DEFAULT NULL, `remarks` char(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `bussinessaffairs` -- INSERT INTO `bussinessaffairs` (`ID`, `SubjectID`, `SectionID`, `bussinessid`, `date`, `Actions`, `remarks`) VALUES (1, 1, 1, 1, 'أغسطس 2011', 'توريد عدد 7 محطات رادار(بورفؤاد - القبة - الكاب - الارسال - فنارة - جنيفة -بورتوفيق)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (2, 1, 1, 1, 'أغسطس 2014', 'توريد عدد 7 محطات رادار(بورفؤاد - القبة - الكاب - الارسال - فنارة - جنيفة -بورتوفيق)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (3, 1, 1, 1, 'أغسطس 2015', 'توريد عدد 7 محطات رادار(بورفؤاد - القبة - الكاب - الارسال - فنارة - جنيفة -بورتوفيق)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (4, 1, 1, 2, 'ابريل 2015', 'تركيب عدد 6 محطات (بورفؤاد - القبة - الكاب - الارسال - جنيفة - بورتوفيق)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (5, 1, 1, 3, 'يوليو 2017', 'توريد عدد 5 محطات رادار (راس العش - البلاح - شرق الفردان - طوسون - الشلوفة )', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (6, 1, 1, 4, 'أغسطس 2017', 'تركيب عدد 3 محطات رادار(البلاج - طوسون - الشلوفة)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (7, 1, 1, 5, 'فبراير 2020', 'تركيب رادار ( فنارة - رأس العش - شرق الفردان)', 'تواريخ التوريد و التركيب لكل محطةواسم الشركة الموردة وشروط التوريد بنود التوريد'), (8, 1, 1, 6, 'خلال 2020/2021', 'مع مندوب GET وكيل الهيئة الاقتصادية للمشروعات تم عمل اختبارات (فنارة - شرق الفردان -راس العش) باقى', 'إشارة للشركة رقم 883 بتاريخ /9/12/2021'), (9, 1, 1, 7, 'نوفمبر 2021', 'عدد 2 امر توريد من شركات (TERMA- SPERRY MARINE) و في انتظار توريدهم هي قطع غيار مطلوبة لعمل الصيانات', 'استثناء كارتة CPRD تعمل التموين على توفيرها'), (10, 2, 1, 1, 'أغسطس 2012', 'قامت الشركة الفرنسية (الهيئة الاقتصادية للمشروعات بالمخابرات العامة) بعمل :', 'المحطات الأساسية والمضافة وتاريخ التعاقد على ال 5 محطات'), (11, 2, 1, 1, 'أغسطس 2012', '1- مسح ودراسة ميدانية للتغطية الردارية لقناة السوسي بالكامل', 'المحطات الأساسية والمضافة وتاريخ التعاقد على ال 5 محطات'), (12, 2, 1, 1, 'أغسطس 2012', '2- نتج عنها 5 مناطق عمياء للشبكة الردارية المكونة من :', 'المحطات الأساسية والمضافة وتاريخ التعاقد على ال 5 محطات'), (13, 2, 1, 1, 'أغسطس 2012', 'عدد 8 محطات رادار وبالتالي تم تعديل التعاقد بإضافة عدد 5 محطات ردارية إضافية وأصبحت عدد المحطات 13', 'المحطات الأساسية والمضافة وتاريخ التعاقد على ال 5 محطات'); -- -------------------------------------------------------- -- -- Table structure for table `departments` -- DROP TABLE IF EXISTS `departments`; CREATE TABLE IF NOT EXISTS `departments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `task` varchar(100) NOT NULL, `manager` varchar(100) NOT NULL, `created_at` datetime DEFAULT current_timestamp(), `updated_at` datetime DEFAULT current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `departments` -- INSERT INTO `departments` (`id`, `name`, `task`, `manager`, `created_at`, `updated_at`) VALUES (1, 'vtms', 'vtms', 'waleed', '2022-03-01 12:16:43', '2022-03-01 12:16:43'), (2, 'vtms', 'vtms', 'waleed', '2022-03-02 08:53:18', '2022-03-02 08:53:18'); -- -------------------------------------------------------- -- -- Table structure for table `documents` -- DROP TABLE IF EXISTS `documents`; CREATE TABLE IF NOT EXISTS `documents` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `contents` varchar(100) NOT NULL, `geha` varchar(100) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), `photo` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `documents` -- INSERT INTO `documents` (`id`, `name`, `contents`, `geha`, `created_at`, `updated_at`, `photo`) VALUES (1, '675', 'reply', NULL, '2022-03-01 12:30:30', '2022-03-01 10:30:30', ''), (2, '657', 'reply', NULL, '2022-03-02 06:53:39', '2022-03-02 04:53:39', ''), (3, '658', 'store', NULL, '2022-03-02 07:00:45', '2022-03-02 05:00:45', ''), (4, '659', 'store2', NULL, '2022-03-02 07:02:51', '2022-03-02 05:02:51', ''), (5, '660', 'store3', NULL, '2022-03-02 07:03:26', '2022-03-02 05:03:26', ''), (6, '660', 'store3', NULL, '2022-03-02 07:05:43', '2022-03-02 05:05:43', ''); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- DROP TABLE IF EXISTS `failed_jobs`; CREATE TABLE IF NOT EXISTS `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `offers` -- DROP TABLE IF EXISTS `offers`; CREATE TABLE IF NOT EXISTS `offers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name_en` varchar(255) DEFAULT NULL, `price` varchar(255) DEFAULT NULL, `photo` varchar(100) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated_at` timestamp NULL DEFAULT current_timestamp(), `details_en` varchar(1000) DEFAULT NULL, `name_ar` varchar(255) DEFAULT NULL, `details_ar` varchar(1000) DEFAULT NULL, `directory` varchar(100) NOT NULL DEFAULT 'offers', `input` varchar(100) DEFAULT NULL, `output` varchar(100) DEFAULT NULL, `type` varchar(100) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `reply_on` varchar(100) DEFAULT NULL, `require_monitor` tinyint(1) DEFAULT NULL, `monitor_date` varchar(100) DEFAULT NULL, `additions` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=146 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `offers` -- INSERT INTO `offers` (`id`, `name_en`, `price`, `photo`, `created_at`, `updated_at`, `details_en`, `name_ar`, `details_ar`, `directory`, `input`, `output`, `type`, `status`, `reply_on`, `require_monitor`, `monitor_date`, `additions`) VALUES (1, '15-3-2016', NULL, 'radars-15-3-2016.pdf', '2022-04-24 10:00:39', '2022-03-01 08:09:53', 'طباقا لمحضر فحص ظاهري ( مخزن المواصلات)', 'تشوينات محطات الرادرار', 'عدد/5 محطات (راس العش - البلاح - شرق الفردان - طوسون - الشلوفة)', 'radars', NULL, NULL, 'تعاقد', 'done', NULL, NULL, NULL, ''), (2, 'يوليو - أغسطس (2017)', NULL, 'radars-1858-يوليو - أغسطس (2017).pdf', '2022-04-24 10:09:38', '2022-03-01 06:24:45', NULL, 'تركيبات محطات الرادار', 'تركيب عدد 3 محطات رادار(البلاج - طوسون - الشلوفة)', 'radars', NULL, '1858', 'مذكرة', 'done', NULL, NULL, '22-04-22', ''), (3, 'فبراير 2020', NULL, 'radars-1858-فبراير 2020.pdf', '2022-04-21 11:18:14', '2022-03-01 08:29:16', NULL, 'تركيبات محطات الرادار', 'تركيب عدد 3 محطات ( فنارة - رأس العش - شرق الفردان)', 'radars', NULL, '1858', 'مذكرة', 'done', NULL, NULL, NULL, ''), (4, 'ابريل - مايو - يونيو (2015)', NULL, 'radars-ابريل - مايو - يونيو (2015).pdf', '2022-04-24 10:14:06', '2022-03-01 08:49:09', 'لا توجد ملاحظات', 'المشاكل الفنية للرادار', 'التركيب المحطات (بورفؤاد - القبة - الكاب - الارسال - جنيفة - بورتوفيق-القنطرة) وبداية التشغيل تعمل بكفاءة 100%', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (5, 'أغسطس 2011', NULL, 'radars-أغسطس 2011.pdf', '2022-04-24 09:59:43', '2022-03-01 08:49:44', 'طباقا لمحضر فحص ظاهري عدد/7 محطات (بورفؤاد - القبة - الكاب -القنطرة -الإرسال - جنيفة - بورتوفيق)', 'تشوينات محطات الرادرار ( مخزن المواصلات)', 'مرفق ب التعاقد بين هيئة قناة السويس و مجلس الدفاع الوطني إتفاق 28/6/2009 إتفاق 15/3/2016 ملحق إتفاق 7/3/2019', 'radars', NULL, NULL, NULL, 'done', NULL, NULL, NULL, 'radars-أغسطس 2011.apdf'), (6, '12-7-2016', NULL, 'radars-883-ج-12-7-2016.pdf', '2022-04-20 11:53:38', '2022-03-01 08:49:51', 'أخر مخاطبة الهيئة الإقتصادية للمشروعات رقم883/ج بتاريخ 9/12/2021', 'المشاكل الفنية للرادار', 'عدد 5 محطات تعمل بنسبة 50% (بورفؤاد - الكاب - البلاح - الارسال - جنيفة )', 'radars', '883-ج', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (7, '06-02-2020', NULL, 'radars-06-02-2020.pdf', '2022-04-20 11:51:43', '2022-03-01 09:26:17', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1026/1106 بخصوص ماجنترونات محطات رادار موديل terma', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (8, '17-11-2021', NULL, 'radars-3683-17-11-2021.pdf', '2022-04-20 11:52:41', '2022-03-01 11:14:26', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1088/824 بخصوص قطع غيار رادار من نوع sperry marine', 'radars', '3683', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (9, '23-11-2020', NULL, 'radars-23-11-2020.pdf', '2022-04-20 11:54:54', '2022-03-01 11:15:49', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1016/706 بخصوص مواتير لهوائي رادار CHL', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (10, '17-11-2021', NULL, 'radars-1987-17-11-2021.pdf', '2022-04-20 11:57:10', '2022-03-01 11:21:01', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1088/823 بخصوص توفير قطع غيار ciberd', 'radars', '1987', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (11, '23-11-2020', NULL, 'radars-23-11-2020.pdf', '2022-04-21 10:37:11', '2022-03-01 11:27:35', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1016/08 بخصوص قطع غيار هوائي رادار من نوع chl', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (12, '05-09-2010', NULL, 'radars-1528-670-26-05-09-2010.pdf', '2022-04-21 11:05:35', '2022-03-07 10:40:07', NULL, 'أوامر التوريد', 'أمر توريد رقم 1528/670-26 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', '1528-670-26', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (13, '9-12-2021', NULL, 'radars-883-ج-9-12-2021.pdf', '2022-04-20 12:05:30', '2022-03-07 10:47:40', 'أخر مخاطبة الهيئة الإقتصادية للمشروعات رقم883/ج بتاريخ 9/12/2021', 'المشاكل الفنية للرادار', 'عدد 6 محطات متوقفة لأسباب فنية (القبة - رأس العش - القنطرة - شرق الفردان - فنارة -بورتوفيق)', 'radars', NULL, '883-ج', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (14, '05-09-2010', NULL, 'radars-1529-670-26-05-09-2010.pdf', '2022-04-21 11:04:48', '2022-03-07 10:53:06', NULL, 'أوامر التوريد', 'أمر توريد رقم 1529/670-26 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', '1529-670-26', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (15, '16-4-2013', NULL, '', '2022-04-21 08:15:47', '2022-03-07 12:42:57', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-670/1398 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (16, '02-05-2020', NULL, 'radars-02-05-2020.pdf', '2022-04-20 11:25:58', '2022-03-15 07:37:13', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1026/1106 بخصوص ماجنترونات محطات رادار موديل terma', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (17, '09-01-2014', NULL, 'radars-09-01-2014.pdf', '2022-04-20 11:28:12', '2022-03-15 08:16:15', 'غير متوفر', 'أوامر التوريد', 'أمر توريد رقم 263/870-26 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (19, '22-11-2020', NULL, 'radars-22-11-2020.pdf', '2022-04-20 11:38:17', '2022-03-15 08:18:09', NULL, 'أوامر التوريد', 'أمر توريد رقم 708/1016-26 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', NULL, NULL, NULL, 'done', NULL, NULL, NULL, ''), (20, '14-7-2020', NULL, 'radars-14-7-2020.pdf', '2022-04-20 11:36:20', '2022-03-15 08:21:31', NULL, 'أوامر التوريد', 'أمر توريد رقم997/945-26 بخصوص توفير قطع غيار بخصوص كبائن GEM', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (21, '23-11-2020', NULL, 'radars-23-11-2020.pdf', '2022-04-20 11:30:25', '2022-03-15 08:22:25', NULL, 'أوامر التوريد', 'أمر توريد رقم 26-1016/707 بخصوص توفير قطع غيار هوائي لمحطات رادار chl', 'radars', NULL, NULL, NULL, 'done', NULL, NULL, NULL, ''), (22, '25-8-2019', NULL, 'radars-25-8-2019.pdf', '2022-04-20 11:33:09', '2022-03-15 08:23:21', NULL, 'أوامر التوريد', 'أمر توريد 26-927/213 بخصوص توفير زيوت جير بوكس للهوائيات', 'radars', NULL, NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (23, 'بدون', NULL, '', '2022-04-21 08:12:04', '2022-03-15 08:28:01', 'بعد إجراءات إستلام مشروع الـVTMS الحالي من الهيئة الإقتصادية للمشروعات بالمخابرات العامة', 'الرؤية المستقبلية', 'يجب أن تقوم الشركة المكلف لها رسميا بتحديث مشروع الـ VTMS بعمل دراسة ميدانيا للتغطية الرادارية للقناة الجديدة لتحدد عدد و أحداثيات لمواقع الرادار الجديدة المقُترحة من طرفهم طبقا لنوعية الموصفات الفنية للرادارات حتي تنفذ التغطية الرادارية بالكامل وهو الهدف الأساسي من التحديث.عدم إمكانية الشبكة الرادارية الحالية من عند تغطية قناة السويس الجديدة من 65 حتي 90 كم بسبب إرتفاعات التلال الردم علي ضفتي قناة السويس و قد تصل إرتفاعها إلي منسوب 40 متر', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (24, 'بدون', NULL, '', '2022-04-21 08:12:28', '2022-03-15 08:29:42', 'بعد إجراءات إستلام مشروع الـVTMS الحالي من الهيئة الإقتصادية للمشروعات بالمخابرات العامة', 'الرؤية المستقبلية', 'يجب أن تقوم الشركة المكلف لها رسميا بتحديث مشروع الـ VTMS بعمل دراسة ميدانيا للتغطية الرادارية للمنطقة الشمالية لتحدد مدي فاعلية تركيب محطة رادار جديدة بالبرج الجديد بمحطة الجونة البحرية طبقا لنوعية الموصفات الفنية للرادارحتي تنفذ التغطية الرادارية بالكامل وهو الهدف الأساسب من التحديث وعدم الإعتماد الكلي علي رادار بورفؤاد..رفع كفاءة التغطية الرادارية للمنطقة الشمالية للقناة بمنطقة شرق التفريعة', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (25, 'بدون', NULL, '', '2022-04-24 10:01:42', '2022-03-15 08:31:25', 'بعد إجراءات إستلام مشروع الـVTMS الحالي من الهيئة الإقتصادية للمشروعات بالمخابرات العامة', 'الرؤية المستقبلية', 'من المحتمل تكون تلال ناتج الردم علي ضفتي القناة الناتجة من الحفر و التوسعة بالقطاع الجنوبي، مما ينتج عنه مناطق عمياء راداريا ، مثلما مع حدث من حفر قناة السويس الجديدة و الإضطرار للإحتياج إلي تركيب محطات رادار جديدة.رفع كفاءة التغطية الرادارية للمنطقة الجنوبية للقناة بعد التفريعة الجديدة التي جاري تنفيذها من ترقيم 122 كم إلي 162 كم', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (26, '06-11-2020', NULL, 'radars-06-11-2020.pdf', '2022-04-21 08:14:36', '2022-03-15 08:34:30', 'عملية رقم 1/2011 أخر عملية صيانة للأبراج مع شركة يونيكونت', 'صيانة أبراج رادار', 'توصيات اللجنة المشكلة 258/2020 بتحديد أعمال الصيانة عدد/9 أبراج و أخذ برأي إستشاري بإحلال برجي (الإرسال و الكاب)', 'radars', NULL, NULL, 'تعاقد', 'done', NULL, NULL, NULL, ''), (27, '30-11-2020', NULL, 'radars-30-11-2020.pdf', '2022-04-20 12:16:10', '2022-03-15 08:36:51', NULL, 'صيانة أبراج رادار', 'موافقة رئيس هيئة قناة السويس علي توصيات لجنة المشروعات بإسناد العملية إلي إدارة التحركات', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (28, '31-1-2022', NULL, 'radars-31-1-2022.pdf', '2022-04-21 08:17:07', '2022-03-15 08:39:04', 'عملية رقم 1/2011 أخر عملية صيانة للأبراج مع شركة يونيكونت', 'صيانة أبراج رادار', 'تم مخاطبة الإدارة الهندسية نحو إسناد العملية لأحد الشركات الهيئة المتخصصة في هذا المجال بمعرفتكم', 'radars', NULL, NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (29, '23/5/2017', 'أفادات الشئون الفنية بإدارة التحركات لقسم المراقبة الإلكترونية بموافقة علي بند مصعد كل من برجي رادار بورفؤاد و بورتوفيق بمشروع الموازنة الإستثمارييية 2017/2018', '1647333641.pdf', '2022-03-15 08:40:41', '2022-03-15 08:40:41', NULL, 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (30, '09-07-2017', 'أفادات الشئون الفنية بإدارة التحركات لقسم المراقبة الإلكترونية بموافقة علي بند مصعد كل من برجي رادار بورفؤاد و بورتوفيق بمشروع الموازنة الإستثمارييية 2017/2018', '1647333712.pdf', '2022-03-15 08:41:52', '2022-03-15 08:41:52', NULL, 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (31, '25-02-2018', 'أفادات إدارة التموين بأن تم تحويل طلب توفير المصاعد إلي الإدارة الأشغال و الهندسية برقم 299 بتاريخ 25/2/2018', '1647334753.pdf', '2022-03-15 08:59:13', '2022-03-15 08:43:23', NULL, 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (32, '09-07-2017', NULL, 'radars-4329-09-07-2017.pdf', '2022-04-20 12:13:53', '2022-03-15 08:45:26', NULL, 'مصاعد الابراج', 'إفادة إلي إدارة التموين بالمواصفات الفنية للمصعدين المطلوبة و أسماء مندوبين قسم المراقبة الإلكترونية للإنضمام لجنة الدراسة والبت رقم 1496/ب بتاريخ 7/9/2017', 'radars', '4329', NULL, 'مذكرة فريق', 'done', NULL, NULL, NULL, ''), (34, '18/4/2018', 'أفادة إلي الإدارة الهندسية بإشارة رقم رقم 652 بناريخ 18/4/2018 بالمواصفات الفنية للمصاعد و أسماء المندوبين للتنسيق', '1647334850.pdf', '2022-03-15 09:00:50', '2022-03-15 08:51:42', NULL, 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (35, '02-11-2020', 'تشكيل أمر إداري رقم 18 لسنة 2020 بتاريخ 11/2/2020 لممارسة شركة قناة السويس للاستثمار', '1647335008.pdf', '2022-03-15 09:03:28', '2022-03-15 08:53:05', NULL, 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (36, '08-08-2021', 'مذكرة إدارة الرئاسة رقم 3836 و 3837 بتاريخ 8/8/2021 بخصوص إسناد شركة ترسانة السويس البحرية بالتنفيذ بمبلغ 12.5 مليون جنية', '1647335068.pdf', '2022-03-15 09:04:28', '2022-03-15 08:54:39', 'أوصي رئيس الهيئة بأن المبلغ المعروض مبالغ فيه', 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (37, '09-07-2021', 'مذكرة رقم 4329 بتاريخ 7/9/2021 بعادة طرح مناقصة توريد وتركيب المصاعد', '1647334596.pdf', '2022-03-15 08:56:36', '2022-03-15 08:56:36', 'حتي سعه و تاريخه لم يتم إتخاذ أي إجراء', 'مصاعد الابراج', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (38, '2/3/22', 'اصلاح عدد جهاز واحد', '1648452740.pdf', '2022-03-28 07:32:21', '2022-03-28 07:32:21', NULL, 'صيانة جهاز AIS ترسانة بورسعيد', 'اشارة بتلف الجهاز تماما وعدم صلاحيته للعمل', 'offers', '', '', '', NULL, '', NULL, NULL, ''), (39, '2-3-2022', 'صيانة ال ups خاص بجهاز ال ais بالترسانة', 'power-2-3-2022.pdf', '2022-05-08 09:01:09', '2022-03-28 07:41:26', NULL, 'صيانة وحدات كهربية', NULL, 'power', NULL, NULL, NULL, 'done', NULL, NULL, NULL, ''), (40, '15-3-2022', NULL, 'security-2022455-15-3-2022.pdf', '2022-03-30 12:11:57', '2022-03-28 07:48:38', NULL, 'مشروع البصمة', 'بخصوص نظام التوقيع بالبصمة كامل مشتملاتة ( كاميرات + سيرفر + كابلات )', 'security', '2022455', NULL, 'إشاره كتابيه', NULL, '', NULL, NULL, ''), (41, 'مارس-2022', NULL, 'security-2022457-مارس-2022.pdf', '2022-04-21 07:41:35', '2022-03-28 07:51:36', NULL, 'تعبئة للشئون الفنية', 'موافاتهم بخطة التعبئة العامة لعام 2023/2022 وكتابة البيانات على الحاسب الآلى على برنامج إكسيل (نسخة ورقية) + إسطوانة CD فى موعد أقصاه 2022/3/24', 'security', '2022457', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (42, '2022-03-17', 'شركة الانظمة ciss', 'hospital_centers-2022460-2022-03-17.pdf', '2022-04-18 12:04:53', '2022-03-28 07:55:35', 'بداية مشروع', 'أوامر التوريد', 'امر توريد رقم 109-474/1/1250 فى 26/1/2022 بخصوص تركيب وتوريد وتشغيل نظام مراقبة بالكاميرات للمراكز الطبية للهيئة ببورسعيد والسويس', 'hospital_centers', '2022460', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (43, '17-3-2022', NULL, 'tawkitat-2022466-17-3-2022.pdf', '2022-04-27 09:14:53', '2022-03-28 08:03:41', 'المحطات البحرية بقطاع الاسماعيليه(البلاح- الفردان- طوسون- الدفرسوار)', 'زيارة محطات', 'مطلوب متابعة الشاشات المعطلة بعد المرور وما تم بشأنها', 'tawkitat', '2022466', NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (44, '20/3/2022', 'اسماء مندوبينا هم م/ على محمد عادل على راغب رقم 10950 و م/ محمد ماجد حسين العروسى رقم 10589 للجنة فحص تجهيزات قاعة الاحتفالات بمبنى المارينا الجديدة', '1648454841.pdf', '2022-03-28 08:07:21', '2022-03-28 08:07:21', 'منتهى', 'فحص أجهزة', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (45, '20/3/2022', 'تجهيز قاعة الاحتفالات بمبنى المارينا الجديد بالكم 76 والتنسيق الذى تم مع السيد/مدير ادارة الرئاسة بشان تشكيل لجنه للفحص والاستلام للمنظومات وتحديد اسماء المندوبيين للاشتراك فى اللجنه', '1648454984.pdf', '2022-03-28 08:09:44', '2022-03-28 08:09:44', NULL, 'تجهيز قاعة الاحتفالات', NULL, 'offers', '', '', '', NULL, '', NULL, NULL, ''), (46, '20/03/2022', 'عقد اجتماع يوم الثلاثاء الموافق 22/3/2022 صباحا بمكتب المهندس/ابراهيم جمال عبد الناصر بخصوص تنسيق الاعمال المطلوب تنفيذها من كل قسم لتطوير محطة الشلوفه', '1648455274.pdf', '2022-03-28 08:14:34', '2022-03-28 08:11:52', 'سيتم التنسيق لحضور مندوب من القسم وافاده اشغال بورتوفيق باى ملاحظات ان وجدت', 'اجتماع', 'تطوير محطة الشلوفة', 'offers', '', '', '', NULL, '', NULL, NULL, ''), (47, '16/3/2022', 'تم التنسيق مع مديريه الصحه على تواجد مركز لتلقى الجرعه التنشيطيه لفيرس كورونا', 'hospital_centers-2022-03-28.pdf', '2022-03-28 12:05:36', '2022-03-28 08:21:02', 'المتابعة حين الطلب', 'اجراءات صحية', 'تتم بجدول منتظم', 'hospital_centers', '', '', '', NULL, '', NULL, NULL, ''), (48, '20-3-2022', NULL, 'technical_office-2022471-20-3-2022.pdf', '2022-04-21 08:26:41', '2022-03-28 08:23:55', NULL, 'تامين سيارات', 'موافاتهم بالبيانات المذكورة باشاره الخدمات بخصوص مشروع التامين على سيارات هيئة قناه السويس للعام المالى 2022/2023', 'technical_office', '2022471', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (49, '23-03-22', NULL, 'technical_office-2022194-23-03-22.pdf', '2022-04-21 07:48:36', '2022-03-29 06:21:24', NULL, 'تامين سيارات', 'مخاطبه ادارة الخدمات للتامين الشامل على السياره طبقا لاشارتهم رقم 768 بتاريخ 13/3/2022', 'technical_office', NULL, '2022194', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (50, '13-9-2021', NULL, 'power-2981-13-9-2021.pdf', '2022-04-21 08:59:54', '2022-03-31 08:43:21', NULL, 'أمر توريد', 'توريد وتركيب 3kva ups أمر توريد رقم 384/1911-455', 'power', '2981', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (51, '28-2-2022', 'توريد وتركيب', 'power-1993-28-2-2022.pdf', '2022-05-08 08:59:52', '2022-03-31 08:50:18', NULL, 'أوامر التوريد', '912/1860-55 توريد عدد/18 كارتة ريموت لزوم شبكات UPS', 'power', '1993', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (52, '6-3-22', 'امر توريد رقم 1890-55-1428', 'power-706-6-3-22.pdf', '2022-05-08 09:02:23', '2022-03-31 09:51:56', NULL, 'أوامر التوريد', 'امر توري', 'power', '706', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (53, '20-03-22', NULL, 'security-2022250-20-03-22.pdf', '2022-04-05 09:57:44', '2022-04-05 09:57:44', NULL, 'تركيب كاميرات محطات الماية', 'التنبيه بعمل ما يلزم نحو الرد على إستفسارات من الشركات (جيزة للأنظمة - إنتركوم - إنتراكت - NETC - ساميت) بخصوص المناقصة رقم 109-3572/501 جلسة يوم الأربعاء 2022/4/6 لتوريد وتركيب وتشغيل كاميرات مراقبة لمحطات المياه بمدن القناة الثلاث', 'security', NULL, '2022250', 'تحويل مستندات', 'done', '', NULL, NULL, ''), (56, '29-03-22', NULL, 'hospital_centers-2022539-29-03-22.pdf', '2022-04-21 07:29:51', '2022-04-05 10:28:40', NULL, 'تعليمات داخلية', 'الإلتزام بما جاء بكتاب إدارة الخدمات رقم 850 بتاريخ 2022/3/21 بضرورة عدم مخالفة القواعد والتعليمات المتبعة أثناء التردد على المستشفيات والمراكز الطبية التابعة للهيئة', 'hospital_centers', '2022539', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (57, '29-03-22', NULL, 'technical_office-2022539-29-03-22.pdf', '2022-04-21 07:50:33', '2022-04-05 10:29:52', NULL, 'تعليمات داخلية', 'الإلتزام بما جاء بكتاب إدارة الخدمات رقم 850 بتاريخ 2022/3/21 بضرورة عدم مخالفة القواعد والتعليمات المتبعة أثناء التردد على المستشفيات والمراكز الطبية التابعة للهيئة', 'technical_office', '2022539', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (58, '31-03-22', NULL, 'vtms-2022244-31-03-22.pdf', '2022-04-05 11:20:48', '2022-04-05 11:20:48', NULL, 'تركيبات محطات الرادار', 'موافاتنا بموعد قدوم الشركة الفرنسية لإستكمال أعمال التركيبات لعدد/ 13 محطة رادار وإنهاء التسليم لمنظومة (VTMS)', 'vtms', NULL, '2022244', 'إشاره كتابيه', 'progress', '', NULL, NULL, ''), (59, '31-03-22', NULL, 'vtms-2022521-31-03-22.pdf', '2022-04-05 11:23:54', '2022-04-05 11:23:54', NULL, 'توسيع طريق مرشدين', 'بشأن أعمال تطوير وتوسعة طريق المرشدين القطاع الرابع (جبل مريم - الدفرسوار) ودراسة التعارض مع كابلات هيئة قناة السويس.', 'vtms', NULL, '2022521', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (60, '28-03-22', NULL, 'power-2022531-28-03-22.pdf', '2022-04-05 11:25:20', '2022-04-05 11:25:20', NULL, 'فحص أجهزة', 'إيفاد مندوبينا لفحص وإستلام عدد/ 1 جهاز Lab DC Power Supply الخاص بأمر توريد رقم 55-952/1898 بتاريخ 2021/12/7 الصادر لشركة سينا للمشروعات الهندسية', 'power', '2022531', NULL, 'إشاره كتابيه', 'progress', '', NULL, NULL, ''), (62, '30-03-22', NULL, 'security-2022542-30-03-22.pdf', '2022-04-05 11:30:51', '2022-04-05 11:30:51', NULL, 'استلام تطوير الاستاد ابتدائى', 'الأمر الإدارى رقم 152 لسنة 2022 بخصوص الإستلام الإبتدائى لعملية تطوير وإنشاء استاد هيئة قناة السويس الجديد والحضور يوم الاربعاء من كل اسبوع ولحين نهو إجراءات اللجنة المذكورة', 'security', '2022542', NULL, 'أمر ادارى', 'done', '', NULL, NULL, ''), (63, '3-04-22', NULL, 'security-2022553-3-04-22.pdf', '2022-04-05 11:33:01', '2022-04-05 11:33:01', NULL, 'تطوير كبرى الفردان', 'اعمال تطوير انشاء كوبرى الفردان الحديد', 'security', '2022553', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (64, '30-03-22', NULL, 'vtms-2022548-30-03-22.pdf', '2022-04-05 11:34:52', '2022-04-05 11:34:52', NULL, 'قطع كابل فايبر', 'الإحاطة بأنه تم قطع كابل الفيبر بكل من القطاع الشمالى والقطاع الجنوبى', 'vtms', '2022548', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (65, '29-03-22', NULL, 'security-2022545-29-03-22.pdf', '2022-04-05 11:43:47', '2022-04-05 11:43:47', NULL, 'مواصفات كاميرات', 'وارد رئاسه 1551 بتاريخ 29/3/2022 بخصوص وضع المواصفات الفنيه لكاميرات مراقبة اجهزة تسجيل الحضور والانصراف من قبل ادارة التحركات وقيام ادارة الاتصالات ونظم المعلومات باتخاذ اجراءات الفحص والاستلام', 'security', '2022545', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (66, '22-03-22', NULL, 'hospital_centers-2022539-22-03-22.pdf', '2022-04-06 08:38:29', '2022-04-06 08:38:29', NULL, 'تامين مستشفيات', 'الإلتزام بما جاء بكتاب إدارة الخدمات رقم 850 بتاريخ 2022/3/21 بضرورة عدم مخالفة القواعد والتعليمات المتبعة أثناء التردد على المستشفيات والمراكز الطبية التابعة للهيئة', 'hospital_centers', '2022539', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (67, '09-03-22', NULL, 'vtms-20221213-09-03-22.pdf', '2022-04-18 08:25:53', '2022-04-06 08:40:18', NULL, 'مد كابلات فايبر', 'تنفيذ المسارات المطلوبة حتى يتسنى سحب ومد الكابلات الخاصة بالنظام عند الحاجه دون إتلاف المسطح الأخضر بمحطة الفردان', 'vtms', '20221213', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (68, '24-03-22', NULL, 'power-2022212-24-03-22.pdf', '2022-04-06 09:08:16', '2022-04-06 08:45:39', NULL, 'الطاقة المتجددة', 'تجهيز المواقع للبدء فى تركيب أنظمة الطاقة المتجددة(الرياح+ الشمس) بمحطات القطاع الشمالى وعمل مسار عبارة عن عدد/3 ماسوره 4 بوصة من غرفة الفيبر أسفل البرج إلى موقع برج التربينة', 'power', NULL, '2022212', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (69, '6-04-22', NULL, 'tawkitat-2022258-6-04-22.pdf', '2022-04-17 11:32:39', '2022-04-07 08:19:47', NULL, 'تطوير محطات', 'سرعة توفير التكييفات المذكورة حيث أن درجة حرارة الغرفة الحالية تخطت درجة حرارة التشغيل المناسبة لأجهزة الكنترول والبطاريات الخاصة بمنظومة التغذية الكهربية لمحطة رادار شرق الفردان', 'tawkitat', NULL, '2022258', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (70, '4-04-22', NULL, 'vtms-2022252-4-04-22.pdf', '2022-04-18 08:56:02', '2022-04-07 08:22:13', NULL, 'تطوير محطة الدفرسوار وكبريت', 'إقرار حالة برج الإشارة بمحطنى دفرسوار وكبريت وتحديد أعمال الصيانة المطلوبة', 'vtms', NULL, '2022252', 'إشاره كتابيه', 'progress', '', NULL, NULL, ''), (72, '03-04-22', NULL, '', '2022-04-12 09:05:14', '2022-04-07 08:27:04', NULL, 'امر التوريد رقم55- 887/1923', 'مخاطبه الشركه الموردة لسرعه توفير الاجهزة مشمول امر التوريد (عدد/16 جهاز منظم جهد) وذلك لتامين انظمة التوقيتات والارصاد ضد التغيرات فى الجهد', 'power', NULL, '2022247', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (73, '6-04-22', NULL, 'tawkitat-2022571-6-04-22.pdf', '2022-04-17 11:14:18', '2022-04-07 08:34:25', NULL, 'تقرير عرض على الرئاسة', 'تقرير للعرض على السيد/ مدير ادارة الرئاسه برقم وارد1671 بتاريخ 5/4/2022 لمرور على المحطات البحريه بقطاع بورسعيد الجونه -الرسوه- راس العش- التينه-الكاب- القنطره', 'tawkitat', '2022571', NULL, 'تقرير', 'done', '', NULL, NULL, ''), (75, '5-04-22', NULL, 'Electorinc Archive-561-5-04-22.pdf', '2022-04-07 08:45:40', '2022-04-07 08:45:40', NULL, 'تشكيل لجنة', 'امر ادارى بتشكل لجنة للدراسة والبت فى عطاءات المناقصة المحدودة رقم 108-3562/1568 لتوريد نظام أرشيف إلكترونى مطلوب لإدارة التحركات والمحدد لها جلسة يوم 2022/2/7', 'Electorinc Archive', '561', NULL, 'أمر ادارى', 'done', '', NULL, NULL, ''), (76, '5-04-22', NULL, 'power-2022559-5-04-22.pdf', '2022-04-07 10:28:49', '2022-04-07 10:28:04', NULL, 'صيانة تكييف راس العش', 'خطاب لشركة القناه للانشاءات البحرية لسرعه عمل اللازم نحو صيانه التكييف الخاص بشلتر برج الرادار بمحطة راس العش وكذا نظام الاضاءة التحذيرية واخطارنا فور نهو الاعمال المطلوبه', 'power', '2022559', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (77, '5-04-22', NULL, 'vtms-2022562-5-04-22.pdf', '2022-04-07 10:30:43', '2022-04-07 10:30:43', NULL, 'غرف كابلات المحطات المكشوفة', 'مراجعة وإنهاء وعمل اللازم نحو غرف الكابلات المكشوفة بجميع محطات القطاع الشمالى', 'vtms', '2022562', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (78, '5-04-22', NULL, 'technical_office-2022566-5-04-22.pdf', '2022-04-07 11:29:07', '2022-04-07 11:28:11', NULL, 'سيارة مجهزة للنقل', 'تواجد عدد/1 سياره نقل مجهزة بسلم هيدروليكى بمشتملاتها بقسم المراقبة الالكترونيه بالاسماعيليه للتامين عليها', 'technical_office', '2022566', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (80, '5-04-22', NULL, 'Maintenance-20221901-5-04-22.pdf', '2022-04-10 11:16:24', '2022-04-10 11:16:24', NULL, 'صيانة طابعة', 'إصلاح عدد/ 1 طابعة Canon LBP7210cdn رقم جرد 29199 والخاصة بالقسم المالي', 'Maintenance', '20221901', NULL, 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (81, '3-04-22', NULL, 'power-2022247-3-04-22.pdf', '2022-04-13 10:22:03', '2022-04-13 10:21:24', NULL, 'توفير الاجهزة مشمول امر التوريد', 'مخاطبه الشركه الموردة لسرعه توفير الاجهزة مشمول امر التوريد (عدد/16 جهاز منظم جهد) وذلك لتامين انظمة التوقيتات والارصاد ضد التغيرات فى الجهد', 'power', NULL, '2022247', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (82, '17-07-2019', NULL, 'radars-3363-17-07-2019.pdf', '2022-04-21 07:31:33', '2022-04-13 11:50:39', NULL, 'أمر توريد زيوت محطات', 'أمر توريد 26-927/213 بخصوص توفير زيوت جير بوكس للهوائيات', 'radars', '3363', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (83, '12-07-2016', NULL, 'radars-443-ج-12-07-2016.pdf', '2022-04-21 07:38:01', '2022-04-13 11:57:20', NULL, 'اشارة المجلس الوطنى ملحق الاتفاق', 'اشارة تبعا لاوامر التوريد لاحلال واستبدال الماجنترون واعادة المعايرة ل PFP', 'radars', NULL, '443-ج', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (84, '5-04-2018', NULL, 'radars-1074-5-04-2018.pdf', '2022-04-21 07:39:02', '2022-04-13 11:59:16', NULL, 'أمر توريد محطة القنطرة', 'أمر توريد لمحطة القنطرة', 'radars', '1074', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (85, '12-04-22', NULL, '', '2022-04-20 12:11:20', '2022-04-13 12:07:34', 'يجب أن تقوم الشركة المكلف لها رسميا بتحديث مشروع الـ VTMS بعمل دراسة ميدانيا للتغطية الرادارية للقناة الجديدة لتحدد عدد و أحداثيات', 'رؤية مستقبلية', 'عدم إمكانية الشبكة الرادارية الحالية من عند تغطية قناة السويس الجديدة من 65 حتي 90 كم بسبب إرتفاعات التلال الردم علي ضفتي قناة السويس و قد تصل إرتفاعها إلي منسوب 40 متر', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (86, '12-04-22', NULL, '', '2022-04-20 12:11:39', '2022-04-13 12:18:40', 'من المحتمل تكون تلال ناتج الردم علي ضفتي القناة الناتجة من الحفر و التوسعة بالقطاع الجنوبي، مما ينتج عنه مناطق عمياء راداريا ، مثلما مع حدث من حفر قناة السويس الجديدة و الإضطرار للإحتياج إلي تركيب محطات رادار جديدة.', 'رؤية مستقبلية', 'رفع كفاءة التغطية الرادارية للمنطقة الجنوبية للقناة بعد التفريعة الجديدة التي جاري تنفيذها من ترقيم 122 كم إلي 162 كم', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, NULL, ''), (88, '4-04-22', NULL, 'vtms-2022251-4-04-22.pdf', '2022-04-17 09:54:55', '2022-04-17 09:54:55', NULL, 'صدأ بالبرج', 'التنبيه بوجود صدأ وتآكل شديد بقواعد الإضاءة التحذيرية المثبتة أعلى بلكونة الكاميرا الملاحية أعلى برج الإشارة بمحطة القنطرة', 'vtms', NULL, '2022251', 'إشاره كتابيه', 'done', '', NULL, NULL, ''), (89, '07-04-22', NULL, 'security-2022572-07-04-22.pdf', '2022-04-19 11:09:28', '2022-04-19 11:09:28', NULL, 'تركيب كاميرات مستشفى', 'بخصوص توريد وتركيب وتشغيل منظومة مراقبة للمراكز الطبيه ببورسعيد والسويس وللموافقة على توفير عدد/ 29 كاميرا Outdoor وعدد/21 كاميرا indoor', 'security', '2022572', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (90, '11-04-22', NULL, 'security-20221065-11-04-22.pdf', '2022-04-19 11:21:14', '2022-04-19 11:21:14', NULL, 'تركيب كاميرات', 'بخصوص الموافقة\\ على توفير عدد /21 كاميرا', 'security', NULL, '20221065', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (91, '11-04-22', NULL, 'security-2022267-11-04-22.pdf', '2022-04-21 10:24:59', '2022-04-19 11:22:43', NULL, 'تركيب كاميرات', 'الموافقة على توفير 29 كاميراout door ماركه hikvision وعدد 21 كاميرا in doorمن المتوافر بالسوق المحلى', 'security', NULL, '2022267', 'إشاره كتابيه', 'done', '2022572', 1, NULL, ''), (92, '12-04-22', NULL, 'vtms-2022289-12-04-22.pdf', '2022-04-19 11:26:01', '2022-04-19 11:24:33', NULL, 'تركيب كاميرات', 'سرعة مد كابل نحاس شعر 2*10مم2 من أقرب لوحة توزيع إلى داخل غرفة التحكم الموجودة ببوابة إدارة الاتصالات ونظم المعلومات على أن يكون المصدر مؤمن بمولدات الطوارى', 'vtms', NULL, '2022289', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (93, '11-04-22', NULL, 'technical_office-2022589-11-04-22.pdf', '2022-04-19 12:24:29', '2022-04-19 11:30:56', NULL, 'توفير مواد خارج جدول', 'المهمات التى يمكن شرائها مباشرتاً بمعرفة الجهة الطالبة دون الحاجه لاعتماد اذن طلب المواد بخاتم خارج الجدول التموينى من المخزن العام او المخازن الفرعية', 'technical_office', '2022589', NULL, 'إشاره كتابيه', 'done', '2022145', NULL, NULL, ''), (94, '12-04-22', NULL, 'tawkitat-2022593-12-04-22.pdf', '2022-04-19 12:25:58', '2022-04-19 11:37:55', NULL, 'تشكيل لجنة', 'التنبيه على السادة المذكورين اعضاء ممارسة تركيب نظام مكافحة الحريق لتامين غرفة الراكات بسنتر التوقيتات بالحضور الى ادارة التموين يوم الاربعاء الموافق 13/4/2022 الساعة العاشرة بمكتب السيد المهندس/ رئيس اللجنه لدراسة العروض الواردة بالممارسه', 'tawkitat', '2022593', NULL, 'إشاره كتابيه', 'done', '2022145', NULL, NULL, ''), (95, '13-04-22', NULL, 'security-2022282-13-04-22.pdf', '2022-04-19 11:42:02', '2022-04-19 11:42:02', NULL, 'استلام ابتدائى', 'موافاتنا باسماء مندوبين الاستلام الابتدائى للانظمه المطلوبه لعملية تطوير المركز الثقافى (النادى الاجتماعى)', 'security', NULL, '2022282', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (96, '19-04-22', NULL, 'vtms-2022611-19-04-22.pdf', '2022-04-19 11:46:10', '2022-04-19 11:46:10', NULL, 'استعجال أمر توريد', 'بالاحالة لامر توريد رقم 109-442/1056 في 1/2/2021 و المعدل برقم 3307 في 18/5/2021 و 6522 في 14/9/2021 الصادر لصالح شركة انظمة الاتصالات و المعلومات و التوريدات CISS', 'vtms', '2022611', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (97, '18-04-22', NULL, 'security-2022295-18-04-22.pdf', '2022-04-19 12:18:10', '2022-04-19 11:55:51', NULL, 'كاميرا مراقبة للبصمة', 'بخصوص توفير كاميرات مراقبة خاصة باجهزة البصمة بمواقع الهيئة بمدن القتاة الثلاثة', 'security', NULL, '2022295', 'إشاره كتابيه', 'done', '2022545', NULL, NULL, ''), (98, '7-03-22', NULL, 'tawkitat-2022145-7-03-22.pdf', '2022-04-19 12:26:37', '2022-04-19 11:57:22', NULL, 'تركيب اجهزة اطفاء بالسنتر', 'تركيب اجهزة اطفاء تلقائى لتامين غرفة الراكات بسنتر التوقيتات والارصادر بقسم المراقبة الالكترونية', 'tawkitat', NULL, '2022145', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (99, '30-03-22', NULL, 'radars-2022545-30-03-22.pdf', '2022-04-21 10:33:06', '2022-04-19 12:00:28', NULL, 'ماكينة بصمة', 'وارد رئاسه 1551 بتاريخ 29/3/2022 بخصوص وضع المواصفات الفنيه لكاميرات مراقبة اجهزة تسجيل الحضور والانصراف من قبل ادارة التحركات وقيام ادارة الاتصالات ونظم المعلومات باتخاذ اجراءات الفحص والاستلام', 'radars', '2022545', NULL, 'مذكرة فريق', 'progress', NULL, NULL, '22-04-22', ''), (100, '8-02-22', NULL, 'radars-8-02-22.pdf', '2022-04-21 11:40:01', '2022-04-21 11:40:01', 'ليست اشارة', 'أعطال', 'بيان بأعطال محطات الرادار حتي 8 /2/2022', 'radars', NULL, NULL, 'تقرير', 'done', NULL, NULL, '28-04-22', ''), (101, '13-09-21', NULL, 'power-1911-55-384-13-09-21.pdf', '2022-04-24 12:19:14', '2022-04-24 11:37:48', NULL, 'أوامر التوريد', 'توريد جهاز ups 3kva', 'power', '1911-55-384', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (102, '27-12-20', NULL, 'power-912-1860-55-27-12-20.pdf', '2022-04-24 12:20:53', '2022-04-24 11:45:20', NULL, 'أوامر التوريد', 'توريد وتركيب 18 كارتة شبكة لزوم ups', 'power', '912-1860-55', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (103, '6-3-22', NULL, 'power-1428-1890-55-6-3-22.pdf', '2022-04-24 12:26:44', '2022-04-24 11:49:10', NULL, 'أوامر التوريد', 'تركيب ونوريد عدد/1 مجموعة توليد كهرباء قدرة 30ك. ف.أ', 'power', '1428-1890-55', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (104, '29-02-22', NULL, 'power-1360-328019-29-02-22.pdf', '2022-04-24 12:24:20', '2022-04-24 11:50:46', NULL, 'أوامر التوريد', 'توريد بطاريات اجهزة ups', 'power', '1360-328019', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (105, '8-08-21', NULL, 'power-142-1887-55-8-08-21.pdf', '2022-04-24 12:25:41', '2022-04-24 11:53:20', NULL, 'أوامر التوريد', 'توريد وتركيب جهاز ups 10kva sts', 'power', '142-1887-55', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (106, '3-06-21', NULL, 'power-1749-1874-55-3-06-21.pdf', '2022-04-24 12:27:54', '2022-04-24 12:01:13', NULL, 'أوامر التوريد', 'توريد محول5 ك.ف.ا ومحول عزل', 'power', '1749-1874-55', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (107, '6-10-20', NULL, 'power-1494-6-10-20.pdf', '2022-04-24 12:02:54', '2022-04-24 12:02:54', NULL, 'أوامر التوريد', 'مهمات كهربية', 'power', '1494', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (108, '29-12-20', NULL, 'power-2229-29-12-20.pdf', '2022-04-24 12:03:38', '2022-04-24 12:03:38', NULL, 'أوامر التوريد', 'جهاز stabilizer', 'power', '2229', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (109, '30-5-21', NULL, 'power-1565-1822-55-30-5-21.pdf', '2022-04-24 12:05:50', '2022-04-24 12:05:50', NULL, 'أوامر التوريد', 'توريد جهاز ups', 'power', '1565-1822-55', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (110, '30-11-21', NULL, 'power-3800-30-11-21.pdf', '2022-04-24 12:06:23', '2022-04-24 12:06:23', NULL, 'أوامر التوريد', 'جهاز stabilizer', 'power', '3800', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (111, '26-05-21', NULL, 'power-1959-26-05-21.pdf', '2022-04-24 12:08:00', '2022-04-24 12:08:00', NULL, 'أوامر التوريد', 'توريد قطع غيار كهربائية', 'power', '1959', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (112, '26-05-21', NULL, 'power-1959-26-05-21.pdf', '2022-04-24 12:11:11', '2022-04-24 12:11:11', NULL, 'أوامر التوريد', 'توريد وتركيب ups s11 3kva avr, sts 40a s33, ups s33 10 kva', 'power', '1959', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (113, '26-07-21', NULL, 'power-1272-26-07-21.pdf', '2022-04-24 12:12:52', '2022-04-24 12:12:52', NULL, 'أوامر التوريد', 'توريد و تركيب ups 3kva', 'power', '1272', NULL, 'أمر توريد', 'done', NULL, NULL, NULL, ''), (114, '18-04-22', NULL, 'security-611-18-04-22.PDF', '2022-05-11 07:59:47', '2022-05-11 07:59:47', NULL, 'أوامر التوريد', 'بالاحالة لامر توريد رقم 109-442/1056 في 1/2/2021 و المعدل برقم 3307 في 18/5/2021 و 6522 في 14/9/2021 الصادر لصالح شركة انظمة الاتصالات و المعلومات و التوريدات CISS', 'security', '611', NULL, 'اشارة كتابية', 'done', NULL, NULL, NULL, ''), (115, '24-04-22', NULL, 'security-635-24-04-22.pdf', '2022-05-11 08:02:25', '2022-05-11 08:02:25', NULL, 'شئون قانونية', 'طلب تفريغ كاميرات المراقبة لقسم الطوارئ بمستشفى نمرة 6', 'security', '635', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (116, '26-04-22', NULL, 'technical_office-2022643-26-04-22.pdf', '2022-05-11 08:05:38', '2022-05-11 08:05:12', NULL, 'تفرير الجهاز المركزى', 'ملاحظات الجهاز المركزى للمحاسابات عن الفحص المحدود للخطة الإستثمارية والمشروعات وأعمال صيانة الأصول بهيئة قناة السويس خلال النصف الأول من العام المالى 2021/2022', 'technical_office', '2022643', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (117, '26-04-22', NULL, 'tawkitat-2022315-26-04-22.pdf', '2022-05-11 08:08:00', '2022-05-11 08:08:00', NULL, 'تثبيت سيارة', 'تثبيت السيارة الفان رقم ط هــ و 7479 للعمل على مشروع التوقيتات والأرصاد المتكامل الخاص بتوقيتات السفن', 'tawkitat', NULL, '2022315', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (118, '27-04-22', NULL, 'security-2022648-27-04-22.pdf', '2022-05-11 08:11:00', '2022-05-11 08:11:00', NULL, 'أوامر التوريد', 'امر توريد رقم 109-517/1720 لتوريد 50 كاميرا مراقبة', 'security', '2022648', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (119, '27-04-22', NULL, 'security-2022655-27-04-22.pdf', '2022-05-11 08:15:39', '2022-05-11 08:15:39', NULL, 'تقرر إجراء المعاينات', 'الإحاطة بأنه تقرر إجراء المعاينات المطلوب تنفيذها بطلب أسعار بمظاريف مغلقة جلسة يوم الإثنين الموافق 2022/5/16 لتوريد منظومة مراقبة بالكاميرات لقاعة الاحتفالات بمنطقة نمره 6', 'security', '2022655', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (120, '18-04-22', NULL, 'security-2022295-18-04-22.pdf', '2022-05-11 08:18:15', '2022-05-11 08:18:15', NULL, 'توفير كاميرات مراقبة', 'بخصوص توفير كاميرات مراقبة خاصة باجهزة البصمة بمواقع الهيئة بمدن القتاة الثلاثة', 'security', NULL, '2022295', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (121, '23-03-22', NULL, 'power-2022199-23-03-22.pdf', '2022-05-11 08:19:28', '2022-05-11 08:19:28', NULL, 'أوامر التوريد', 'مخاطبة شركة دلتا للتجارة والتوزيع لسرعة توريد قطع غيار مولدات المراقبة الإلكترونية', 'power', NULL, '2022199', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (122, '28-04-22', NULL, 'security-2022665-28-04-22.pdf', '2022-05-11 08:21:27', '2022-05-11 08:21:27', NULL, 'إستكمال أعمال التركيب والتشغيل لنظام المراقبة بالكاميرات', 'سرعة إتخاذ الإجراءات اللازمة لتوصيل كابل الكهرباء لغرفة التحكم حتى تتمكن الشركة من إستكمال أعمال التركيب والتشغيل لنظام المراقبة بالكاميرات لمبنى إدارة الإتصالات ونظم المعلومات ومركز الأبحاث', 'security', '2022665', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (123, '28-04-22', NULL, 'security-2022326-28-04-22.pdf', '2022-05-11 08:23:25', '2022-05-11 08:23:25', NULL, 'بتفريغ الكاميرات بقسم الطوارىء', 'طلب الإدارة القانونية بتفريغ الكاميرات بقسم الطوارىء بمستشفى نمرة 6 وطلب نسخة من التسجيلات فى التوقيت من الساعة الثالثة عصراً حتى السادسة مساءاً عن يوم الجمعة الموافق 2022/3/18 فإنه يرجى العلم بأن فترة تسجيل كاميرات مستشفى نمرة 6 هى لمدة 15 يوم طبقاً لمتطلبات الهيئة', 'security', NULL, '2022326', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (124, '28-04-22', NULL, 'power-2022328-28-04-22.pdf', '2022-05-11 08:24:52', '2022-05-11 08:24:52', NULL, 'خطاب شركة الجيزة للأنظمة', 'خطاب شركة الجيزة للأنظمة بتاريخ 26/4/2022 لمتابعة سير الأعمال طبقاً للمخطط المتفق علية ويرجى العلم بإفادة الشركة إستعدادها لإجراء إختبارات التسليم الإبتدائى لموقع التبينة وبخصوص عدم إستقرار التيار الكهربى بالمحطات', 'power', NULL, '2022328', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (125, '28-04-22', NULL, 'tawkitat-2022329-28-04-22.pdf', '2022-05-11 08:26:46', '2022-05-11 08:26:46', NULL, 'موقف تأخير شركة جيزة للأنظمة', 'بخصوص الدراسة والإفادة عن موقف تأخير شركة جيزة للأنظمة فى توريد وتركيب مضمون أمر التوريد رقم26- 367/814 الصادر لها بتاريخ 17/9/2015', 'tawkitat', NULL, '2022329', 'إشاره كتابيه', 'waiting', NULL, NULL, '15-05-22', ''), (126, '08-05-22', NULL, 'vtms-2022334-08-05-22.pdf', '2022-05-11 08:58:49', '2022-05-11 08:37:26', NULL, 'توريد وتركيب كاميرات المراقبة', 'الرد على الاستفسارات فيما يخص توريد وتركيب كاميرات المراقبة وكافة ملحقاتها لمحطات المياه بمدن القناة الثلاث', 'vtms', NULL, '2022334', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (127, '08-05-22', NULL, 'technical_office-2022677-08-05-22.pdf', '2022-05-11 08:38:47', '2022-05-11 08:38:47', NULL, 'تحديد احتياجات', 'تحديد احتياجات الادارة وشركات الهيئة التابعه لها لاى من قطع الاراضى السابق تخصيصها للهيئة الرد فى خلال شهر من تاريخه', 'technical_office', '2022677', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (128, '08-08-22', NULL, 'power-2022678-08-08-22.pdf', '2022-05-11 08:40:32', '2022-05-11 08:40:32', NULL, 'اعمال التكسير ومد الكابل', 'الموافقة على البدء فى اعمال التكسير ومد الكابل من اقرب لوحة توزيع الى داخل غرفة التحكم الموجوده ببوابه الاتصالات حتى نتمكن من نهو الاعمال', 'power', '2022678', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (129, '09-05-22', NULL, 'power-2022681-09-05-22.pdf', '2022-05-11 08:41:52', '2022-05-11 08:41:52', NULL, 'اصلاح اجهزة التكييف', 'بخصوص اصلاح اجهزة التكييف بمحطات رأس العش والبلاح', 'power', '2022681', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (130, '08-05-22', NULL, 'security-2022332-08-05-22.pdf', '2022-05-11 08:44:57', '2022-05-11 08:44:57', NULL, 'توريد وتركيب منظومة مراقبة بالكاميرات', 'مخاطبة شركة CISS المنفذة لمشروع توريد وتركيب منظومة مراقبة بالكاميرات لإدارة الإتصالات ومركز الأبحاث لرفع عدد/ 4 كاميرات من صالة القناة بمبنى الأبحاث فى أسرع وقت', 'security', NULL, '2022332', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (131, '08-05-22', NULL, 'security-2022673-08-05-22.pdf', '2022-05-11 08:57:27', '2022-05-11 08:52:24', NULL, 'توريد وتركيب نظام مكافحة الحريق', 'بخصوص توريد وتركيب نظام مكافحة الحريق المطلوب لتامين غرفة الراكات بسنتر التوقيتات والارصاد', 'security', '2022673', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (132, '16-05-22', NULL, 'tawkitat-2022361-16-05-22.pdf', '2022-05-18 07:15:01', '2022-05-18 07:15:01', NULL, 'استخراج تصاريح', 'استخراج تصاريح مؤقته لمندوبى شركة جيزه للانظمة لدخول المحطات البحرية يوم الثلاثاء الموافق 17/5/2022 لمدة 6 اشهر وذلك لاستكمال اعمال مشروع لوحات التوقيتات والارصاد', 'tawkitat', NULL, '2022361', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (133, '16-05-22', NULL, 'security-2022709-16-05-22.pdf', '2022-05-18 07:18:51', '2022-05-18 07:18:51', NULL, 'موافاتنا بخطط الصيانة', 'موافاتنا بخطط الصيانة الدورية والصيانة الطارئة لانظمة المراقبة بالكاميرات', 'security', '2022709', NULL, 'إشاره كتابيه', 'paused', NULL, NULL, NULL, ''), (134, '16-05-22', NULL, 'vtms-2022708-16-05-22.pdf', '2022-05-18 07:22:04', '2022-05-18 07:22:04', NULL, 'عرض شركة ملاحة', 'فاكس من مكتب محمد أحمد أبوذكرى للمقاولات والتوكيلات بخصوص عرض التعاون والشراكة بين هيئة قناة السويس و شركة (ZENI LITE Buoy.LTD) اليابانية لتصميم وتصنيع المساعدات الملاحية من (شمندورات/بيكونات/أبراج ملاحية) للسوق المحلية - الشرق الأوسط وشمال إفريقيا', 'vtms', '2022708', NULL, 'إشاره كتابيه', 'start', NULL, NULL, '28-05-22', ''), (135, '18-05-22', NULL, 'radars-2022715-18-05-22.pdf', '2022-05-24 07:34:30', '2022-05-24 07:32:55', NULL, 'توريد وتركيب)', 'الإحاطة بأنه لم يسبق للشئون الفنية طلب (توريد وتركيب) بيتافورة حمولة (1 طن) من قبل', 'radars', '2022715', NULL, 'إشاره كتابيه', 'done', '2022367', NULL, NULL, 'radars-2022715-18-05-22.apdf'), (136, '17-05-22', NULL, 'radars-2022367-17-05-22.pdf', '2022-05-24 07:36:15', '2022-05-24 07:36:15', NULL, 'توريد وتركيب بيتافورة حمولة 1 طن', 'توريد وتركيب بيتافورة حمولة 1 طن بالرصيف البحرى لمحطة رادار شرق الفردان بترقيم كم 63 شرق فى أقرب وقت ممكن', 'radars', NULL, '2022367', 'إشاره كتابيه', 'done', '2022697', NULL, NULL, 'radars-2022367-17-05-22.apdf'), (137, '12-05-22', NULL, 'radars-2022697-12-05-22.pdf', '2022-05-24 07:37:21', '2022-05-24 07:37:21', NULL, 'المناقشات الفنية', 'بخصوص المناقشات الفنية مع السادة أعضاء اللجنة فيما يخص معدلات أمان السيرة 8/1 نقل ومميزاتها عن التروسيكل من حيث قوة الفرامل ودقة التوجية', 'radars', '2022697', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (138, '16-06-22', NULL, 'security-2022883-16-06-22.pdf', '2022-06-19 09:21:37', '2022-06-19 09:21:08', NULL, 'اعمال هندسية استشارية', 'اعمال هندسية استشارية لمبنى هيئة قناة السويس بالعاصمة الادارية الجديدة الاستشارى / جماعة المهندسين الاستشارين', 'security', '2022883', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (139, '08-06-22', NULL, 'security-2022840-08-06-22.pdf', '2022-06-19 09:46:24', '2022-06-19 09:26:13', NULL, 'توريد وتركيب نظام مكافحة الحريق', 'الرسومات والمخططات المرسله من شركة الهدى بخصوص توريد وتركيب نظام مكافحة الحريق( FM-200) المطلوب لتأمين غرفة الراكات بسنتر التوقيتات والإرصاد للاعتماد', 'security', '2022840', NULL, 'إشاره كتابيه', 'done', '2022747', NULL, NULL, 'security-2022840-08-06-22.apdf'), (140, '24-05-22', NULL, 'security-2022747-24-05-22.pdf', '2022-06-19 09:47:18', '2022-06-19 09:28:36', NULL, 'توريد وتركيب نظام مكافحه الحريق', 'امر توريد رقم 28-1811/1599 لصالح شركه الهدى لتوريد وتركيب نظام مكافحه الحريق fm200 لتامين غرفة الراكات', 'security', '2022747', NULL, 'إشاره كتابيه', 'done', '2022145', NULL, NULL, 'security-2022747-24-05-22.apdf'), (141, '07-03-22', NULL, 'security-2022145-07-03-22.pdf', '2022-06-19 09:34:15', '2022-06-19 09:34:15', NULL, 'تركيب اجهزة اطفاء تلقائى لتامين', 'تركيب اجهزة اطفاء تلقائى لتامين غرفة الراكات بسنتر التوقيتات والارصادر بقسم المراقبة الالكترونية', 'security', NULL, '2022145', 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (142, '13-06-22', NULL, 'security-2022860-13-06-22.pdf', '2022-06-19 09:45:12', '2022-06-19 09:44:11', NULL, 'إعتماد الرسومات التصميمية لنظام إطفاء الحريق', 'اشارة للتموين بمراجعة وإعتماد الرسومات التصميمية لنظام إطفاء الحريق لغرفة الراكات بسنتر التوقيتات والأرصاد المقدمة من الشركة و لا توجد عليها أى ملاحظات', 'security', '2022860', NULL, 'إشاره كتابيه', 'done', '2022840', NULL, NULL, 'security-2022860-13-06-22.apdf'), (143, '13-06-22', NULL, 'security-2022858-13-06-22.pdf', '2022-06-19 09:50:38', '2022-06-19 09:50:38', NULL, 'انشاء بنيه تحتيه للتامين', 'عملية / انشاء مبنى الجراحة والطوارئ الجديد بمستشفى نمرة 6 بالاسماعيلية', 'security', '2022858', NULL, 'إشاره كتابيه', 'done', NULL, NULL, NULL, ''), (144, '16-06-22', NULL, 'security-2022466-16-06-22.pdf', '2022-06-19 09:53:58', '2022-06-19 09:53:58', NULL, 'فك وازاله عدد/5 سارى وماعليها من كاميرات وعدد/2 راك', 'اشاره رقم 1545 لمخاطبه شركه الحاسبات المتقدمه ACT لممارستها فى فك وازاله عدد/5 سارى وماعليها من كاميرات وعدد/2 راك الخاص بتامين مستشفى نمره 6', 'security', NULL, '2022466', 'إشاره كتابيه', 'done', NULL, NULL, NULL, 'security-2022466-16-06-22.apdf'), (145, '16-06-22', NULL, 'security-2022467-16-06-22.pdf', '2022-06-19 10:22:06', '2022-06-19 10:22:06', NULL, 'اشارة رقم 1548 بخصوص سرعة فك وازاله عدد/5 سارى', 'اشارة رقم 1548 بخصوص سرعة فك وازاله عدد/5 سارى وعدد/2 راك الخاص بكاميرات المراقبة بمستشفى نمره 6 بالكروكى المرفق بالاشارة', 'security', NULL, '2022467', NULL, 'done', '2022858', NULL, NULL, 'security-2022467-16-06-22.apdf'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `password_resets` -- INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES ('<EMAIL>', <PASSWORD>', '2022-03-10 06:53:25'), ('<EMAIL>', <PASSWORD>', '2022-03-22 07:05:34'); -- -------------------------------------------------------- -- -- Table structure for table `power_stations` -- DROP TABLE IF EXISTS `power_stations`; CREATE TABLE IF NOT EXISTS `power_stations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `station_name` varchar(100) DEFAULT NULL, `UpsSttp` varchar(100) DEFAULT NULL, `UpsRadar` varchar(100) DEFAULT NULL, `ContractUPS` varchar(100) DEFAULT NULL, `UpslInstallation` varchar(100) DEFAULT NULL, `PreDeliveryUPS` varchar(100) DEFAULT NULL, `FinalDeliveryUPS` varchar(100) DEFAULT NULL, `StatusRatioRadar` varchar(50) DEFAULT NULL, `StatusRatioSTTB` varchar(50) DEFAULT NULL, `LastMessage` varchar(100) DEFAULT NULL, `Desil` varchar(100) DEFAULT NULL, `DeisilInstallation` varchar(45) DEFAULT NULL, `ContractDesil` varchar(100) DEFAULT NULL, `PreDeliveryDesil` varchar(100) DEFAULT NULL, `FinalDeliveryDesil` varchar(100) DEFAULT NULL, `ATS1Transit` varchar(100) DEFAULT NULL, `IsolationTransformer` varchar(100) DEFAULT NULL, `ATS2VTMS` varchar(100) DEFAULT NULL, `AvrRadar` varchar(100) DEFAULT NULL, `SurgeRadar` varchar(100) DEFAULT NULL, `TawkitatSurgeProtect` varchar(100) DEFAULT NULL, `RadarSurgeProtect` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `power_stations` -- INSERT INTO `power_stations` (`id`, `station_name`, `UpsSttp`, `UpsRadar`, `ContractUPS`, `UpslInstallation`, `PreDeliveryUPS`, `FinalDeliveryUPS`, `StatusRatioRadar`, `StatusRatioSTTB`, `LastMessage`, `Desil`, `DeisilInstallation`, `ContractDesil`, `PreDeliveryDesil`, `FinalDeliveryDesil`, `ATS1Transit`, `IsolationTransformer`, `ATS2VTMS`, `AvrRadar`, `SurgeRadar`, `TawkitatSurgeProtect`, `RadarSurgeProtect`) VALUES (1, 'الجونة', '√', '-', '−', '−', '-', '-', NULL, '-', '-', '30 KVA', '2014', '2019', 'لم يتم', '2016', 'لا يوجد', '2022', '2019', 'لايوجد', 'لايوجد', 'قيد التوريد', ''), (2, 'القبة', '-', '√', '−', '−', '-', '-', NULL, '−', '−', '100 KVA', '2014', '2019', 'لم يتم', '2016', 'لايوجد', '2022', '2019', 'لايوجد', 'تم الاستلام وجارى التركيب)', 'لم يتم', 'لم يتم'), (3, 'الرسوة', '√', '-', '√', '√', '√', '√', NULL, '√', '-', 'قيد التوريد (امر توريد بتاريخ 3-3-2022)مدة التوريد 5 شهور)', '−', '−', '−', '−', 'لايوجد', 'تم استلامه ولكن يركب بعد توريد المولد', 'جاى التوريد', 'لايوجد', 'لايوجد', 'جارى التوريد', 'جارى التركيب'), (4, 'راس العش', '√', '√', '−', '−', '-', '-', 'لدى شركة جيت للإصلاح', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'تم التركيب', '2015', '2021', '2022', 'جارى التوريد', 'جارى التركيب'), (5, 'التينة', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2015', '2020', 'جارى التركيب', '2015', '2021', '2022', 'تم التركيب', 'جارى التركيب'), (6, 'الكاب', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2012', '2012', 'لم يتم', '2013', '2020', 'تم التركيب', '2012', '2021', '2022', 'جارى التوريد', 'جارى التركيب'), (7, 'القنطرة', '√', '√', '−', '−', '-', '-', 'لدى شركة جيت للإصلاح', '−', '−', '(تم طلب تغيره في اللميزانية30 KVA', '1994', '1994', 'لم يتم', '1995', '2020', 'تم التركيب', '1994', '2021', '2021', 'جارى التوريد', 'جارى التركيب'), (8, 'البلاح', '√', '√', '−', '−', '-', '-', 'لدى شركة جيت للإصلاح', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'تم التركيب', '2015', '2021', '2021', 'جارى التوريد', 'جارى التركيب'), (9, 'الفردان', '√', '-', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'جارى التركيب', '2015', '−', '−', 'جارى التوريد', 'جارى التركيب'), (10, 'المارينا', '√', '-', '−', '−', '-', '-', '-', '−', '−', '−', '−', '−', 'لم يتم', '−', '2020', 'تم التركيب', '−', '−', '−', 'جارى التوريد', 'جارى التركيب'), (11, 'طوسون', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'تم التركيب', '2015', '2021', '2022', 'جارى التوريد', 'جارى التركيب'), (12, 'الدفرسوار', '√', '-', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'جارى التركيب', '2015', '−', '−', 'جارى التوريد', 'جارى التركيب'), (13, 'كبريت', '√', '-', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'جارى التركيب', '2015', '−', '−', 'جارى التوريد', 'جارى التركيب'), (14, 'جنيفة', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2012', '2012', 'لم يتم', '2013', '2020', 'تم التركيب', '2013', '2021', '2022', 'تم التركيب', 'جارى التركيب'), (15, 'الشلوفة', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2014', '2015', 'لم يتم', '2016', '2020', 'تم التركيب', '2015', '2021', '2021', 'جارى التوريد', 'جارى التركيب'), (16, 'بورتوفيق', '√', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '2012', '2012', 'لم يتم', '2013', 'لايوجد', 'تم التركيب', '2013', '2021', '2021', '−', '−'), (17, 'فنارة', '√', '√', '−', '−', '-', '-', 'لدى شركة جيت للإصلاح', '−', '−', '100 KVA', '2016', '2018', 'لم يتم', '2019', 'لايوجد', 'تم التركيب', '2018', '2021', '2021', 'لايوجد', 'لايوجد'), (18, 'شرق الفردان', '-', '√', '−', '−', '-', '-', '-', '−', '−', '100 KVA', '2016', '2018', 'لم يتم', '2019', 'لايوجد', 'تم التركيب', '2018', 'لايحتاج تم تريب نظام الطاقة المتجددة', 'جارى التركيب', 'لايوجد', 'لايوجد'), (19, 'الارسال', '-', '√', '−', '−', '-', '-', '-', '−', '−', '30 KVA', '1996 مطلوب تغييره', '1996', 'لم يتم', '1996', 'لايوجد', 'تم التركيب', '1996', '2021', '2022', 'لايوجد', 'لايوجد'), (20, 'بورفؤاد', '-', '√', '−', '−', '-', '-', '-', '−', '', '30 KVA', '2012', '2012', 'لم يتم', '2013', 'لايوجد', 'تم التركيب', '2012', '2022', '2021', 'لايوجد', 'لايوجد'); -- -------------------------------------------------------- -- -- Table structure for table `problemstate` -- DROP TABLE IF EXISTS `problemstate`; CREATE TABLE IF NOT EXISTS `problemstate` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `SubjectID` int(11) DEFAULT NULL, `SectionID` int(11) DEFAULT NULL, `ProblemID` int(11) DEFAULT NULL, `Description` char(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `problemstate` -- INSERT INTO `problemstate` (`ID`, `SubjectID`, `SectionID`, `ProblemID`, `Description`) VALUES (1, 1, 1, 1, 'عدد 2 محطة تعمل بنسبة 100% (طوسون - الشلوفة)'), (2, 1, 1, 2, 'عدد 5 محطات تعمل بنسبة 50% (بورفؤاد - الكاب - البلاح - الارسال - جنيفة )'), (3, 1, 1, 3, 'عدد 6 محطات رادار متوقفة لأسباب فنية (القبة - رأس العش - القنطرة - شرق الفردان - فنارة -بورتوفيق)'), (4, 2, 1, 1, 'عدم وجود دراسة رسمية للتغطية الردارية بالقناة الجدية'), (5, 3, 1, 1, 'تكون تلال ناتج الردم على ضفتى القناة الناتجة عن الحفر والتوسعة بالقطاع الجنوبى مما ينتج عنه مناطق عمياء راداريا مثلما حدث من حفر قناة السويس الجديدة واضطر الاحتياج الى تركيب محطات ردارية جديدة'), (6, 4, 1, 1, 'كثرة حركة السفن من المناطق المذكورة عاليه'), (7, 4, 1, 2, 'الرادارات الحديثة تتميز بتمييز الأهداف القريبة من بعضها ولكن يعيب عليها أن التغطية الرادارية لها قصيرة'), (8, 4, 1, 3, 'لا يوجد محطة احتياطية أو تعمل تغطية راداربة متكاملة مع محطة رادار الترسانة وبالتالي عند توقف الرادار لظروف طارئة يتوقف بالكامل تتبع السفن الكثيرة في هذه المنطقة'), (9, 5, 1, 1, 'برج محطة القبة - الكاب - القنطرة - الارسال - جنيفة أبراج متهالكة وعند صيانتها دوريا باستخدام الرمالة والمرشمة تشكل خطورة علىوصلات ال WAVE GUIDE وكابلات المعلومات بين الهوائى أعلى البرج وشلتر الأجهزة أسفل البرج'), (10, 5, 1, 2, 'برج الترسانة - بورفؤاد - شرق البحيرات بورتوفيق أبراج غير متهالكة نظرا لأنها مصنعة من الحديد المجلفن الغير قابل للصدأ لا تشكل خطورة على وصلات وكابلات الرادار'), (11, 6, 1, 1, 'عدم تحديد إجراءات إعادة طرح مناقصة لتوريد وتركيب المصاعد للحصول على اقل الأسعار'), (12, 7, 1, 1, 'يوجد بقطاع الرادار عدد/2 مهندس مكلفين بأعمال الصيانة والإصلاح والإجراءات الإدارية وذلك للحفاظ على الكفاءة التشغيلية لعدد/13 محطة رادار بطول القناة بالإضافة الى زيادة عدد مجطات الرادار مستقبلا في القطاع الجنوبى والقناة الجديدة وشرق التفريعة شمالا ، مما يبي'); -- -------------------------------------------------------- -- -- Table structure for table `radars` -- DROP TABLE IF EXISTS `radars`; CREATE TABLE IF NOT EXISTS `radars` ( `id` int(11) NOT NULL AUTO_INCREMENT, `station_name` varchar(200) DEFAULT NULL, `location` varchar(6) DEFAULT NULL, `photo` varchar(100) NOT NULL, `supply_date` varchar(120) DEFAULT NULL, `installation` varchar(100) DEFAULT NULL, `operation_date` varchar(100) DEFAULT NULL, `delivery` varchar(100) DEFAULT NULL, `status_of_tower` varchar(255) DEFAULT NULL, `LetterDate` varchar(255) DEFAULT NULL, `Remarks` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `radars` -- INSERT INTO `radars` (`id`, `station_name`, `location`, `photo`, `supply_date`, `installation`, `operation_date`, `delivery`, `status_of_tower`, `LetterDate`, `Remarks`, `created_at`, `updated_at`) VALUES (1, 'بورفؤاد', '0.5', '', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (2, 'القبة', '1.1', '', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (3, 'رأس العش', '14.3', '', '2017', 'فبراير 2020', NULL, 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (4, 'الكاب', '35.4', '', '2011', NULL, '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (5, 'القنطرة', '45.1', '', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (6, 'البلاح', '54.8', '', '2017', 'يوليو - أغسطس (2017)', 'يوليو - أغسطس (2017)', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (7, 'شرق الفردان', '62.9', '', '2017', 'فبراير 2020', NULL, 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (8, 'الارسال', '76.1', '', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (9, 'طوسون', '54', '', '2017', 'يوليو - أغسطس (2017)', 'يوليو - أغسطس (2017)', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (10, 'فنارة', '111.3', '1649591885.pdf', '2011', 'فبراير 2020', NULL, 'لم يتم عمل الإستلام الإبتدائي حتي الأن', 'إنشاء 2019 من الحديد المجلفن غير قابل للصدأ', 'أخر مخاطبة صادرة إلي الهيئة الإقتصادية و المشروعات بالمخابرات العامة \r\nبرقم 651/ ج بتاريخ 5/9/2021', NULL, NULL, NULL), (11, 'جنيفة', '134', '1649591481.pdf', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (12, 'الشلوفة', '146.1', '', '2017', 'يوليو - أغسطس (2017)', 'يوليو - أغسطس (2017)', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (13, 'بورتوفيق', '160.6', '', '2011', '(ابريل - مايو - يونيو )2015', '(ابريل - مايو - يونيو )2015', 'لم يتم عمل الإستلام الإبتدائي حتي الأن', NULL, NULL, NULL, NULL, NULL), (14, 'خارج ترسانة بورسعيد', NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (15, 'وشرق البحيرات', NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `sectionsubjects` -- DROP TABLE IF EXISTS `sectionsubjects`; CREATE TABLE IF NOT EXISTS `sectionsubjects` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `SectionID` int(11) DEFAULT NULL, `Subjects` char(255) DEFAULT NULL, `summary` char(255) DEFAULT NULL, `Objectives` char(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `sectionsubjects` -- INSERT INTO `sectionsubjects` (`ID`, `SectionID`, `Subjects`, `summary`, `Objectives`) VALUES (1, 1, 'الشبكة الردارية لمشروع ال VTMS (عدد /13 محطة رادار)', 'إصلاح الأعطال واستبدال بعض الوحدات طبقا لإجراءات جدول الصيانة الدورية والوقائية لمحطات الرادار من قبل الهيئة الاقتصادية للمشروعات بالمخابرات العامة', 'الاستلام (الابتدائى / النهائي ) للمشروع (في أقرب وقت)'), (2, 1, 'التغطية الردارية لقناة السوي للجديدة (من ترقيم 60 كم إلى 95 كم)', 'الشبكة الردارية الحالية عدم إمكانية التغطية لقناة السويس الجديدة بسبب ارتفاعات تلال الردم على ضفتى القناة التي تصل الى منسوب 40 متر', 'استكمال التغطية وتتبع السفن لمشوع ال VTMS'), (3, 1, 'التغطية الردارية للتفريعة الجديدة والتوسعة من الترقيم 122 كم ل 162 كم', 'عمل تغطية ردارية للتفريعة الجديدة بطول 10 كم', 'استكمال التغطية وتتبع السفن لمشوع ال VTMS'), (4, 1, 'التغطية الردارية لمنطقة ميناء شرق التفريعة', 'وجود محطة رادار وحيدة (محطة رادار الترسانة) لتغطية منطقة شمال القناة و منطقة االانتظار ببورسعيد و شمال التفريعة ومنطقة الانتظار الخاص بها', 'زيادة كفاءة التغطية الرادارية للمنطقة الشمالية للقناة'), (5, 1, 'صيانة عدد 9 أبراج رادار', 'تهالك أبراج الرادار', 'زيادة الكفاءة الفنية للأبراج المعدنية'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `mobile` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `mobile`) VALUES (10, '<NAME>', '<EMAIL>', NULL, 'hassnaa86', NULL, '2022-03-22 07:06:40', '2022-03-22 07:06:40', NULL), (11, '<NAME>', '<EMAIL>', NULL, 'hassnaa86', NULL, '2022-03-22 07:06:40', '2022-03-22 07:06:40', NULL); -- -------------------------------------------------------- -- -- Table structure for table `vtms_sections` -- DROP TABLE IF EXISTS `vtms_sections`; CREATE TABLE IF NOT EXISTS `vtms_sections` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `SectionName` char(100) CHARACTER SET utf8mb4 DEFAULT NULL, `SectionManagerName` char(100) CHARACTER SET utf8mb4 DEFAULT NULL, `RepresentativePerson` char(100) CHARACTER SET utf8mb4 DEFAULT NULL, `CountOfProjects` int(11) DEFAULT NULL, PRIMARY KEY (`ID`), UNIQUE KEY `ID_UNIQUE` (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1257; -- -- Dumping data for table `vtms_sections` -- INSERT INTO `vtms_sections` (`ID`, `SectionName`, `SectionManagerName`, `RepresentativePerson`, `CountOfProjects`) VALUES (1, 'قطاع الرادارات', 'دكتور مهندس أيمن موسى', 'مهندس أحمد عمر', 13); COMMIT; /*!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 */;
<gh_stars>0 CREATE OR REPLACE VIEW average_star_rating_per_state AS SELECT AVG(stars) as "average state rating", state FROM "yelp"."business" GROUP BY state;
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-04-2021 a las 01:36:14 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Base de datos: `ninjabot_desing` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cuentas` -- CREATE TABLE `cuentas` ( `id` int(64) UNSIGNED NOT NULL, `email` varchar(256) NOT NULL, `password` varchar(256) NOT NULL, `nombres` varchar(256) NOT NULL, `apellidos` varchar(256) NOT NULL, `telefono` varchar(256) NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `deleted_at` datetime(6) DEFAULT NULL, `created_at` datetime(6) DEFAULT NULL, `updated_at` datetime(6) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `token` -- CREATE TABLE `token` ( `id` int(64) UNSIGNED NOT NULL, `auth` varchar(256) NOT NULL, `cuenta_id` int(64) UNSIGNED NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `deleted_at` datetime(6) NOT NULL, `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `cuentas` -- ALTER TABLE `cuentas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `token` -- ALTER TABLE `token` ADD PRIMARY KEY (`id`), ADD KEY `cuenta_id` (`cuenta_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `cuentas` -- ALTER TABLE `cuentas` MODIFY `id` int(64) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `token` -- ALTER TABLE `token` MODIFY `id` int(64) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `token` -- ALTER TABLE `token` ADD CONSTRAINT `token_ibfk_1` FOREIGN KEY (`cuenta_id`) REFERENCES `cuentas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!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 */;
<gh_stars>0 DO $$ #variable_conflict use_column <<block>> DECLARE report_id integer := 1; report jsonb; previous_report_version_id integer; new_report_version_id integer; new_datum_id integer; BEGIN SET search_path TO exports, base, public; CREATE TEMPORARY VIEW summary AS ( SELECT ses.*, dense_rank() OVER (PARTITION BY event_type, package ORDER BY ses.created_at DESC) as rank FROM schedy_execution_summary ses); SELECT jsonb_object_agg( p.package, (SELECT jsonb_object_agg( levels.level, (SELECT jsonb_object_agg( tc.test_case, (SELECT jsonb_object_agg( ex.created_at, (SELECT jsonb_build_object( 'executed', sum(executed), 'passed', sum(passed) ) FROM schedy_execution_summary exs WHERE exs.created_at = ex.created_at AND exs.package = p.package AND exs.event_type = levels.level AND exs.test_case = tc.test_case) ) FROM ( SELECT DISTINCT sm.created_at FROM summary sm WHERE sm.rank <= levels.cols AND sm.event_type = levels.level AND sm.package = p.package ) AS ex ) ) FROM ( SELECT DISTINCT test_case FROM summary sm WHERE sm.rank <= levels.cols AND sm.event_type = levels.level AND sm.package = p.package ) AS tc ) ) FROM (VALUES ('nightly',20)) AS levels(level, cols) ) ) FROM (SELECT DISTINCT package FROM schedy_execution_summary WHERE created_at > now() - '2 months'::interval) p INTO report; PERFORM FROM reports WHERE id = report_id FOR UPDATE; SELECT id FROM report_versions WHERE report_id = report_id AND current INTO previous_report_version_id; INSERT INTO data (data,created_at,updated_at) VALUES (report, now(), now()) RETURNING id INTO new_datum_id; INSERT INTO report_versions (report_id, version, created_at, updated_at, current, projector_id, datum_id) VALUES ( report_id, COALESCE((SELECT version FROM report_versions WHERE id = previous_report_version_id),0) + 1, now(), now(), true, (SELECT projector_id FROM report_versions WHERE id = previous_report_version_id), new_datum_id ) RETURNING id INTO new_report_version_id; UPDATE report_versions SET current = false, updated_at = now() WHERE id = previous_report_version_id; INSERT INTO seapig_dependencies (name,current_version,created_at,updated_at) VALUES ('ReportVersion-Report#' || report_id::text, nextval('seapig_dependency_version_seq'), now(), now()) ON CONFLICT (name) DO UPDATE SET current_version = EXCLUDED.current_version, updated_at = EXCLUDED.updated_at; NOTIFY seapig_dependency_changed; END $$;
-- phpMyAdmin SQL Dump -- version 4.7.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 2019-07-14 14:47:54 -- 服务器版本: 8.0.13 -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `ssm` -- CREATE DATABASE IF NOT EXISTS `ssm` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `ssm`; -- -------------------------------------------------------- -- -- 表的结构 `appointment` -- DROP TABLE IF EXISTS `appointment`; CREATE TABLE IF NOT EXISTS `appointment` ( `book_id` bigint(20) NOT NULL COMMENT '图书ID', `student_id` bigint(20) NOT NULL COMMENT '学号', `appoint_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '预约时间', PRIMARY KEY (`book_id`,`student_id`), KEY `idx_appoint_time` (`appoint_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='预约图书表'; -- -------------------------------------------------------- -- -- 表的结构 `area` -- DROP TABLE IF EXISTS `area`; CREATE TABLE IF NOT EXISTS `area` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL, `priority` int(11) NOT NULL DEFAULT '0' COMMENT '权值', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间戳', `last_edit_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间戳', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `area` -- INSERT INTO `area` (`id`, `name`, `priority`) VALUES (1, '东北', 0), (4, 'chaoge', 2), (5, '测试区域', 1); -- -------------------------------------------------------- -- -- 表的结构 `book` -- DROP TABLE IF EXISTS `book`; CREATE TABLE IF NOT EXISTS `book` ( `book_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '图书ID', `name` varchar(100) NOT NULL COMMENT '图书名称', `number` int(11) NOT NULL COMMENT '馆藏数量', PRIMARY KEY (`book_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1004 DEFAULT CHARSET=utf8 COMMENT='图书表'; -- -- 转存表中的数据 `book` -- INSERT INTO `book` (`book_id`, `name`, `number`) VALUES (1000, 'Java程序设计', 10), (1001, '数据结构', 10), (1002, '设计模式', 10), (1003, '编译原理', 10); -- -------------------------------------------------------- -- -- 表的结构 `girls` -- DROP TABLE IF EXISTS `girls`; CREATE TABLE IF NOT EXISTS `girls` ( `id` int(11) NOT NULL AUTO_INCREMENT, `age` int(11) NOT NULL, `name` varchar(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='妹子表'; -- -- 转存表中的数据 `girls` -- INSERT INTO `girls` (`id`, `age`, `name`) VALUES (1, 12, 'kitty'), (2, 18, 'hidy'), (3, 333, 'fsfsfee'), (4, 14, 'keowws'); -- -------------------------------------------------------- -- -- 表的结构 `person` -- DROP TABLE IF EXISTS `person`; CREATE TABLE IF NOT EXISTS `person` ( `id` varchar(32) NOT NULL, `address` varchar(32) NOT NULL, `idCard` varchar(32) NOT NULL, `name` varchar(32) NOT NULL, `phone` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- -------------------------------------------------------- -- -- 表的结构 `sys_permission` -- DROP TABLE IF EXISTS `sys_permission`; CREATE TABLE IF NOT EXISTS `sys_permission` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(30) COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称', `available` tinyint(1) NOT NULL, `parent_id` int(10) UNSIGNED NOT NULL COMMENT '父编号', `parent_ids` varchar(100) COLLATE utf8mb4_general_ci NOT NULL COMMENT '父编号列表', `permission` varchar(245) COLLATE utf8mb4_general_ci NOT NULL COMMENT '权限字符串', `resource_type` enum('menu','button') COLLATE utf8mb4_general_ci NOT NULL, `url` varchar(245) COLLATE utf8mb4_general_ci NOT NULL COMMENT '资源路径', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='权限表'; -- -- 转存表中的数据 `sys_permission` -- INSERT INTO `sys_permission` (`id`, `name`, `available`, `parent_id`, `parent_ids`, `permission`, `resource_type`, `url`) VALUES (1, '用户管理', 0, 0, '0/', 'userInfo:view', 'menu', 'userInfo/userList'), (2, '用户添加', 0, 1, '0/1', 'userInfo:add', 'button', 'userInfo/userAdd'), (3, '用户删除', 0, 1, '0/1', 'userInfo:del', 'button', 'userInfo/userDel'); -- -------------------------------------------------------- -- -- 表的结构 `sys_role` -- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE IF NOT EXISTS `sys_role` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `available` tinyint(2) UNSIGNED DEFAULT NULL COMMENT '是否可用', `description` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '角色描述', `role` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '角色标识', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色表'; -- -- 转存表中的数据 `sys_role` -- INSERT INTO `sys_role` (`id`, `available`, `description`, `role`) VALUES (1, 0, '管理员', 'admin'), (2, 0, 'VIP会员', 'vip'), (3, 1, 'test', 'test'); -- -------------------------------------------------------- -- -- 表的结构 `sys_role_permission` -- DROP TABLE IF EXISTS `sys_role_permission`; CREATE TABLE IF NOT EXISTS `sys_role_permission` ( `permission_id` int(10) UNSIGNED NOT NULL COMMENT '权限id', `role_id` int(10) UNSIGNED NOT NULL COMMENT '角色id', PRIMARY KEY (`permission_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色权限表'; -- -- 转存表中的数据 `sys_role_permission` -- INSERT INTO `sys_role_permission` (`permission_id`, `role_id`) VALUES (1, 1), (2, 1), (3, 2); -- -------------------------------------------------------- -- -- 表的结构 `sys_user_role` -- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE IF NOT EXISTS `sys_user_role` ( `role_id` int(10) UNSIGNED NOT NULL COMMENT '角色id', `uid` int(10) UNSIGNED NOT NULL COMMENT '用户id', PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户角色表'; -- -- 转存表中的数据 `sys_user_role` -- INSERT INTO `sys_user_role` (`role_id`, `uid`) VALUES (1, 1); -- -------------------------------------------------------- -- -- 表的结构 `user_info` -- DROP TABLE IF EXISTS `user_info`; CREATE TABLE IF NOT EXISTS `user_info` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(30) COLLATE utf8mb4_general_ci NOT NULL COMMENT '帐号', `name` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '名称', `password` char(35) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '密码', `salt` char(35) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '加密密码的盐', `state` tinyint(3) UNSIGNED DEFAULT NULL COMMENT '用户状态,0:创建未认证(比如没有激活,没有输入验证码等等)--等待验证的用户 , 1:正常状态,2:用户被锁定.', PRIMARY KEY (`uid`), KEY `user_info_username_index` (`username`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户信息表'; -- -- 转存表中的数据 `user_info` -- INSERT INTO `user_info` (`uid`, `username`, `name`, `password`, `salt`, `state`) VALUES (1, 'admin', '管理员', '<PASSWORD>', '<PASSWORD>', 0); COMMIT; /*!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 */;
<filename>SQLWATCHDB/dbo/Procedures/usp_sqlwatch_internal_add_index_missing.sql CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_add_index_missing] @databases varchar(max) = '-tempdb,-master,-msdb,-%ReportServer%', @ignore_global_exclusion bit = 0 as declare @database_name sysname, @database_create_date datetime, @sql nvarchar(max) create table #t ( [database_name] nvarchar(128), [create_date] datetime, [table_name] nvarchar(256), [equality_columns] nvarchar(max), [inequality_columns] nvarchar(max), [included_columns] nvarchar(max), [statement] nvarchar(max), [index_handle] int ) create clustered index idx_tmp_t on #t ([database_name], [create_date], [table_name], [index_handle]) insert into #t exec [dbo].[usp_sqlwatch_internal_foreachdb] @databases = @databases, @command = 'use [?] select [database_name] = ''?'', [create_date] = db.create_date, [table_name] = s.name + ''.'' + t.name, [equality_columns] , [inequality_columns] , [included_columns] , [statement] , id.[index_handle] from sys.dm_db_missing_index_details id inner join [?].sys.tables t on t.object_id = id.object_id inner join [?].sys.schemas s on t.schema_id = s.schema_id inner join sys.databases db on db.name = ''?'' ', @calling_proc_id = @@PROCID, @ignore_global_exclusion = @ignore_global_exclusion merge [dbo].[sqlwatch_meta_index_missing] as target using ( select [sql_instance] = @@SERVERNAME, db.[sqlwatch_database_id] , mt.[sqlwatch_table_id] , idx.[equality_columns] , idx.[inequality_columns] , idx.[included_columns] , idx.[statement] , idx.[index_handle] , [date_added] = getdate() from #t idx inner join [dbo].[sqlwatch_meta_database] db on db.[database_name] = idx.[database_name] collate database_default and db.[database_create_date] = idx.[create_date] and db.sql_instance = @@SERVERNAME inner join [dbo].[sqlwatch_meta_table] mt on mt.sql_instance = db.sql_instance and mt.sqlwatch_database_id = db.sqlwatch_database_id and mt.table_name = idx.table_name collate database_default left join [dbo].[sqlwatch_config_exclude_database] ed on db.[database_name] like ed.[database_name_pattern] and ed.[snapshot_type_id] = 3 --missing index logger. where ed.[snapshot_type_id] is null ) as source on target.sql_instance = source.sql_instance and target.sqlwatch_database_id = source.sqlwatch_database_id and target.sqlwatch_table_id = source.sqlwatch_table_id and target.index_handle = source.index_handle and isnull(target.[equality_columns],'') = isnull(source.[equality_columns],'') collate database_default and isnull(target.[inequality_columns],'') = isnull(source.[inequality_columns],'') collate database_default and isnull(target.[included_columns],'') = isnull(source.[included_columns],'') collate database_default and isnull(target.[statement],'') = isnull(source.[statement],'') collate database_default when not matched by source and target.sql_instance = @@SERVERNAME then update set [is_record_deleted] = 1 when matched then update set [date_last_seen] = getutcdate(), [is_record_deleted] = 0 when not matched by target then insert ([sql_instance], [sqlwatch_database_id], [sqlwatch_table_id], [equality_columns] , [inequality_columns] ,[included_columns] ,[statement] , [index_handle] , [date_created]) values (source.[sql_instance], source.[sqlwatch_database_id], source.[sqlwatch_table_id], source.[equality_columns] , source.[inequality_columns] ,source.[included_columns] ,source.[statement] , source.[index_handle] , source.[date_added]); --when not matched by source and target.sql_instance = @@SERVERNAME then -- update set [date_deleted] = getutcdate();
<reponame>nedavukovic/ITEH-projekat -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Jun 15, 2020 at 02:06 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `baza` -- -- -------------------------------------------------------- -- -- Table structure for table `kategorije` -- CREATE TABLE `kategorije` ( `kategorijaID` int(18) NOT NULL, `naziv` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `kategorije` -- INSERT INTO `kategorije` (`kategorijaID`, `naziv`) VALUES (1, 'Bolesti zuba i endodoncija'), (2, 'Parodontologija'), (3, 'Protetika'), (4, 'Implantologija'); -- -------------------------------------------------------- -- -- Table structure for table `korisnici` -- CREATE TABLE `korisnici` ( `korisnickoime` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `sifra` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `ime` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `prezime` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `datumregistracije` date NOT NULL, `status` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `korisnici` -- INSERT INTO `korisnici` (`korisnickoime`, `sifra`, `ime`, `prezime`, `email`, `datumregistracije`, `status`) VALUES ('filip', '9a4ee0139004e7c16e3d52b85e71154e', 'Filip', 'Djordjevic', '<EMAIL>', '2020-06-15', 'admin'), ('masa', '8eac85615da7da263d313a5fa2181076', 'Masa', 'Vucic', '<EMAIL>', '2020-06-15', 'korisnik'), ('neda', '43d974e40f94bdcb43103034aa1a34ba', 'Neda', 'Vukovic', '<EMAIL>', '2020-02-06', 'korisnik'); -- -------------------------------------------------------- -- -- Table structure for table `rezervacija` -- CREATE TABLE `rezervacija` ( `rezervacijaId` int(18) NOT NULL, `korisnik` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `uslugaID` int(11) NOT NULL, `datum` text COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `rezervacija` -- INSERT INTO `rezervacija` (`rezervacijaId`, `korisnik`, `uslugaID`, `datum`) VALUES (50, 'neda', 11, '02/22/2020'); -- -------------------------------------------------------- -- -- Table structure for table `usluga` -- CREATE TABLE `usluga` ( `uslugaID` int(11) NOT NULL, `nazivUsluge` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `cena` double DEFAULT NULL, `opis` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `slika` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `dostupnost` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'da', `kategorijaID` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `usluga` -- INSERT INTO `usluga` (`uslugaID`, `nazivUsluge`, `cena`, `opis`, `slika`, `dostupnost`, `kategorijaID`) VALUES (1, 'Stomatoloski pregled', 1250, 'Pregled zuba ', 'img/pregled.png', 'da', 1), (11, 'Uklanjanje kamenca', 3000, 'Uklanjanje kamenca koriscenjem najsavremenijih stomatoloskih tehnika', 'img/kamenac.png', 'da', 1), (12, 'Beljenje zuba po vilici', 10000, 'Beljenje zuba laserom, gornje i donje vilice', 'img/izbeljivanje.jpg', 'da', 1), (13, 'Endodonsko lecenje', 5000, 'Lecenje kanala korena', 'img/endodonsko.jpg', 'da', 1), (14, 'Lecenje gangrene', 2500, 'Gangrena predstavlja jedan od najvecih izazova sa kojima se susrecu stomatolozi srom sveta. Nase visegodisnje iskustvo i poznavanje ove oblasti ce omoguciti Vas najbolji oporavak', 'img/gangrena.jpg', 'da', 1), (15, 'Preprotetska priprema', 5000, 'Pre pocetka protetske terapije, kost i meka tkiva usta moraju biti zdravi', 'img/preprotetska.jpg', 'da', 2), (16, 'Protetska priprema', 8000, 'Krezubost sa prekinutim zubnim nizom zahteva precizan radni model, bez obzira na vrstu materijala i tehniku otiskivanja.', 'img/protetska.jpg', 'da', 2), (17, 'Parcijalna skeletirana proteza', 34499, 'Predstavljaju zubne proteze koje se oradjuju kada preostane mali broj zuba u vilici', 'img/parcijalna.jpg', 'da', 3), (19, 'Direktno podlaganje proteze', 19999, 'Obavlja se u ordinaciji kada je proteza, usled resorpcije vilicne kosti postala velika i pocela da seta po ustima', 'img/podlaganje.jpg', 'da', 3), (20, 'Fiksna proteza', 90000, 'Fikasa proteza za ispravljanje zuba, mogu biti regularne i lingvalne', 'img/fiksna.jpeg', 'da', 3), (21, 'Ugradnja atacmena', 15000, 'Atecmeni su vrlo precizni vezni elementi koji sluze za spajanje fiksne nadoknade i mobilne percijalne proteze', 'img/atacmen.jpg', 'da', 4), (22, 'Privremeni most po zubu', 154999, 'Predstavljaju fiksne naprave i odlican su nacin da se nadoknade izgubljeni zubi', 'img/most.jpg', 'da', 4); -- -- Indexes for dumped tables -- -- -- Indexes for table `kategorije` -- ALTER TABLE `kategorije` ADD PRIMARY KEY (`kategorijaID`); -- -- Indexes for table `korisnici` -- ALTER TABLE `korisnici` ADD PRIMARY KEY (`korisnickoime`); -- -- Indexes for table `rezervacija` -- ALTER TABLE `rezervacija` ADD PRIMARY KEY (`rezervacijaId`); -- -- Indexes for table `usluga` -- ALTER TABLE `usluga` ADD PRIMARY KEY (`uslugaID`), ADD KEY `usluga_ibfk_1` (`kategorijaID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `kategorije` -- ALTER TABLE `kategorije` MODIFY `kategorijaID` int(18) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `rezervacija` -- ALTER TABLE `rezervacija` MODIFY `rezervacijaId` int(18) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- -- AUTO_INCREMENT for table `usluga` -- ALTER TABLE `usluga` MODIFY `uslugaID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36; -- -- Constraints for dumped tables -- -- -- Constraints for table `usluga` -- ALTER TABLE `usluga` ADD CONSTRAINT `usluga_ibfk_1` FOREIGN KEY (`kategorijaID`) REFERENCES `kategorije` (`kategorijaID`); COMMIT; /*!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 */;
DELETE FROM role_assignment; INSERT INTO public.role_assignment (id, actor_id_type, actor_id, role_type, role_name, classification, grant_type, role_category, read_only, begin_time, end_time, "attributes", created) VALUES('638e8e7a-7d7c-4027-9d53-ea4b1095eab1', 'IDAM', '123e4567-e89b-42d3-a456-556642445613', 'CASE', 'judge', 'PUBLIC', 'STANDARD', NULL, false, '2020-01-01 12:00:00.000', '2020-01-02 11:00:00.000', '{"region": "north-east", "contractType": "SALARIED", "jurisdiction": "divorce"}', '2020-06-24 17:35:08.546'); INSERT INTO public.role_assignment (id, actor_id_type, actor_id, role_type, role_name, classification, grant_type, role_category, read_only, begin_time, end_time, "attributes", created) VALUES('333d2a84-9dfa-4bf0-be5e-bf748656acc5', 'IDAM', '123e4567-e89b-42d3-a456-556642445613', 'CASE', 'judge', 'PUBLIC', 'STANDARD', NULL, true, '2020-01-01 12:00:00.000', '2020-01-02 11:00:00.000', '{"region": "north-east", "contractType": "SALARIED", "jurisdiction": "divorce"}', '2020-06-24 17:35:42.318'); INSERT INTO public.role_assignment (id, actor_id_type, actor_id, role_type, role_name, classification, grant_type, role_category, read_only, begin_time, end_time, "attributes", created) VALUES('cf89f230-0023-4bb6-b548-30da6a944172', 'IDAM', '123e4567-e89b-42d3-a456-556642445613', 'CASE', 'judge', 'PUBLIC', 'STANDARD', NULL, true, '2020-01-01 12:00:00.000', '2025-01-02 11:00:00.000', '{"region": "north-east", "contractType": "SALARIED", "jurisdiction": "divorce"}', '2020-06-25 12:30:41.166'); INSERT INTO public.role_assignment (id, actor_id_type, actor_id, role_type, role_name, classification, grant_type, role_category, read_only, begin_time, end_time, "attributes", created) VALUES('44276b66-11eb-42f5-a4dc-510fec18b0fb', 'IDAM', '123e4567-e89b-42d3-a456-556642445614', 'ORGANISATION', 'judge', 'PUBLIC', 'STANDARD', NULL, true, '2020-01-01 12:00:00.000', '2020-01-02 11:00:00.000', '{"region": "north-east", "contractType": "SALARIED", "jurisdiction": "divorce"}', '2020-06-25 12:32:03.683'); INSERT INTO public.role_assignment (id, actor_id_type, actor_id, role_type, role_name, classification, grant_type, role_category, read_only, begin_time, end_time, "attributes", created) VALUES('ee7254d3-749b-4ed7-aec1-93d3191f3f9f', 'IDAM', '123e4567-e89b-42d3-a456-556642445612', 'ORGANISATION', 'judge', 'PUBLIC', 'SPECIFIC', 'JUDICIAL', false, '2020-01-01 00:00:00.000', '2025-01-02 00:00:00.000', '{"caseId": "1234567890123456", "region": "south-east", "contractType": "SALARIED", "jurisdiction": "divorce"}', '2020-07-24 15:05:01.988');
alter table job_sql_query alter column ui_order not null; alter table job_sql_query add constraint uc_job_sql_query_sql_query_id_fk_job_id_fk_ui_order unique (sql_query_id_fk, job_id_fk, ui_order);
<reponame>alexanderbauer89/HackerRank<gh_stars>1-10 SET @row := 21; SELECT REPEAT('* ', @row := @row - 1) FROM information_schema.tables WHERE @row > 0
-- file:numeric_big.sql ln:172 expect:true INSERT INTO num_exp_add VALUES (3,4,'-60302029489314054989387940744763542234.98295358053252401308872309802346144227050959966671157134780970446370197110016237152333448347415674483796371931316021552756816073493808344537122580089676304958104270609762310229182150728136567294798680824019082599362332377530165818229609055765904048195574142709698758095302560470195171027219786996322461803443213101532716728918363951912367135900414238535625075942525108530051828834829820554490477645701692374399416239080329365045332525699055300921341010989742896430768506909949340276549373661076950964959025967328861569387160956730002517417236732463510495205173523163676450203614971844583064927040066684531931069310935516821795449174271052747559395296525950219449541557191520903507653089998307641491381797101485104546410643')
-- Script que muestra información sobre el servidor de base de datos -- versión del servidor select version() into @ver; select concat('La versión del servidor es la ',@var) as ''; -- información de ejecución select 'script ejecutado desde: ' as ''; system pwd select concat('por el usuario de base de datos ''',user(),'''') as''; select concat('el día ', current_date(), ' a las ' current_time()) as ''; -- muestra las tablas que tiene cada base de datos select 'NÚMERO DE TABLAS POR BASE DE DATOS'; select '----------------------------------'; select count(tables.table_name), table_schema from information_schema.tables group by table_schema; -- obtiene el número de filas de la consulta anterior para saber cuántas bases de datos -- tienen tablas select found_rows()into @num_db_con_tablas; -- cuenta el número de base de datos que hay select count(*) into @num_db from information_schema.schemata; -- muestra información de las bases de datos que contiene el servidor select concat('El servidor tiene ',@num_db, ' bases de datos, ',' pero solo ',@num_db_con_tablas, ' tienen tablas') as '';
<filename>sqlDump/data.sql -- Anamakine: localhost -- Üretim Zamanı: 16 Ara 2018, 13:30:18 -- Sunucu sürümü: 5.5.52-MariaDB -- PHP Sürümü: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `language` -- CREATE TABLE `language` ( `id` int(11) NOT NULL, `name` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `language` -- INSERT INTO `language` (`id`, `name`) VALUES (3, 'de'), (2, 'en'), (1, 'tr'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `localization` -- CREATE TABLE `localization` ( `id` int(11) NOT NULL, `localizationvalueid` int(11) NOT NULL, `languageid` int(11) NOT NULL, `localizationkeyid` int(11) NOT NULL, `projectid` int(11) NOT NULL, `versionid` int(11) NOT NULL, `userid` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `localization` -- INSERT INTO `localization` (`id`, `localizationvalueid`, `languageid`, `localizationkeyid`, `projectid`, `versionid`, `userid`) VALUES (12, 14, 1, 21, 17, 8, 1), (14, 16, 1, 21, 17, 9, 1), (15, 17, 2, 21, 17, 8, 1), (16, 18, 1, 25, 17, 9, 1), (17, 19, 1, 21, 20, 8, 1), (21, 18, 1, 21, 20, 9, 1), (22, 18, 1, 25, 20, 12, 1), (23, 21, 1, 25, 17, 10, 1); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `localizationkey` -- CREATE TABLE `localizationkey` ( `id` int(11) NOT NULL, `value` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `localizationkey` -- INSERT INTO `localizationkey` (`id`, `value`) VALUES (25, 'fist'), (21, 'title'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `localizationvalue` -- CREATE TABLE `localizationvalue` ( `id` int(11) NOT NULL, `value` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `localizationvalue` -- INSERT INTO `localizationvalue` (`id`, `value`) VALUES (17, 'hi'), (14, 'merhaba'), (16, 'Merhabalar!'), (19, 'Selam'), (18, 'yumruk'), (21, 'Yumruk!!'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `project` -- CREATE TABLE `project` ( `id` int(11) NOT NULL, `value` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `project` -- INSERT INTO `project` (`id`, `value`) VALUES (17, 'Project1'), (20, 'Project2'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(16) NOT NULL, `password` varchar(32) NOT NULL, `role` smallint(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `user` -- INSERT INTO `user` (`id`, `username`, `password`, `role`) VALUES (1, 'admin', '<PASSWORD>', 1), (2, 'test4', '<PASSWORD>', 0); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `version` -- CREATE TABLE `version` ( `id` int(11) NOT NULL, `revision` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `version` -- INSERT INTO `version` (`id`, `revision`) VALUES (8, 1), (9, 1.01), (10, 1.02), (12, 2); -- -- Dökümü yapılmış tablolar için indeksler -- -- -- Tablo için indeksler `language` -- ALTER TABLE `language` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`); -- -- Tablo için indeksler `localization` -- ALTER TABLE `localization` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `projectid_languageid_localizationkeyid_versionid_ck` (`languageid`,`localizationkeyid`,`versionid`,`projectid`) USING BTREE; -- -- Tablo için indeksler `localizationkey` -- ALTER TABLE `localizationkey` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `key` (`value`); -- -- Tablo için indeksler `localizationvalue` -- ALTER TABLE `localizationvalue` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `value` (`value`); -- -- Tablo için indeksler `project` -- ALTER TABLE `project` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `value` (`value`); -- -- Tablo için indeksler `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`); -- -- Tablo için indeksler `version` -- ALTER TABLE `version` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `revision` (`revision`); -- -- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri -- -- -- Tablo için AUTO_INCREMENT değeri `language` -- ALTER TABLE `language` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Tablo için AUTO_INCREMENT değeri `localization` -- ALTER TABLE `localization` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- Tablo için AUTO_INCREMENT değeri `localizationkey` -- ALTER TABLE `localizationkey` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- Tablo için AUTO_INCREMENT değeri `localizationvalue` -- ALTER TABLE `localizationvalue` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- Tablo için AUTO_INCREMENT değeri `project` -- ALTER TABLE `project` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- Tablo için AUTO_INCREMENT değeri `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Tablo için AUTO_INCREMENT değeri `version` -- ALTER TABLE `version` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; COMMIT; /*!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 */;
<reponame>dmarkwell/snomed-moodle-additional-plugins<gh_stars>1-10 CREATE TABLE `mdl_elp_student_views_per_month` (`userid` bigint(10), `monthnumber` int(5), `presentation count` bigint(21));
<reponame>viswaratha12/dbwarden /****** Object: Table [T_Archived_File_Types] ******/ /****** RowCount: 2 ******/ SET IDENTITY_INSERT [T_Archived_File_Types] ON INSERT INTO [T_Archived_File_Types] (Archived_File_Type_ID, File_Type_Name, Description) VALUES (1,'static','Static collection, listed in T_Protein_Collections') INSERT INTO [T_Archived_File_Types] (Archived_File_Type_ID, File_Type_Name, Description) VALUES (2,'dynamic','Transient, runtime generated collection, not listed in T_Protein_Collections') SET IDENTITY_INSERT [T_Archived_File_Types] OFF
SET search_path = pg_catalog; -- DEPCY: This FUNCTION depends on the TYPE: public.typ_range DROP FUNCTION public.add(public.typ_range, integer); DROP TYPE public.typ_range; -- DEPCY: This TYPE is a dependency of FUNCTION: public.add(public.typ_range, integer) CREATE TYPE public.typ_range AS RANGE ( subtype = character varying, collation = pg_catalog."ru_RU" ); ALTER TYPE public.typ_range OWNER TO botov_av; CREATE OR REPLACE FUNCTION public.add(public.typ_range, integer) RETURNS integer LANGUAGE sql IMMUTABLE STRICT AS $_$select $2;$_$; ALTER FUNCTION public.add(public.typ_range, integer) OWNER TO botov_av;
SELECT taiwan_stock_holding_shares_per.date AS date, SUM(taiwan_stock_holding_shares_per.unit) AS "大戶持股數量" FROM `taiwan_stock_holding_shares_per` AS taiwan_stock_holding_shares_per INNER JOIN taiwan_stock_info AS taiwan_stock_info ON taiwan_stock_info.stock_id =taiwan_stock_holding_shares_per.stock_id WHERE taiwan_stock_info.stock_name = '{{股票名稱}}' AND taiwan_stock_holding_shares_per.date >= '{{date.start}}' AND taiwan_stock_holding_shares_per.date <= '{{date.end}}' AND taiwan_stock_holding_shares_per.HoldingSharesLevel NOT IN('1-999', 'total') GROUP BY date;
<gh_stars>1-10 -- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_ctree -- Dataset : BreastCancer -- Database : pgsql -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "DT_node_lookup" AS (SELECT "ADS"."KEY" AS "KEY", CASE WHEN ("ADS"."Feature_27" <= 0.1453) THEN CASE WHEN ("ADS"."Feature_13" <= 53.65) THEN CASE WHEN ("ADS"."Feature_23" <= 947.9) THEN CASE WHEN ("ADS"."Feature_13" <= 33.0) THEN 5 ELSE 6 END ELSE 7 END ELSE 8 END ELSE CASE WHEN ("ADS"."Feature_16" <= 0.09953) THEN 10 ELSE 11 END END AS node_id_2 FROM "BreastCancer" AS "ADS"), "DT_node_data" AS (SELECT "Values".nid AS nid, "Values"."P_0" AS "P_0", "Values"."P_1" AS "P_1", "Values"."D" AS "D", "Values"."DP" AS "DP" FROM (SELECT 5 AS nid, 0.003787878787878791 AS "P_0", 0.9962121212121212 AS "P_1", 1 AS "D", 0.9962121212121212 AS "DP" UNION ALL SELECT 6 AS nid, 0.148148148148148 AS "P_0", 0.851851851851852 AS "P_1", 1 AS "D", 0.851851851851852 AS "DP" UNION ALL SELECT 7 AS nid, 0.75 AS "P_0", 0.25 AS "P_1", 0 AS "D", 0.75 AS "DP" UNION ALL SELECT 8 AS nid, 0.9 AS "P_0", 0.1 AS "P_1", 0 AS "D", 0.9 AS "DP" UNION ALL SELECT 10 AS nid, 0.985611510791367 AS "P_0", 0.0143884892086331 AS "P_1", 0 AS "D", 0.985611510791367 AS "DP" UNION ALL SELECT 11 AS nid, 0.428571428571429 AS "P_0", 0.571428571428571 AS "P_1", 1 AS "D", 0.571428571428571 AS "DP") AS "Values"), "DT_Output" AS (SELECT "DT_node_lookup"."KEY" AS "KEY", "DT_node_lookup".node_id_2 AS node_id_2, "DT_node_data".nid AS nid, "DT_node_data"."P_0" AS "P_0", "DT_node_data"."P_1" AS "P_1", "DT_node_data"."D" AS "D", "DT_node_data"."DP" AS "DP" FROM "DT_node_lookup" LEFT OUTER JOIN "DT_node_data" ON "DT_node_lookup".node_id_2 = "DT_node_data".nid) SELECT "DT_Output"."KEY" AS "KEY", CAST(NULL AS FLOAT) AS "Score_0", CAST(NULL AS FLOAT) AS "Score_1", "DT_Output"."P_0" AS "Proba_0", "DT_Output"."P_1" AS "Proba_1", CASE WHEN ("DT_Output"."P_0" IS NULL OR "DT_Output"."P_0" > 0.0) THEN ln("DT_Output"."P_0") ELSE -1.79769313486231e+308 END AS "LogProba_0", CASE WHEN ("DT_Output"."P_1" IS NULL OR "DT_Output"."P_1" > 0.0) THEN ln("DT_Output"."P_1") ELSE -1.79769313486231e+308 END AS "LogProba_1", "DT_Output"."D" AS "Decision", "DT_Output"."DP" AS "DecisionProba" FROM "DT_Output"
DROP TABLE IF EXISTS "partitioned" CASCADE; CREATE TABLE "partitioned" ( city_id int not null, logdate date not null ) PARTITION BY RANGE ("logdate");
create table RI5 ( i integer, ii integer, iii integer); CREATE UNIQUE INDEX RI5_UNIQUE_IND_I ON RI5 (i); CREATE INDEX RI5_IND_I ON RI5 (i); CREATE INDEX RI5_IND_II_III ON RI5 (ii, iii); CREATE INDEX RI5_IND_I_II_III ON RI5 (i, ii, iii); CREATE INDEX RI5_IND_II ON RI5 (ii); CREATE INDEX RI5_IND_II_PART ON RI5 (ii) WHERE ABS(I) > 8; create table t ( a bigint not null, b bigint not null, c bigint not null, d bigint not null, e bigint not null ); create index idx_1_hash on t (a, b, c, d); create index idx_2_TREE on t (e, a, b, c, d); create index cover2_TREE on t (a, b); create index cover3_TREE on t (a, c, b); create table l ( id bigint NOT NULL, lname varchar(32) NOT NULL, a tinyint NOT NULL, b tinyint NOT NULL, CONSTRAINT PK_LOG PRIMARY KEY ( lname, id ) ); create index idx_c on l (lname, a, b, id); create index idx_b on l (lname, b, id); create index idx_a on l (lname, a, id); CREATE INDEX casewhen_idx1 ON l (CASE WHEN a > b THEN a ELSE b END); CREATE INDEX casewhen_idx2 ON l (CASE WHEN a < 10 THEN a*5 ELSE a + 5 END); CREATE INDEX decode_idx3 ON l (b, DECODE(a, null, 0, a), id); CREATE TABLE a ( id BIGINT NOT NULL, deleted TINYINT NOT NULL, updated_date BIGINT NOT NULL, CONSTRAINT id PRIMARY KEY (id) ); CREATE INDEX deleted_since_idx ON a (deleted, updated_date, id); CREATE TABLE c ( a bigint not null, b bigint not null, c bigint not null, d bigint not null, e bigint, f bigint not null, g bigint ); CREATE INDEX a_partial_idx_not_null_e ON c (a) where e is not null; CREATE INDEX a_partial_idx_not_null_d_e ON c (a + b) where (d + e) is not null; CREATE INDEX z_full_idx_a ON c (a); CREATE INDEX partial_idx_not_null_e_dup ON c (a) where e is not null; CREATE INDEX partial_idx_null_e ON c (a) where e is null; CREATE INDEX partial_idx_or_expr ON c (f) where e > 0 or d < 5; CREATE INDEX partial_idx_1 ON c (abs(b)) where abs(e) > 1; CREATE INDEX partial_idx_2 ON c (b) where d > 0 and d < 5; CREATE INDEX partial_idx_3 ON c (b) where d > 0; CREATE INDEX partial_idx_4 ON c (a, b) where 0 < f; CREATE INDEX partial_idx_5 ON c (b) where d > f; CREATE INDEX partial_idx_6 ON c (g) where g < 0; CREATE INDEX partial_idx_7 ON c (g) where g is not null; CREATE INDEX partial_idx_8 ON c (b) WHERE abs(a) > 0; CREATE TABLE polypoints ( poly geography(1024), point geography_point, primarykey int primary key, -- index 1 uniquekey int unique, -- index 2 uniquehashable int, nonuniquekey int, component1 int, component2unique int, component2non int); -- index 3 CREATE INDEX polypointspoly ON polypoints ( poly ); -- index 4 CREATE INDEX nonunique ON polypoints ( nonuniquekey ); -- index 5 CREATE UNIQUE INDEX compoundunique ON polypoints ( component1, component2unique ); -- index 6 CREATE INDEX compoundnon ON polypoints ( component1, component2non ); -- index 7 CREATE UNIQUE INDEX HASHUNIQUEHASH ON polypoints ( uniquehashable ); CREATE TABLE R ( ID INTEGER DEFAULT 0, TINY TINYINT DEFAULT 0, VCHAR_INLINE_MAX VARCHAR(63 BYTES) DEFAULT '0', VCHAR_OUTLINE_MIN VARCHAR(64 BYTES) DEFAULT '0' NOT NULL, POLYGON GEOGRAPHY, PRIMARY KEY (ID, VCHAR_OUTLINE_MIN)); CREATE INDEX IDX ON R (R.POLYGON) WHERE NOT R.TINY IS NULL;
-- @testpoint: 含有或缺失多个参数,合理报错 SELECT btrim('123321' , 12 ,'奥法还是卡'); SELECT btrim('asfkjkla');
<gh_stars>0 select --user_id,d.datum_unosa, --SD.PROIZVOD, d.godina,d.vrsta_dok,d.broj_dok,d.status,d.tip_dok,d.datum_dok, --d.poslovnica,porganizacionideo.naziv(d.poslovnica), sd.cena, --sd.jed_mere, sd.faktor,sd.kolicina,k_robe,sd.cena1 , PDokument.UlazIzlaz( d.Vrsta_Dok, d.Tip_Dok, sd.K_Robe,d.Datum_Dok ) nUlzaIzlaz from stavka_dok sd , dokument d Where sd.godina (+)= d.godina and sd.vrsta_dok (+)= d.vrsta_dok and sd.broj_dok (+)= d.broj_dok ----------------------------- and d.org_Deo = 64 and d.status > 0 and d.vrsta_dok NOT IN ( 2 , 9 , 10 , 73 , 74 ) and proizvod in('211972') --Order By d.Datum_Unosa Order by d.godina , To_Number( Proizvod ), d.Datum_Dok, TO_NUMBER(D.Vrsta_Dok) , d.Datum_Unosa
<reponame>balintsoos/LearnSQL select * from dba_segments where segment_name = 'CIKK' and owner = 'NIKOVITS';
/* Use MetroAlt Use the table Employee */ USE MetroAlt /* 1. Return all the employees */ SELECT * FROM Employee /* 2. Return only the last name, first name and emails for all employees */ SELECT EmployeeLastName,EmployeeFirstName,EmployeeEmail FROM Employee /* 3. Return all the employees sorted by Last name alphabetically */ SELECT * FROM Employee ORDER BY EmployeeLastName /* 4. Sort the employees by hire date most recent first */ SELECT * FROM Employee ORDER BY EmployeeHireDate DESC /* 5. List all the employees who live in Seattle */ SELECT * FROM Employee WHERE EmployeeCity = 'Seattle' /* 6. List all the employees who do not live in Seattle */ SELECT * FROM Employee WHERE EmployeeCity != 'Seattle' /* 7. List the employees who do not have listed phones */ SELECT * FROM Employee WHERE EmployeePhone IS NULL /* 8. List only the employees who have phones */ SELECT * FROM Employee WHERE EmployeePhone IS NOT Null /* 9. List all the employees whose last name starts with “c.” */ SELECT * FROM Employee WHERE EmployeeLastName LIKE 'c%' /* 10. List all the employee keys and their wages sorted by pay FROM highest to lowest */ SELECT EmployeeKey, EmployeeHourlyPayRate FROM EmployeePosition ORDER BY EmployeeHourlyPayRate DESC /* 11. List all the employee keys and their hourly wage for those with PositionKey equal to 2 (mechanics) */ SELECT EmployeeKey, EmployeeHourlyPayRate FROM EmployeePosition WHERE PositionKey = '2' /* 12. Return the top 10 of the query for question 11 */ SELECT top 10 EmployeeKey, EmployeeHourlyPayRate FROM EmployeePosition WHERE PositionKey = '2' /* 13. Using the same query offset by 20 and list 10 */ SELECT EmployeeKey, EmployeeHourlyPayRate FROM EmployeePosition WHERE PositionKey = '2' ORDER BY EmployeeHourlyPayRate DESC OFFSET 20 rows FETCH NEXT 10 rows only /* 14. Return the busdriverKey and the busrouteKey but remove all duplicates */ SELECT DISTINCT BusDriverShiftKey, BusRoutekey FROM BusScheduleAssignment ORDER BY BusDriverShiftKey, BusRoutekey
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2020 at 11:20 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `bom` -- -- -------------------------------------------------------- -- -- Table structure for table `preferences` -- CREATE TABLE `preferences` ( `preference_id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `value` varchar(100) NOT NULL, `comments` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `preferences` -- INSERT INTO `preferences` (`preference_id`, `name`, `value`, `comments`) VALUES (0, 'SYSTEM_BOMS', 'BOM-100,BOM-101,BOM-104', 'Controls the system scope BOM display'), (1, 'ENABLE_LOGGING', 'false', 'Determines if logging is performed during BOM tree generation'); -- -- Indexes for dumped tables -- -- -- Indexes for table `preferences` -- ALTER TABLE `preferences` ADD PRIMARY KEY (`preference_id`); COMMIT; /*!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 */;
-- Copy paste error on last attempt ALTER TABLE ORDERSTATUSLOG MODIFY STATUSTEXT VARCHAR(4000);
-- ============================================= -- Author: <NAME> -- Create date: 24/11/2016 -- Description: Get SQL Login That not Match to other servers. -- Prerequisite: None -- Output: #DatabaseDefaultLogin -- ============================================= SELECT REPLACE(type_desc COLLATE DATABASE_DEFAULT,'_',' ') + ' - ' + name COLLATE DATABASE_DEFAULT + ' have connection to "default_database_name" - ' + QUOTENAME(default_database_name COLLATE DATABASE_DEFAULT) + ', that no longer exists on this server.' [msg] FROM sys.server_principals WHERE default_database_name NOT IN (SELECT name FROM sys.databases) OPTION(RECOMPILE);
pq.title as title, pq.body as question_body, pq.creation_date as creation_date, pq.owner_user_id as owner_id, pa.body as answer_body, pq.tags as tags FROM `bigquery-public-data.stackoverflow.posts_questions` as pq join `bigquery-public-data.stackoverflow.posts_answers` as pa on pa.id = pq.accepted_answer_id where pq.creation_date >= '2016-01-01' and REGEXP_CONTAINS(pq.tags, 'pandas|tensorflow|keras|pytorch|torch|machine-learning|deep-learning|list|dictionary') and REGEXP_CONTAINS(pq.tags, 'python') and REGEXP_CONTAINS(pa.body, '<pre><code>')
<gh_stars>10-100 IF NOT EXISTS ( SELECT * FROM [dbo].[AspNetUsers] WHERE [UserName] = N'<EMAIL>' ) BEGIN INSERT [dbo].[AspNetUsers] ( [Id], [AccessFailedCount], [ConcurrencyStamp], [Email], [EmailConfirmed], [LockoutEnabled], [LockoutEnd], [NormalizedEmail], [NormalizedUserName], [PasswordHash], [PhoneNumber], [PhoneNumberConfirmed], [SecurityStamp], [TwoFactorEnabled], [UserName] ) VALUES ( N'2b159f1d-40cf-4445-9f36-437738d6c81f', 0, N'97f20006-a99f-479a-9cef-414cacdbae9d', N'<EMAIL>', 1, 1, NULL, N'<EMAIL>', N'<EMAIL>', N'AQAAAAEAACcQAAAAEKBVSUS75H8QD7OwCu5RmTsjk/GBgocVdIVZXFGXDHMkhDrIT5Mequ6SqvfNEBp9ew==', N'+10001234567', 1, N'D2UGVYRADKOKUV4RGRIDYF3JOXYZMFTW', 0, N'<EMAIL>' ) END
-- Top 5 Months with highest amount of deaths in 2020 SELECT d.month, count(*) AS total_deaths FROM "Covid19DataMart".covid19_tracking_fact AS f INNER JOIN "Covid19DataMart".phu_dimension AS phu ON f.phu_dim_key = phu.phu_dim_key INNER JOIN "Covid19DataMart".date_dimension AS d ON f.onset_date_dim_key = d.date_dim_key WHERE d.year = 2020 AND f.fatal = 't' GROUP BY (d.month) ORDER BY total_deaths DESC LIMIT 5;
<filename>ore/conf/evolutions/default/5.sql # --- !Ups ALTER TABLE users ADD COLUMN tagline varchar(255); # --- !Downs ALTER TABLE users DROP COLUMN tagline;
<filename>db/sql/4813__alter_proc_koski_sa_opintojen_kulku_4.sql<gh_stars>1-10 USE [Koski_SA] GO /****** Object: StoredProcedure [sa].[p_lataa_temp_koski_opintojen_kulku_4_koonti] Script Date: 30.8.2021 10:34:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [sa].[p_lataa_temp_koski_opintojen_kulku_4_koonti] AS DROP TABLE IF EXISTS Koski_SA.sa.temp_opintojen_kulku_4_koonti_temp DROP TABLE IF EXISTS Koski_SA.sa.temp_opintojen_kulku_4_koonti SELECT [kohortti_vp] ,[oppija_oid] ,[opiskeluoikeus_oid] ,[koulutus_kytkin] ,[sarja] ,tutkinto_koodi ,ika ,ika_aloittaessa ,ika_paattyessa ,priorisoitu_tilanne_koodi = COALESCE(priorisoitu_tilanne_yleissivistava_koodi, priorisoitu_tilanne_amm_koodi, priorisoitu_tilanne_valmentava_koodi) ,[vaihtanut_jarjestajaa] ,vaihtanut_oppilaitosta INTO Koski_SA.sa.temp_opintojen_kulku_4_koonti_temp FROM Koski_SA.sa.temp_opintojen_kulku_3a_priorisoitu_tilanne_ammatillinen UNION SELECT [kohortti_vp] ,[oppija_oid] ,[opiskeluoikeus_oid] ,[koulutus_kytkin] ,[sarja] ,tutkinto_koodi ,ika ,ika_aloittaessa ,ika_paattyessa ,priorisoitu_tilanne_koodi = COALESCE(priorisoitu_tilanne_yleissivistava_koodi, priorisoitu_tilanne_amm_koodi, priorisoitu_tilanne_valmentava_koodi) ,[vaihtanut_jarjestajaa] ,vaihtanut_oppilaitosta FROM Koski_SA.sa.temp_opintojen_kulku_3b_priorisoitu_tilanne_yleissivistava2aste SELECT DISTINCT [kohortti_vp] ,q.[oppija_oid] ,q.[opiskeluoikeus_oid] ,ika ,ika_aloittaessa ,ika_paattyessa ,peruskoulu_keskiarvo_kategoria_koodi ,keskiarvo_kvintiili_koodi ,keskiarvo_lukuaineet_kvintiili_koodi ,peruskoulu_keskiarvo_lukuaineet_kategoria = jarj_peruskoulu_keskiarvo_lukuaineet_kategoria ,kansalaisuus_koodi = LEFT(kansalaisuus, 3) ,sukupuoli_koodi = henk.sukupuoli ,[koulutus_kytkin] ,[sarja] ,q.tutkinto_koodi ,priorisoitu_tilanne_koodi ,[vaihtanut_jarjestajaa] ,vaihtanut_oppilaitosta ,oo.oppilaitos_oid ,oo.koulutustoimija_oid INTO Koski_SA.sa.temp_opintojen_kulku_4_koonti FROM Koski_SA.sa.temp_opintojen_kulku_4_koonti_temp q LEFT JOIN Koski_SA.sa.sa_koski_opiskeluoikeus oo ON q.opiskeluoikeus_oid = oo.opiskeluoikeus_oid LEFT JOIN Koski_SA.sa.sa_koski_henkilo henk ON oo.oppija_oid = henk.oppija_oid LEFT JOIN Koski_SA.sa.temp_koski_opintojen_kulku_2d_taustatiedot tausta ON q.oppija_oid = tausta.oppija_oid GO
CREATE SCHEMA admin; ALTER SCHEMA admin OWNER TO postgres; SET search_path = admin, pg_catalog; CREATE TABLE acl_role ( id bigint NOT NULL ); ALTER TABLE admin.acl_role OWNER TO postgres; ALTER TABLE ONLY acl_role ADD CONSTRAINT acl_role_pkey PRIMARY KEY (id); CREATE TABLE "user" ( id bigint NOT NULL, email character varying(255) NOT NULL, name character varying(255) NOT NULL, password character varying(40) NOT NULL, is_active boolean DEFAULT false NOT NULL, updated timestamp without time zone DEFAULT now() NOT NULL, created timestamp without time zone DEFAULT now() NOT NULL, role_id bigint NOT NULL, last_visit timestamp without time zone DEFAULT now() NOT NULL ); ALTER TABLE admin."user" OWNER TO postgres; CREATE INDEX fki_user_role_id_fkey ON "user" USING btree (role_id); ALTER TABLE ONLY "user" ADD CONSTRAINT user_role_id_fkey FOREIGN KEY (role_id) REFERENCES acl_role(id);
-- file:triggers.sql ln:1331 expect:true create trigger trig_upd_before before update on parted_stmt_trig for each statement execute procedure trigger_notice()
<reponame>mattpasco-microsoft/fhir-server  /************************************************************* Stored procedures for creating and deleting **************************************************************/ -- -- STORED PROCEDURE -- UpsertResource_5 -- -- DESCRIPTION -- Creates or updates (including marking deleted) a FHIR resource -- -- PARAMETERS -- @baseResourceSurrogateId -- * A bigint to which a value between [0, 80000) is added, forming a unique ResourceSurrogateId. -- * This value should be the current UTC datetime, truncated to millisecond precision, with its 100ns ticks component bitshifted left by 3. -- @resourceTypeId -- * The ID of the resource type (See ResourceType table) -- @resourceId -- * The resource ID (must be the same as the in the resource itself) -- @etag -- * If specified, the version of the resource to update -- @allowCreate -- * If false, an error is thrown if the resource does not already exist -- @isDeleted -- * Whether this resource marks the resource as deleted -- @keepHistory -- * Whether the existing version of the resource should be preserved -- @requestMethod -- * The HTTP method/verb used for the request -- @searchParamHash -- * A hash of the resource's latest indexed search parameters -- @rawResource -- * A compressed UTF16-encoded JSON document -- @resourceWriteClaims -- * Claims on the principal that performed the write -- @compartmentAssignments -- * Compartments that the resource is part of -- @referenceSearchParams -- * Extracted reference search params -- @tokenSearchParams -- * Extracted token search params -- @tokenTextSearchParams -- * The text representation of extracted token search params -- @stringSearchParams -- * Extracted string search params -- @numberSearchParams -- * Extracted number search params -- @quantitySearchParams -- * Extracted quantity search params -- @uriSearchParams -- * Extracted URI search params -- @dateTimeSearchParms -- * Extracted datetime search params -- @referenceTokenCompositeSearchParams -- * Extracted reference$token search params -- @tokenTokenCompositeSearchParams -- * Extracted token$token tokensearch params -- @tokenDateTimeCompositeSearchParams -- * Extracted token$datetime search params -- @tokenQuantityCompositeSearchParams -- * Extracted token$quantity search params -- @tokenStringCompositeSearchParams -- * Extracted token$string search params -- @tokenNumberNumberCompositeSearchParams -- * Extracted token$number$number search params -- @isResourceChangeCaptureEnabled -- * Whether capturing resource change data -- -- RETURN VALUE -- The version of the resource as a result set. Will be empty if no insertion was done. -- CREATE PROCEDURE dbo.UpsertResource_5 @baseResourceSurrogateId bigint, @resourceTypeId smallint, @resourceId varchar(64), @eTag int = NULL, @allowCreate bit, @isDeleted bit, @keepHistory bit, @requestMethod varchar(10), @searchParamHash varchar(64), @rawResource varbinary(max), @resourceWriteClaims dbo.BulkResourceWriteClaimTableType_1 READONLY, @compartmentAssignments dbo.BulkCompartmentAssignmentTableType_1 READONLY, @referenceSearchParams dbo.BulkReferenceSearchParamTableType_1 READONLY, @tokenSearchParams dbo.BulkTokenSearchParamTableType_1 READONLY, @tokenTextSearchParams dbo.BulkTokenTextTableType_1 READONLY, @stringSearchParams dbo.BulkStringSearchParamTableType_2 READONLY, @numberSearchParams dbo.BulkNumberSearchParamTableType_1 READONLY, @quantitySearchParams dbo.BulkQuantitySearchParamTableType_1 READONLY, @uriSearchParams dbo.BulkUriSearchParamTableType_1 READONLY, @dateTimeSearchParms dbo.BulkDateTimeSearchParamTableType_2 READONLY, @referenceTokenCompositeSearchParams dbo.BulkReferenceTokenCompositeSearchParamTableType_1 READONLY, @tokenTokenCompositeSearchParams dbo.BulkTokenTokenCompositeSearchParamTableType_1 READONLY, @tokenDateTimeCompositeSearchParams dbo.BulkTokenDateTimeCompositeSearchParamTableType_1 READONLY, @tokenQuantityCompositeSearchParams dbo.BulkTokenQuantityCompositeSearchParamTableType_1 READONLY, @tokenStringCompositeSearchParams dbo.BulkTokenStringCompositeSearchParamTableType_1 READONLY, @tokenNumberNumberCompositeSearchParams dbo.BulkTokenNumberNumberCompositeSearchParamTableType_1 READONLY, @isResourceChangeCaptureEnabled bit = 0 AS SET NOCOUNT ON; SET XACT_ABORT ON; -- variables for the existing version of the resource that will be replaced BEGIN TRANSACTION; DECLARE @previousResourceSurrogateId AS BIGINT; DECLARE @previousVersion AS BIGINT; DECLARE @previousIsDeleted AS BIT; -- This should place a range lock on a row in the IX_Resource_ResourceTypeId_ResourceId nonclustered filtered index SELECT @previousResourceSurrogateId = ResourceSurrogateId, @previousVersion = Version, @previousIsDeleted = IsDeleted FROM dbo.Resource WITH (UPDLOCK, HOLDLOCK) WHERE ResourceTypeId = @resourceTypeId AND ResourceId = @resourceId AND IsHistory = 0; IF (@etag IS NOT NULL AND @etag <> @previousVersion) BEGIN THROW 50412, 'Precondition failed', 1; END DECLARE @version AS INT; -- the version of the resource being written IF (@previousResourceSurrogateId IS NULL) BEGIN -- There is no previous version of this resource IF (@isDeleted = 1) BEGIN -- Don't bother marking the resource as deleted since it already does not exist. COMMIT TRANSACTION; RETURN; END IF (@etag IS NOT NULL) BEGIN -- You can't update a resource with a specified version if the resource does not exist THROW 50404, 'Resource with specified version not found', 1; END IF (@allowCreate = 0) BEGIN THROW 50405, 'Resource does not exist and create is not allowed', 1; END SET @version = 1; END ELSE BEGIN -- There is a previous version IF (@isDeleted = 1 AND @previousIsDeleted = 1) BEGIN -- Already deleted - don't create a new version COMMIT TRANSACTION; RETURN; END SET @version = @previousVersion + 1; IF (@keepHistory = 1) BEGIN -- Set the existing resource as history UPDATE dbo.Resource SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; -- Set the indexes for this resource as history. -- Note there is no IsHistory column on ResourceWriteClaim since we do not query it. UPDATE dbo.CompartmentAssignment SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.ReferenceSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenText SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.StringSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.UriSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.NumberSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.QuantitySearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.DateTimeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.ReferenceTokenCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenTokenCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenDateTimeCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenQuantityCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenStringCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; UPDATE dbo.TokenNumberNumberCompositeSearchParam SET IsHistory = 1 WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; END ELSE BEGIN -- Not keeping history. Delete the current resource and all associated indexes. DELETE dbo.Resource WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.ResourceWriteClaim WHERE ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.CompartmentAssignment WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.ReferenceSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenText WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.StringSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.UriSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.NumberSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.QuantitySearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.DateTimeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.ReferenceTokenCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenTokenCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenDateTimeCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenQuantityCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenStringCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; DELETE dbo.TokenNumberNumberCompositeSearchParam WHERE ResourceTypeId = @resourceTypeId AND ResourceSurrogateId = @previousResourceSurrogateId; END END DECLARE @resourceSurrogateId AS BIGINT = @baseResourceSurrogateId + ( NEXT VALUE FOR ResourceSurrogateIdUniquifierSequence); DECLARE @isRawResourceMetaSet AS BIT; IF (@version = 1) BEGIN SET @isRawResourceMetaSet = 1; END ELSE BEGIN SET @isRawResourceMetaSet = 0; END INSERT INTO dbo.Resource (ResourceTypeId, ResourceId, Version, IsHistory, ResourceSurrogateId, IsDeleted, RequestMethod, RawResource, IsRawResourceMetaSet, SearchParamHash) VALUES (@resourceTypeId, @resourceId, @version, 0, @resourceSurrogateId, @isDeleted, @requestMethod, @rawResource, @isRawResourceMetaSet, @searchParamHash); INSERT INTO dbo.ResourceWriteClaim (ResourceSurrogateId, ClaimTypeId, ClaimValue) SELECT @resourceSurrogateId, ClaimTypeId, ClaimValue FROM @resourceWriteClaims; INSERT INTO dbo.CompartmentAssignment (ResourceTypeId, ResourceSurrogateId, CompartmentTypeId, ReferenceResourceId, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, CompartmentTypeId, ReferenceResourceId, 0 FROM @compartmentAssignments; INSERT INTO dbo.ReferenceSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, BaseUri, ReferenceResourceTypeId, ReferenceResourceId, ReferenceResourceVersion, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, BaseUri, ReferenceResourceTypeId, ReferenceResourceId, ReferenceResourceVersion, 0 FROM @referenceSearchParams; INSERT INTO dbo.TokenSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId, Code, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId, Code, 0 FROM @tokenSearchParams; INSERT INTO dbo.TokenText (ResourceTypeId, ResourceSurrogateId, SearchParamId, Text, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, Text, 0 FROM @tokenTextSearchParams; INSERT INTO dbo.StringSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, Text, TextOverflow, IsHistory, IsMin, IsMax) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, Text, TextOverflow, 0, IsMin, IsMax FROM @stringSearchParams; INSERT INTO dbo.UriSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, Uri, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, Uri, 0 FROM @uriSearchParams; INSERT INTO dbo.NumberSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SingleValue, LowValue, HighValue, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SingleValue, LowValue, HighValue, 0 FROM @numberSearchParams; INSERT INTO dbo.QuantitySearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId, QuantityCodeId, SingleValue, LowValue, HighValue, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId, QuantityCodeId, SingleValue, LowValue, HighValue, 0 FROM @quantitySearchParams; INSERT INTO dbo.DateTimeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, StartDateTime, EndDateTime, IsLongerThanADay, IsHistory, IsMin, IsMax) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, StartDateTime, EndDateTime, IsLongerThanADay, 0, IsMin, IsMax FROM @dateTimeSearchParms; INSERT INTO dbo.ReferenceTokenCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, BaseUri1, ReferenceResourceTypeId1, ReferenceResourceId1, ReferenceResourceVersion1, SystemId2, Code2, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, BaseUri1, ReferenceResourceTypeId1, ReferenceResourceId1, ReferenceResourceVersion1, SystemId2, Code2, 0 FROM @referenceTokenCompositeSearchParams; INSERT INTO dbo.TokenTokenCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId1, Code1, SystemId2, Code2, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId1, Code1, SystemId2, Code2, 0 FROM @tokenTokenCompositeSearchParams; INSERT INTO dbo.TokenDateTimeCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId1, Code1, StartDateTime2, EndDateTime2, IsLongerThanADay2, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId1, Code1, StartDateTime2, EndDateTime2, IsLongerThanADay2, 0 FROM @tokenDateTimeCompositeSearchParams; INSERT INTO dbo.TokenQuantityCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId1, Code1, SingleValue2, SystemId2, QuantityCodeId2, LowValue2, HighValue2, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId1, Code1, SingleValue2, SystemId2, QuantityCodeId2, LowValue2, HighValue2, 0 FROM @tokenQuantityCompositeSearchParams; INSERT INTO dbo.TokenStringCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId1, Code1, Text2, TextOverflow2, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId1, Code1, Text2, TextOverflow2, 0 FROM @tokenStringCompositeSearchParams; INSERT INTO dbo.TokenNumberNumberCompositeSearchParam (ResourceTypeId, ResourceSurrogateId, SearchParamId, SystemId1, Code1, SingleValue2, LowValue2, HighValue2, SingleValue3, LowValue3, HighValue3, HasRange, IsHistory) SELECT DISTINCT @resourceTypeId, @resourceSurrogateId, SearchParamId, SystemId1, Code1, SingleValue2, LowValue2, HighValue2, SingleValue3, LowValue3, HighValue3, HasRange, 0 FROM @tokenNumberNumberCompositeSearchParams; SELECT @version; IF (@isResourceChangeCaptureEnabled = 1) BEGIN --If the resource change capture feature is enabled, to execute a stored procedure called CaptureResourceChanges to insert resource change data. EXECUTE dbo.CaptureResourceChanges @isDeleted = @isDeleted, @version = @version, @resourceId = @resourceId, @resourceTypeId = @resourceTypeId; END COMMIT TRANSACTION; GO
<reponame>askmohanty/metasfresh -- 2021-09-19T13:12:04.959Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM EXP_FormatLine WHERE EXP_FormatLine_ID=549642 ; -- 2021-09-19T13:26:14.575Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM DLM_Partition_Config_Reference WHERE DLM_Partition_Config_Reference_ID=1000151 ; -- 2021-09-19T13:30:55.442Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=548351 ; -- 2021-09-19T13:30:55.447Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=548351 ; -- 2021-09-19T13:30:55.458Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=548351 ; -- 2021-09-19T13:30:55.464Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=546411 ; -- 2021-09-19T13:30:55.465Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=546411 ; -- 2021-09-19T13:30:55.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=546411 ; -- 2021-09-19T13:30:55.496Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('C_OrderLine','ALTER TABLE C_OrderLine DROP COLUMN IF EXISTS Link_OrderLine_ID') ; -- manually added on 22.11.2021 delete from ad_field where ad_column_id=55323; -- 2021-09-19T13:30:56.648Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=55323 ; --custom ad_fields in legacy DBs - safe to delete because we now have an m:n join table and an AD_Relation_Type for this delete from ad_field where AD_Column_ID=55323; -- 2021-09-19T13:30:56.648Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=55323 ;
<reponame>DavidBoddu1/sql-soccer-database-Examples USE SOCCER_DB GO -- 10. Write a query in SQL to find the number of matches were decided on penalties -- decided on penalties -- in the Round of 16. (match_mast) SELECT COUNT(decided_by) FROM match_mast WHERE decided_by = 'P' AND play_stage = 'R' GO
<gh_stars>0 -- line1
CREATE DATABASE items_system; CREATE TABLE roles( role_id serial PRIMARY KEY, role_name varchar(50) ); CREATE TABLE rules( rule_id serial PRIMARY KEY, rule_name varchar(50) ); CREATE TABLE roles_rules( role_id int REFERENCES rules(rule_id), rule_id int REFERENCES roles(role_id) ); CREATE TABLE users( user_id serial PRIMARY KEY, user_name varchar(50), role_id int REFERENCES roles(role_id) ); CREATE TABLE status( status_id serial PRIMARY KEY, status varchar(50) ); CREATE TABLE categories( category_id serial PRIMARY KEY, category varchar(50) ); CREATE TABLE items( item_id serial PRIMARY KEY, item_name varchar(50), user_id int REFERENCES users(user_id), category_id int REFERENCES categories(category_id), status_id int REFERENCES status(status_id) ); CREATE TABLE attachments( item_id int REFERENCES items(item_id), attachment varchar(50) ); CREATE TABLE comments_base( item_id int REFERENCES items(item_id), comment_text text ); INSERT INTO roles VALUES (DEFAULT, 'administrator'), (DEFAULT, 'manager'); INSERT INTO rules VALUES (DEFAULT, 'create item'), (DEFAULT, 'delete user'); INSERT INTO roles_rules VALUES (1, 1), (1, 2), (2, 1); INSERT INTO users VALUES (DEFAULT, 'ALeksandr', 2), (DEFAULT, 'Anna', 1); INSERT INTO categories VALUES (DEFAULT, 'Renovation'), (DEFAULT, 'Deletion'); INSERT INTO status VALUES (DEFAULT, 'In the process'), (DEFAULT, 'Done'); INSERT INTO items VALUES (DEFAULT, 'Repair database', 1, 1, 1), (DEFAULT, 'Remove user', 2, 2, 2); INSERT INTO attachments VALUES (1, 'attachment1'), (2, 'attachment1'); INSERT INTO comments_base VALUES (1, 'Do as soon as possible'), (2, 'Do during this week');
------------------------------------------------------------------------------- -- workcal type ------------------------------------------------------------------------------- CREATE TABLE WORKCAL_TYPE( ID BIGINT auto_increment, NAME VARCHAR(50), CONSTRAINT PK_WORKCAL_TYPE PRIMARY KEY(ID) ) engine=innodb;
<filename>src/main/resources/loudbbs.sql /* Navicat Premium Data Transfer Source Server : mysqlconncter Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 30/12/2019 20:14:31 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_category -- ---------------------------- DROP TABLE IF EXISTS `t_category`; CREATE TABLE `t_category` ( `cid` int(11) NOT NULL AUTO_INCREMENT, `cname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`cid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of t_category -- ---------------------------- INSERT INTO `t_category` VALUES (1, '英雄联盟'); INSERT INTO `t_category` VALUES (2, '刺客信条'); INSERT INTO `t_category` VALUES (3, '绝地求生'); -- ---------------------------- -- Table structure for t_common -- ---------------------------- DROP TABLE IF EXISTS `t_common`; CREATE TABLE `t_common` ( `coid` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL, `tid` int(11) NOT NULL, `updatetime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `maincommon` text CHARACTER SET utf8 COLLATE utf8_general_ci, PRIMARY KEY (`coid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of t_common -- ---------------------------- INSERT INTO `t_common` VALUES (1, 26, 6, '2019-12-20 16:57:33', '<div></div><p><prearial\';font-size:13.5pt;\">随便评论一些什么,让你感觉我看过了</prearial\';font-size:13.5pt;\"><br></p>'); INSERT INTO `t_common` VALUES (2, 43, 6, '2019-12-22 11:10:56', '<div></div><p><prearial\';font-size:13.5pt;\">宁说得对,IG野区栓条狗都能赢。<img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"></prearial\';font-size:13.5pt;\"><br></p>'); INSERT INTO `t_common` VALUES (3, 44, 5, '2019-12-22 11:10:56', '112233'); INSERT INTO `t_common` VALUES (4, 43, 4, '2019-12-22 16:29:32', '<p></p><p><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"></p><p>你猜猜怎么打?&nbsp;<br></p>'); INSERT INTO `t_common` VALUES (5, 43, 5, '2019-12-22 16:36:18', '<p></p><p>估计不好,怎么着也得等到巴黎圣母院再烧一次了<img src=\"https://img.nga.178.com/attachments/mon_201209/14/-47218_5052bc4cc6331.png\" \"=\"\"></p>'); INSERT INTO `t_common` VALUES (6, 26, 4, '2019-12-22 16:38:58', '<p><img onload=\"ubbcode.adjImgSize(this);\" src=\"https://img.nga.178.com/attachments/mon_201209/14/-47218_5052bc4cc6331.png\" \"=\"\" onerror=\"ubbcode.imgError(this)\">&nbsp;我太难了&nbsp;<br></p>'); INSERT INTO `t_common` VALUES (7, 26, 4, '2019-12-22 17:59:29', '<p><img src=\"https://img.nga.178.com/attachments/mon_201910/09/-jx594Q5-hwcKxToS3m-3m.png\">&nbsp;</p><p>哎嘿</p><blockquote>啊啊啊&nbsp;</blockquote>'); INSERT INTO `t_common` VALUES (8, 26, 5, '2019-12-27 18:05:32', '<p></p><p>宁看看楼上说的是人话吗?</p>'); -- ---------------------------- -- Table structure for t_topic -- ---------------------------- DROP TABLE IF EXISTS `t_topic`; CREATE TABLE `t_topic` ( `tid` int(11) NOT NULL AUTO_INCREMENT, `topicname` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `uid` int(11) NOT NULL, `cid` int(11) NOT NULL, `heat` int(11) DEFAULT NULL, `htmlmainbody` longtext CHARACTER SET utf8 COLLATE utf8_general_ci, `mainbody` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `createtime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `updatetime` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, PRIMARY KEY (`tid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of t_topic -- ---------------------------- INSERT INTO `t_topic` VALUES (1, '这是啥', 26, 1, 11, NULL, '测试2', NULL, NULL); INSERT INTO `t_topic` VALUES (4, '奥恩怎么打蛮子', 26, 1, 3, '<p></p><p>这咋打嘛!<br>今天打奥恩遇见个蛮子,被锤爆了。想问一下大家奥恩怎么打蛮子?<img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\">&nbsp;&nbsp;<br></p>', '今天打奥恩遇见个蛮子,被锤爆了。想问一下大家奥恩怎么打蛮子?', '2019-12-20 16:54:33', '2019-12-22 17:59:29'); INSERT INTO `t_topic` VALUES (5, '育碧什么时候重制二代三部曲', 26, 2, 3, '<div></div><p><prearial\';font-size:13.5pt;\">RT,育碧什么时候重制二代三部曲</prearial\';font-size:13.5pt;\"><br></p>', 'RT,育碧什么时候重制二代三部曲', '2019-12-20 16:57:33', '2019-12-27 18:05:32'); INSERT INTO `t_topic` VALUES (7, 'leyan真下饭啊,强刷对面石头人把自己刷空血了', 43, 1, 2, '<p></p><p>对面豹女3-0了<img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\"><img src=\"https://img4.nga.178.com/ngabbs/post/smile/ac18.png\" alt=\"喷\">&nbsp;&nbsp;<br></p>', '对面豹女3-0了。', '2019-12-22 11:38:02', '2019-12-22 11:38:02'); -- ---------------------------- -- Table structure for t_users -- ---------------------------- DROP TABLE IF EXISTS `t_users`; CREATE TABLE `t_users` ( `uid` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `password` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `access` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'defaultuser', `gender` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `birthday` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `avatar` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `email` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `phone` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, PRIMARY KEY (`uid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 54 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of t_users -- ---------------------------- INSERT INTO `t_users` VALUES (23, '张三', '123456', 'defaultuser', '男', '1999-10-11', 'unknown.png', NULL, NULL); INSERT INTO `t_users` VALUES (24, '张三', '1234', 'defaultuser', NULL, NULL, NULL, NULL, NULL); INSERT INTO `t_users` VALUES (26, 'zhangs', '1234', 'admin', NULL, NULL, NULL, NULL, NULL); INSERT INTO `t_users` VALUES (27, '孙悟空', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (33, '孙悟', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (34, 'mina', '1234', 'defaultuser', '', '1999-10-11', NULL, '', ''); INSERT INTO `t_users` VALUES (35, '悟', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (36, '1231', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (37, '123', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (38, '1223', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (39, '1561', '132', 'defaultuser', NULL, '1999-10-11', NULL, '', ''); INSERT INTO `t_users` VALUES (40, '1231', '11111', 'defaultuser', '汉子', '', NULL, '', ''); INSERT INTO `t_users` VALUES (41, '1233323', '199999', 'defaultuser', NULL, '1999-10-11', NULL, NULL, NULL); INSERT INTO `t_users` VALUES (42, 'yang', '1123', 'defaultuser', '妹纸', '', NULL, '', ''); INSERT INTO `t_users` VALUES (43, 'mimi', '123', 'defaultuser', '妹纸', '', NULL, '', ''); INSERT INTO `t_users` VALUES (44, '大傻子', '123111', 'defaultuser', '', '2019-00-12', NULL, '', ''); INSERT INTO `t_users` VALUES (45, '大傻子2', '123111', 'defaultuser', '', '2019-00-22', NULL, '', ''); INSERT INTO `t_users` VALUES (46, 'woca', '1234', 'defaultuser', '', '2019-12-04', NULL, '', ''); INSERT INTO `t_users` VALUES (47, 'root', '1234', 'admin', '汉子', '1992-10-08', NULL, '<EMAIL>', '15588888888'); INSERT INTO `t_users` VALUES (48, 'dashazi', '123123', 'defaultuser', '汉子', '1991-07-15', NULL, '', ''); INSERT INTO `t_users` VALUES (49, '1231234', '123123', 'defaultuser', '不告诉你', '2019-09-03', NULL, '', ''); INSERT INTO `t_users` VALUES (50, '3213132', '123123', 'defaultuser', '', '', NULL, '', ''); INSERT INTO `t_users` VALUES (51, 'asdasd', '111111', 'defaultuser', '', '', NULL, '', ''); INSERT INTO `t_users` VALUES (52, '11111', '1111', 'defaultuser', '', '', NULL, '', ''); INSERT INTO `t_users` VALUES (53, '2222', '2222', 'defaultuser', '', '', NULL, '', ''); SET FOREIGN_KEY_CHECKS = 1;
drop table simple if exists; create table if not exists simple ( id int auto_increment, string_col varchar(255), long_col long, primary key (id) ); drop table numeric_types if exists; create table if not exists numeric_types ( int_col int, boolean_col boolean, tinyint_col tinyint, smallint_col smallint, bigint_col bigint, decimal_col decimal, double_col double, real_col real ); drop table datetime_types if exists; create table if not exists datetime_types ( time_col time, date_col date, timestamp_col timestamp ); drop table binary_types if exists; create table if not exists binary_types ( --binary_col binary, blob_col blob, other_col other --uuid_col uuid ); drop table string_types if exists; create table if not exists string_types ( varchar_col varchar, varchar_ignorecase_col varchar_ignorecase, -- char_col char, clob_col clob ); drop table all_types if exists; create table if not exists all_types ( int_col int, boolean_col boolean, tinyint_col tinyint, smallint_col smallint, bigint_col bigint, decimal_col decimal, double_col double, real_col real, time_col time, date_col date, timestamp_col timestamp, binary_col binary, blob_col blob, other_col other, uuid_col uuid, varchar_col varchar, varchar_ignorecase_col varchar_ignorecase, char_col char, clob_col clob, id int auto_increment );
/* CloudEndure Update 9/9/20 - add tenancy, recommend_instance and recommendation_type - Only show data for AWS - prioritize recommendation_type ru over regular - Updated - 4/15/21 - Change view_device_v1 to view_device_v2 */ /* Get the RU CRE data */ With target_cre_data_ru as ( SELECT cre.device_fk ,cre.tenancy ,cre.recommendation_type ,cre.recommended_instance From view_credata_v2 cre Where lower(cre.vendor) IN ('aws') and lower(cre.recommendation_type) = 'ru' ), /* Get the Regular CRE data */ target_cre_data_reg as ( SELECT cre.device_fk ,cre.tenancy ,cre.recommendation_type ,cre.recommended_instance From view_credata_v2 cre Where lower(cre.vendor) IN ('aws') and lower(cre.recommendation_type) = 'regular' ) /* Pull all the CRE dat and device data together */ Select d.device_pk ,d.name "machineName" ,(SELECT array_to_string(array( Select ip.ip_address from view_ipaddress_v1 ip Where ip.device_fk = d.device_pk), ',')) "privateIPs" ,ru.tenancy ru_tenancy ,ru.recommendation_type ru_recommendation_type ,ru.recommended_instance ru_recommended_instance ,reg.tenancy reg_tenancy ,reg.recommendation_type reg_recommendation_type ,reg.recommended_instance reg_recommended_instance ,Case When ru.recommended_instance is Null Then reg.tenancy Else ru.tenancy End tenancy_sl ,Case When ru.recommended_instance is Null Then reg.recommendation_type Else ru.recommendation_type End recommendation_type_sl ,Case When ru.recommended_instance is Null Then reg.recommended_instance Else ru.recommended_instance End recommended_instance_sl From view_device_v2 d Left Join target_cre_data_ru ru on ru.device_fk = d.device_pk Left Join target_cre_data_reg reg on reg.device_fk = d.device_pk Where d.network_device = 'f' and (ru.recommended_instance != '' or reg.recommended_instance != '')
<filename>cayenne-gradle-plugin/src/test/resources/org/apache/cayenne/tools/test_project_db.sql -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may not use this file except in compliance -- with the License. You may obtain a copy of the License at -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, -- software distributed under the License is distributed on an -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -- KIND, either express or implied. See the License for the -- specific language governing permissions and limitations -- under the License. -- Test Schema for dbimport task test CREATE TABLE ARTIST (ARTIST_ID BIGINT NOT NULL, ARTIST_NAME CHAR (254) NOT NULL, DATE_OF_BIRTH DATE , PRIMARY KEY (ARTIST_ID)); CREATE TABLE NULL_TEST (ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, NAME VARCHAR (100), PRIMARY KEY (ID)); CREATE TABLE ARTIST_CT (ARTIST_ID INTEGER NOT NULL, ARTIST_NAME CHAR (254) NOT NULL, DATE_OF_BIRTH DATE , PRIMARY KEY (ARTIST_ID)); CREATE TABLE GENERATED_COLUMN (GENERATED_COLUMN INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, NAME VARCHAR (250), PRIMARY KEY (GENERATED_COLUMN)); CREATE TABLE GALLERY (GALLERY_ID INTEGER NOT NULL, GALLERY_NAME VARCHAR (100) NOT NULL, PRIMARY KEY (GALLERY_ID)); CREATE TABLE PAINTING1 (ARTIST_ID BIGINT , ESTIMATED_PRICE DECIMAL (10, 2), GALLERY_ID INTEGER , PAINTING_ID INTEGER NOT NULL, PAINTING_TITLE VARCHAR (255) NOT NULL, PRIMARY KEY (PAINTING_ID)); CREATE TABLE ARTGROUP (GROUP_ID INTEGER NOT NULL, NAME VARCHAR (100) NOT NULL, PARENT_GROUP_ID INTEGER , PRIMARY KEY (GROUP_ID)); CREATE TABLE EXHIBIT (CLOSING_DATE TIMESTAMP NOT NULL, EXHIBIT_ID INTEGER NOT NULL, GALLERY_ID INTEGER NOT NULL, OPENING_DATE TIMESTAMP NOT NULL, PRIMARY KEY (EXHIBIT_ID)); CREATE TABLE ARTIST_GROUP (ARTIST_ID BIGINT NOT NULL, GROUP_ID INTEGER NOT NULL, PRIMARY KEY (ARTIST_ID, GROUP_ID)); CREATE TABLE PAINTING (ARTIST_ID BIGINT , ESTIMATED_PRICE DECIMAL (10, 2), GALLERY_ID INTEGER , PAINTING_DESCRIPTION VARCHAR (255), PAINTING_ID INTEGER NOT NULL, PAINTING_TITLE VARCHAR (255) NOT NULL, PRIMARY KEY (PAINTING_ID)); CREATE TABLE ARTIST_EXHIBIT (ARTIST_ID BIGINT NOT NULL, EXHIBIT_ID INTEGER NOT NULL, PRIMARY KEY (ARTIST_ID, EXHIBIT_ID)); CREATE TABLE PAINTING_INFO (IMAGE_BLOB LONG VARCHAR FOR BIT DATA , PAINTING_ID INTEGER NOT NULL, TEXT_REVIEW LONG VARCHAR , PRIMARY KEY (PAINTING_ID)); ALTER TABLE PAINTING1 ADD FOREIGN KEY (ARTIST_ID) REFERENCES ARTIST (ARTIST_ID); ALTER TABLE ARTGROUP ADD FOREIGN KEY (PARENT_GROUP_ID) REFERENCES ARTGROUP (GROUP_ID); ALTER TABLE EXHIBIT ADD FOREIGN KEY (GALLERY_ID) REFERENCES GALLERY (GALLERY_ID); ALTER TABLE ARTIST_GROUP ADD FOREIGN KEY (ARTIST_ID) REFERENCES ARTIST (ARTIST_ID); ALTER TABLE ARTIST_GROUP ADD FOREIGN KEY (GROUP_ID) REFERENCES ARTGROUP (GROUP_ID); ALTER TABLE PAINTING ADD FOREIGN KEY (ARTIST_ID) REFERENCES ARTIST (ARTIST_ID); ALTER TABLE PAINTING ADD FOREIGN KEY (GALLERY_ID) REFERENCES GALLERY (GALLERY_ID); ALTER TABLE ARTIST_EXHIBIT ADD FOREIGN KEY (ARTIST_ID) REFERENCES ARTIST (ARTIST_ID); ALTER TABLE ARTIST_EXHIBIT ADD FOREIGN KEY (EXHIBIT_ID) REFERENCES EXHIBIT (EXHIBIT_ID); ALTER TABLE PAINTING_INFO ADD FOREIGN KEY (PAINTING_ID) REFERENCES PAINTING (PAINTING_ID); CREATE SEQUENCE PK_ARTGROUP AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_ARTIST AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_ARTIST_CT AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_ARTIST_GROUP AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_EXHIBIT AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_GALLERY AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_GENERATED_COLUMN AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_NULL_TEST AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_PAINTING AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE; CREATE SEQUENCE PK_PAINTING1 AS BIGINT START WITH 200 INCREMENT BY 20 NO MAXVALUE NO CYCLE;
<reponame>SerhiiPetliak/medik -- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Янв 21 2016 г., 13:55 -- Версия сервера: 5.6.26 -- Версия PHP: 5.4.44 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 */; -- -- База данных: `medSys` -- -- -------------------------------------------------------- -- -- Структура таблицы `chronicDiseases` -- CREATE TABLE IF NOT EXISTS `chronicDiseases` ( `chronicDiseasesId` int(5) NOT NULL AUTO_INCREMENT, `chronicDiseasesName` varchar(255) NOT NULL, PRIMARY KEY (`chronicDiseasesId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Структура таблицы `chronicDiseasesPeoples` -- CREATE TABLE IF NOT EXISTS `chronicDiseasesPeoples` ( `chronicDiseasesId` int(5) NOT NULL, `peopleId` int(5) NOT NULL, KEY `chronicDiseasesId` (`chronicDiseasesId`), KEY `peopleId` (`peopleId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `grafts` -- CREATE TABLE IF NOT EXISTS `grafts` ( `graftId` int(5) NOT NULL AUTO_INCREMENT, `graftName` varchar(255) NOT NULL, PRIMARY KEY (`graftId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Дамп данных таблицы `grafts` -- INSERT INTO `grafts` (`graftId`, `graftName`) VALUES (1, 'п1'), (2, 'п2'); -- -------------------------------------------------------- -- -- Структура таблицы `graftsPeoples` -- CREATE TABLE IF NOT EXISTS `graftsPeoples` ( `graftId` int(5) NOT NULL, `peopleId` int(5) NOT NULL, KEY `graftId` (`graftId`), KEY `peopleId` (`peopleId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `graftsPeoples` -- INSERT INTO `graftsPeoples` (`graftId`, `peopleId`) VALUES (1, 2), (2, 2), (2, 4), (1, 5), (1, 3); -- -------------------------------------------------------- -- -- Структура таблицы `peoples` -- CREATE TABLE IF NOT EXISTS `peoples` ( `peopleId` int(5) NOT NULL AUTO_INCREMENT, `peopleFIO` varchar(255) NOT NULL, `peopleBirthday` date NOT NULL, `peopleWorking` int(5) NOT NULL, `peopleFluNumber` varchar(255) NOT NULL, `peopleFluDate` date NOT NULL, `peopleFluResult` int(1) NOT NULL, `peopleFluTerm` int(2) NOT NULL, `peopleStreet` int(5) NOT NULL, PRIMARY KEY (`peopleId`), KEY `peopleWorking` (`peopleWorking`), KEY `peopleFlu` (`peopleFluNumber`), KEY `peopleStreet` (`peopleStreet`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Дамп данных таблицы `peoples` -- INSERT INTO `peoples` (`peopleId`, `peopleFIO`, `peopleBirthday`, `peopleWorking`, `peopleFluNumber`, `peopleFluDate`, `peopleFluResult`, `peopleFluTerm`, `peopleStreet`) VALUES (2, 'Чувак1', '2000-11-12', 1, '123124234', '2013-11-12', 1, 3, 1), (3, 'Чувак2', '2000-11-12', 1, '123124234', '2012-11-12', 1, 4, 2), (4, 'Чувак3', '2000-11-12', 1, '123124234', '2010-11-12', 1, 6, 1), (5, '<NAME>.', '1970-10-10', 1, '123456', '2000-10-10', 1, 16, 1); -- -------------------------------------------------------- -- -- Структура таблицы `streets` -- CREATE TABLE IF NOT EXISTS `streets` ( `streetId` int(2) NOT NULL AUTO_INCREMENT, `streetName` varchar(255) NOT NULL, PRIMARY KEY (`streetId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Дамп данных таблицы `streets` -- INSERT INTO `streets` (`streetId`, `streetName`) VALUES (1, 'Кірова'), (2, 'Пушкіна'); -- -------------------------------------------------------- -- -- Структура таблицы `working` -- CREATE TABLE IF NOT EXISTS `working` ( `workingId` int(5) NOT NULL AUTO_INCREMENT, `workingName` varchar(255) NOT NULL, PRIMARY KEY (`workingId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Дамп данных таблицы `working` -- INSERT INTO `working` (`workingId`, `workingName`) VALUES (1, 'Пенсионер'); -- -- Ограничения внешнего ключа сохраненных таблиц -- -- -- Ограничения внешнего ключа таблицы `chronicDiseasesPeoples` -- ALTER TABLE `chronicDiseasesPeoples` ADD CONSTRAINT `chd` FOREIGN KEY (`chronicDiseasesId`) REFERENCES `chronicDiseases` (`chronicDiseasesId`) ON UPDATE CASCADE, ADD CONSTRAINT `chp` FOREIGN KEY (`peopleId`) REFERENCES `peoples` (`peopleId`) ON UPDATE CASCADE; -- -- Ограничения внешнего ключа таблицы `graftsPeoples` -- ALTER TABLE `graftsPeoples` ADD CONSTRAINT `gg` FOREIGN KEY (`graftId`) REFERENCES `grafts` (`graftId`) ON UPDATE CASCADE, ADD CONSTRAINT `gp` FOREIGN KEY (`peopleId`) REFERENCES `peoples` (`peopleId`) ON UPDATE CASCADE; -- -- Ограничения внешнего ключа таблицы `peoples` -- ALTER TABLE `peoples` ADD CONSTRAINT `ws` FOREIGN KEY (`peopleStreet`) REFERENCES `streets` (`streetId`) ON UPDATE CASCADE, ADD CONSTRAINT `www` FOREIGN KEY (`peopleWorking`) REFERENCES `working` (`workingId`) ON UPDATE CASCADE; /*!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 */;
INSERT INTO physical_parameter (created_at, updated_at, engine_type_id, name, dynamic, custom_method, description, allowed_values, parameter_type) SELECT now(), now(), physical_enginetype.id, 'wait_timeout', 1, null, 'The number of seconds the server waits for activity on a noninteractive connection before closing it.', '1:31536000', 'integer' from physical_enginetype where name = 'mysql' limit 1; INSERT INTO physical_parameter (created_at, updated_at, engine_type_id, name, dynamic, custom_method, description, allowed_values, parameter_type) SELECT now(), now(), physical_enginetype.id, 'interactive_timeout', 1, null, 'The number of seconds the server waits for activity on an interactive connection before closing it.', '1:31536000', 'integer' from physical_enginetype where name = 'mysql' limit 1; INSERT INTO physical_parameter (created_at, updated_at, engine_type_id, name, dynamic, custom_method, description, allowed_values, parameter_type) SELECT now(), now(), physical_enginetype.id, 'log_bin_trust_function_creators', 1, null, 'It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log.', '', 'boolean' from physical_enginetype where name = 'mysql' limit 1; INSERT INTO physical_replicationtopology_parameter (replicationtopology_id, parameter_id) SELECT physical_replicationtopology.id, physical_parameter.id FROM physical_replicationtopology, physical_parameter WHERE substr(physical_replicationtopology.class_path, 1, 36) = 'drivers.replication_topologies.mysql' AND physical_parameter.name in ('wait_timeout', 'interactive_timeout', 'log_bin_trust_function_creators') AND physical_parameter.engine_type_id = (select id from physical_enginetype where name = 'mysql' limit 1);
<filename>database/mysql/src/main/resources/com/intel/mtwilson/database/mysql/20150909140000_mtwilson30_updating_ta_log_table.sql -- created 2015-09-09 -- This script updates the size of the error field in the ta log table. ALTER TABLE `mw_ta_log` MODIFY `error` VARCHAR(500); INSERT INTO `mw_changelog` (`ID`, `APPLIED_AT`, `DESCRIPTION`) VALUES (20150909140000, NOW(), 'Patch for updating the error field of the ta log table.');
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_12_mysql_compatibility/_09_table_related/cases/_013_group_by.sql<gh_stars>1-10 create table tree(id int, parentid int default 4, text varchar(32)); insert into tree values(1,null,'A'); insert into tree values(2,null,'B'); insert into tree values(3,1,'AA'); insert into tree values(4,1,'AB'); insert into tree values(5,2,'BA'); insert into tree values(6,2,'BB'); insert into tree values(7,3,'AAA'); insert into tree values(8,3,'AAB'); select concat(text,'-',text) as fulltext from tree group by fulltext order by concat(text,'-',text); select parentid,count(*) as cnt from tree group by parentid order by parentid; select parentid,count(*) as cnt from tree group by parentid order by null; select parentid,count(*) as cnt from tree group by parentid desc; drop table tree;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字after(非保留),作为视图名 --关键字after作为视图名,不带引号,创建成功 CREATE or replace VIEW after AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --清理环境 drop view after; --关键字after作为视图名,加双引号,创建成功 CREATE or replace VIEW "after" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --清理环境 drop VIEW "after"; --关键字after作为视图名,加单引号,合理报错 CREATE or replace VIEW 'after' AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --关键字after作为视图名,加反引号,合理报错 CREATE or replace VIEW `after` AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
<gh_stars>0 -- @testpoint:opengauss关键字schema(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists schema; create group schema with password '<PASSWORD>'; drop group schema; --关键字带双引号-成功 drop group if exists "schema"; create group "schema" with password '<PASSWORD>'; drop group "schema"; --关键字带单引号-合理报错 drop group if exists 'schema'; create group 'schema' with password '<PASSWORD>'; --关键字带反引号-合理报错 drop group if exists `schema`; create group `schema` with password '<PASSWORD>';
INSERT INTO `institutions` (`id`, `full_name`, `nickname`, `ancestry`) VALUES ('1', 'Test Institution', 'Testy', NULL), ('0', 'Non Partner Institution', 'Non partner', NULL), #set manually to have id=0 ('3', 'sub test institution 1', 'sub test institution 1', 1), ('4', 'sub test institution 2', 'sub test institution 2', 1), ('5', 'UCOP', 'UCOP', NULL), ('6', 'CDL', 'CDL', 5), ('7', 'NRS', 'NRS', 5); INSERT INTO `users` (`id`, `institution_id`, `email`, `first_name`, `last_name`, `token`, `token_expiration`, `prefs`, `created_at`, `updated_at`, `login_id`, `active`, `deleted_at`, `orcid_id`, `auth_token`) VALUES (1,0,'<EMAIL>','Admin','<PASSWORD>',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D69747465643A20747275650A20203A7669735F6368616E67653A20747275650A20203A7375626D69747465643A20747275650A20203A757365725F61646465643A20747275650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D69747465643A20747275650A20203A6465616374697665643A20747275650A3A7265736F757263655F656469746F72733A0A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D69747465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2015-03-09 19:03:04','2015-03-09 19:03:28','admin123',1,NULL,NULL,'9401c20f3d7fb9b6b8a3e84b7513b362'), (2,5,'<EMAIL>','Resource','123',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A20747275650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A20747275650A20203A64656163746976617465643A20747275650A20203A64656C657465643A20747275650A20203A6E65775F636F5F6F776E65723A20747275650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:46:51','2013-12-20 21:32:03','resource123',1,NULL,NULL,NULL), (3,5,'<EMAIL>','Require123','123',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A20747275650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A20747275650A20203A64656163746976617465643A20747275650A20203A64656C657465643A20747275650A20203A6E65775F636F5F6F776E65723A20747275650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:47:12','2013-11-05 17:33:48','require123',1,NULL,NULL,NULL), (4,5,'<EMAIL>','Instrev123','123',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A20747275650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A20747275650A20203A64656163746976617465643A20747275650A20203A64656C657465643A20747275650A20203A6E65775F636F5F6F776E65723A20747275650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:47:37','2013-11-05 15:20:10','instrev123',1,NULL,NULL,NULL), (5,5,'<EMAIL>','Instadmin123','123',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A2066616C73650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A2066616C73650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A2066616C73650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:48:06','2014-01-07 22:21:56','instadmin123',1,NULL,NULL,NULL), (6,4,'<EMAIL>','testsub','02',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A2066616C73650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A2066616C73650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A2066616C73650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:48:06','2014-01-07 22:21:56','testsub_02',1,NULL,NULL,NULL), (7,5,'<EMAIL>','ucopuser001','ucopuser001',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A2066616C73650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A2066616C73650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A2066616C73650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:48:06','2014-01-07 22:21:56','ucopuser001',1,NULL,NULL,NULL), (8,6,'<EMAIL>','cdluser001','cdluser001',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A2066616C73650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A2066616C73650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A2066616C73650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:48:06','2014-01-07 22:21:56','cdluser001',1,NULL,NULL,NULL), (9,7,'<EMAIL>','nrsuser001','nrsuser001',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A2066616C73650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A2066616C73650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A2066616C73650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:48:06','2014-01-07 22:21:56','nrsuser001',1,NULL,NULL,NULL), (15,3,'<EMAIL>','testsub','01',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D697465643A20747275650A20203A7075626C69736865643A20747275650A20203A7375626D69747465643A20747275650A3A646D705F636F3A0A20203A7375626D69747465643A2066616C73650A20203A64656163746976617465643A2066616C73650A20203A64656C657465643A2066616C73650A20203A6E65775F636F5F6F776E65723A2066616C73650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A3A7265736F757263655F656469746F72733A0A20203A636F6D6D697465643A20747275650A20203A6465616374697665643A20747275650A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D697465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2013-11-01 23:46:01','2013-12-11 20:40:29','testsub_01',1,NULL,NULL,NULL), (19,6,'<EMAIL>','cdluser002','cdluser002',NULL,NULL,X'2D2D2D0A3A75736572733A0A20203A726F6C655F6772616E7465643A20747275650A3A646D705F6F776E6572735F616E645F636F3A0A20203A6E65775F636F6D6D656E743A20747275650A20203A636F6D6D69747465643A20747275650A20203A7669735F6368616E67653A20747275650A20203A7375626D69747465643A20747275650A20203A757365725F61646465643A20747275650A3A726571756972656D656E745F656469746F72733A0A20203A636F6D6D69747465643A20747275650A20203A6465616374697665643A20747275650A3A7265736F757263655F656469746F72733A0A20203A64656C657465643A20747275650A20203A6173736F6369617465645F636F6D6D69747465643A20747275650A3A696E737469747574696F6E616C5F7265766965776572733A0A20203A7375626D69747465643A20747275650A20203A6E65775F636F6D6D656E743A20747275650A20203A617070726F7665645F72656A65637465643A20747275650A','2015-03-09 20:21:54','2015-03-09 20:21:54','cdluser002',1,NULL,NULL,'0af21b93c29859d18dac218551c40da6'); INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'DMP Administrator', '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (2, 'Resources Editor', '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (3, 'Template Editor', '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (4, 'Institutional Reviewer', '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (5, 'Institutional Administrator', '2013-11-01 23:46:01', '2013-12-11 20:40:29'); INSERT INTO `authorizations` (`id`, `role_id`, `user_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (2, 2, 2, '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (3, 3, 3, '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (4, 4, 4, '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (5, 5, 5, '2013-11-01 23:46:01', '2013-12-11 20:40:29'), (6, 3, 15, '2013-11-01 23:46:01', '2013-12-11 20:40:29'); INSERT INTO `requirements_templates` (`id`, `institution_id`, `name`, `active`, `start_date`, `end_date`, `visibility`, `review_type`, `created_at`, `updated_at`) VALUES (1,6,'cdl_institutional_template_with_optional_review',1,NULL,NULL,'institutional','informal_review','2015-03-09 20:07:29','2015-03-09 21:37:59'), (2,6,'cdl public template - no review',1,NULL,NULL,'public','no_review','2015-03-09 20:10:23','2015-03-09 20:11:45'), (3,5,'ucop_institutional_template_informal_review',1,NULL,NULL,'institutional','informal_review','2015-03-09 20:12:14','2015-03-09 20:13:04'), (4,5,'ucop public template - formal review',1,NULL,NULL,'public','formal_review','2015-03-09 20:13:39','2015-03-09 20:14:23'), (5,7,'NRS_institutional_template_no_review',1,NULL,NULL,'institutional','no_review','2015-03-09 20:14:58','2015-03-09 20:15:59'), (6,7,'NRS public template no review',1,NULL,NULL,'public','no_review','2015-03-09 20:17:24','2015-03-09 20:18:17'), (7,0,'public non partner template - no review',1,NULL,NULL,'public','no_review','2015-03-09 20:18:51','2015-03-09 21:31:47'), (8,0,'Inactive non partner public template - no review',0,NULL,NULL,'public','no_review','2015-03-09 20:20:42','2015-03-09 20:20:58'), (9,6,'CDL Public - Mandatory Review',1,NULL,NULL,'public','formal_review','2015-03-09 21:32:47','2015-03-09 21:33:27'), (10,5,'UCOP public - no Review',1,NULL,NULL,'public','no_review','2015-03-09 21:34:15','2015-03-09 21:35:00'), (11,7,'Colors - NRS public - no review',1,NULL,NULL,'public','no_review','2015-03-09 21:35:38','2015-03-09 21:37:28'); INSERT INTO `requirements` (`id`, `position`, `text_brief`, `text_full`, `requirement_type`, `obligation`, `default`, `requirements_template_id`, `created_at`, `updated_at`, `ancestry`, `group`) VALUES (1,1,' How old are you ?','How old are you ?','numeric','recommended',NULL,1,'2015-03-09 20:08:16','2015-03-09 20:08:16',NULL,0), (2,2,'Choose a color','Choose a color','enum','mandatory',NULL,1,'2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,0), (3,1,'How many days ?','How many days ?','numeric','recommended',NULL,2,'2015-03-09 20:11:00','2015-03-09 20:11:00',NULL,0), (4,2,'Types of data','Types of data','text','mandatory',NULL,2,'2015-03-09 20:11:38','2015-03-09 20:11:38',NULL,0), (5,1,'Describe Data','Describe Data','text','mandatory_applicable',NULL,3,'2015-03-09 20:12:43','2015-03-09 20:12:43',NULL,0), (6,2,'Describe methods','Describe methods','text','recommended',NULL,3,'2015-03-09 20:13:01','2015-03-09 20:13:01',NULL,0), (7,1,'Mandatory requirement 1','Mandatory requirement 1','text','mandatory',NULL,4,'2015-03-09 20:13:58','2015-03-09 20:13:58',NULL,0), (8,2,'Mandatory Requirement 2','Mandatory Requirement 2','text','mandatory',NULL,4,'2015-03-09 20:14:16','2015-03-09 20:14:16',NULL,0), (9,1,'Question 1','Question 1','text','optional',NULL,5,'2015-03-09 20:15:21','2015-03-09 20:15:21',NULL,0), (10,2,'Question 2','Question 2','enum','recommended',NULL,5,'2015-03-09 20:15:55','2015-03-09 20:15:55',NULL,0), (11,1,'Birthday','Birthday','date','recommended',NULL,6,'2015-03-09 20:17:53','2015-03-09 20:17:53',NULL,0), (12,2,'Meeting','meeting','date','mandatory',NULL,6,'2015-03-09 20:18:12','2015-03-09 20:18:12',NULL,0), (13,1,'Why?','Why?','text','optional',NULL,7,'2015-03-09 20:19:13','2015-03-09 20:19:13',NULL,0), (14,2,'Where?','Where?','text','recommended',NULL,7,'2015-03-09 20:19:32','2015-03-09 20:19:32',NULL,0), (15,3,'When?','When?','date','mandatory',NULL,7,'2015-03-09 20:19:47','2015-03-09 20:19:47',NULL,0), (16,1,'Inactive question 1','inactive question 1','text','optional',NULL,8,'2015-03-09 20:20:58','2015-03-09 20:20:58',NULL,0), (17,1,'q1','q1','text','mandatory',NULL,9,'2015-03-09 21:32:59','2015-03-09 21:32:59',NULL,0), (18,2,'q2','q2','date','mandatory_applicable',NULL,9,'2015-03-09 21:33:20','2015-03-09 21:33:20',NULL,0), (19,1,'q1','q1','text','recommended',NULL,10,'2015-03-09 21:34:28','2015-03-09 21:34:28',NULL,0), (20,2,'q2','q2','enum','optional',NULL,10,'2015-03-09 21:34:55','2015-03-09 21:34:55',NULL,0), (21,1,'Choose','Choose','enum','mandatory_applicable',NULL,11,'2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0); INSERT INTO `labels` (`id`, `desc`, `created_at`, `updated_at`, `position`, `requirement_id`) VALUES (1,'Years','2015-03-09 20:08:16','2015-03-09 20:08:16',NULL,1), (2,'Days','2015-03-09 20:11:00','2015-03-09 20:11:00',NULL,3); INSERT INTO `enumerations` (`id`, `requirement_id`, `value`, `created_at`, `updated_at`, `position`, `default`) VALUES (1,2,'mint ','2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,1), (2,2,'light green','2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,0), (3,2,'dark green','2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,0), (4,2,'emerald green','2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,0), (5,2,'medium green','2015-03-09 20:09:34','2015-03-09 20:09:34',NULL,0), (6,10,'A','2015-03-09 20:15:55','2015-03-09 20:15:55',NULL,1), (7,10,'B','2015-03-09 20:15:55','2015-03-09 20:15:55',NULL,0), (8,10,'C','2015-03-09 20:15:55','2015-03-09 20:15:55',NULL,0), (9,20,'a','2015-03-09 21:34:55','2015-03-09 21:34:55',NULL,0), (10,20,'b','2015-03-09 21:34:55','2015-03-09 21:34:55',NULL,0), (11,20,'c','2015-03-09 21:34:55','2015-03-09 21:34:55',NULL,1), (12,21,'blue','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,1), (13,21,'yellow','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (14,21,'beige','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (15,21,'dark purple','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (16,21,'dark orange','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (17,21,'terracotta','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (18,21,'off white','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0), (19,21,'turquoise','2015-03-09 21:36:34','2015-03-09 21:36:34',NULL,0);
<reponame>mmartsiusheu/TRPO<filename>test-db/src/main/resources/data-scripts.sql INSERT INTO category (category_id, category_name, parent_id) VALUES (1, 'Bricks & Blocks', NULL); INSERT INTO category (category_id, category_name, parent_id) VALUES (2, 'Fittings', NULL); INSERT INTO category (category_id, category_name, parent_id) VALUES (3, 'Fixings', NULL); INSERT INTO category (category_id, category_name, parent_id) VALUES (4, 'Cement & Aggregates', NULL); INSERT INTO category (category_id, category_name, parent_id) VALUES (5, 'Bricks', 1); INSERT INTO category (category_id, category_name, parent_id) VALUES (6, 'Blocks', 1); INSERT INTO category (category_id, category_name, parent_id) VALUES (7, 'Screws', 2); INSERT INTO category (category_id, category_name, parent_id) VALUES (8, 'Bolts', 3); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Red bricks', 2500, '2012-06-18', 5); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Aerated Concrete Block', 750, '2017-12-01', 6); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Dense Concrete Blocks', 4000, '2018-01-11', 6); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Dense Hollow Concrete Blocks', 2750, '2018-01-11', 6); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Wood Screws 3.0 x 20mm', 200, '2018-09-02', 7); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Wood Screws 4.0 x 20mm', 170, '2018-09-02', 7); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Fischer FXA Through Bolt M8', 50, '2019-04-01', 8); INSERT INTO product (prod_name, prod_amount, date_added, category_id) VALUES ('Fischer FXA Through Bolt M9', 100, '2019-04-11', 8);
<reponame>charanhu1/DLithe_DotnetFSD_JanFeb2022-1 create database webapi; use webapi; create table UserRegistration ( id int primary key identity, Name varchar(25), Email varchar(25), Gender varchar(25), Username varchar(25), Password varchar(25) ) select * from UserRegistration; insert into UserRegistration values('Charan','<EMAIL>','Male','charanhu','<PASSWORD>');
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Dim 22 Novembre 2015 à 23:43 -- Version du serveur : 5.6.17-log -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 */; -- -- Base de données : `symfony_nov` -- -- -------------------------------------------------------- -- -- Structure de la table `app_users` -- CREATE TABLE IF NOT EXISTS `app_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(25) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `is_active` tinyint(1) NOT NULL, `api_key` varchar(100) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_C2502824F85E0677` (`username`), UNIQUE KEY `UNIQ_C2502824E7927C74` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=18 ; -- -- Contenu de la table `app_users` -- INSERT INTO `app_users` (`id`, `username`, `password`, `email`, `is_active`, `api_key`) VALUES (1, 'Nathan', '$2y$13$Y1FQ49ze9a8ZTyWaoygy4uEA/V7R/tqUGoAY7V7dOJtr8p8be1Dx6', '<EMAIL>', 1, ''), (3, 'Maxime', '$2y$13$wru1b.kcf8chcJ6AuvWup.Kqn.OPL29w7hUFJkq2OODWfw8iYIpe2', '<EMAIL>', 1, ''), (4, 'Arthur', '$2y$13$C5yKzuddIcEkjkKPTZMAceMsNCGX4l8GwSQqGSSzIGvNTsEd4Nszy', '<EMAIL>', 1, ''), (5, 'Guillaume', '$2y$13$5THRZL1ennK6.xXxC7GGTeHhnsMEYYHUsnWj7bXxKwTpWYt5mA/2m', '<EMAIL>', 1, ''), (6, 'Romain', '$2y$13$0Hg3claeGTK/FOLHWSb0S.8Nv8PseeYiI5FQ7VI.uqesVzB.Y7RVq', '<EMAIL>', 1, ''), (7, 'Batman', '$2y$13$kriFBa4GB7XAKYI0WTQNQuDUMT9o1oSnJXnEPcvOxk1ZDBWlpyvGS', '<EMAIL>', 1, ''), (8, 'Popeye', '$2y$13$x6OMLvLNTjx9.pOxad7Cw./6n/0ecIqv381Dv81bBxoNRzvPgVcuS', '<EMAIL>', 1, ''), (9, 'Jean', '$2y$13$pUk9ZPdXSr0JDMFLWDJUXeJT.VfHBUyiVnGwe7CQ3tAz8dBBPOVN2', '<EMAIL>', 1, ''), (10, 'Retard', '$2y$13$4yKS1jEUppOmpXgynd0Kt.jH7cD1uTFlkyT/b0effXO5BUa4tRlfy', '<EMAIL>', 1, ''), (11, 'Quentin', '$2y$13$IHzs1usFBH.71sKzvkLHveR3keOWGiw5jk0W9.vIadNsU4lB3N4ja', '<EMAIL>', 1, ''), (12, 'Yamel', '$2y$13$.tWWx5enB6b9JOCBqFFXZOpZWgxWjupxmSNQo6Dwa54Hct57dILZm', '<EMAIL>', 1, ''), (13, 'Token', <PASSWORD>', '<EMAIL>', 1, ''), (14, 'Fa', '$2y$13$8/vLt89TvCD.oDjlsDVjI.wMDo50Gff0dknPx9cE3vuvNjighaTKG', '<EMAIL>', 1, ''), (15, 'Roger', '$2y$13$svme/PjAEVTueQG0z3IbJOtrC1uql2H87UuXpSxM7LOTTG44L5e/6', '<EMAIL>', 1, 'd32ca0fa0168c344a781e9ec85bb178f'), (16, 'Dedpol', '$2y$13$oU.s5gxZJUg4IbagTS1JiuuuRCJqFFve/F1ByoTUCJF1ipikjj37u', '<EMAIL>', 1, 'b425dd8fdb65f8a6c6c4f4771e58650e'), (17, 'Portal', <PASSWORD>$Knpwn<PASSWORD>', '<EMAIL>', 1, '33ef27b8177b2583abb9075697ff986a'); -- -------------------------------------------------------- -- -- Structure de la table `grade` -- CREATE TABLE IF NOT EXISTS `grade` ( `id` int(11) NOT NULL AUTO_INCREMENT, `grade` smallint(6) NOT NULL, `comment` varchar(125) COLLATE utf8_unicode_ci NOT NULL, `lesson_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_595AAE34CDF80196` (`lesson_id`), KEY `IDX_595AAE34A76ED395` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Contenu de la table `grade` -- INSERT INTO `grade` (`id`, `grade`, `comment`, `lesson_id`, `user_id`) VALUES (1, 12, 'ur lif sux', 1, 9), (2, 20, 'gg', 2, 1), (3, 20, 'gg', 2, 3), (4, 20, 'gg', 2, 5); -- -------------------------------------------------------- -- -- Structure de la table `lesson` -- CREATE TABLE IF NOT EXISTS `lesson` ( `id` int(11) NOT NULL AUTO_INCREMENT, `writer_id` int(11) DEFAULT NULL, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `summary` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `content` longtext COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `IDX_F87474F31BC7E6B6` (`writer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Contenu de la table `lesson` -- INSERT INTO `lesson` (`id`, `writer_id`, `title`, `summary`, `content`) VALUES (1, 1, 'Symfedit', 'C''est l''EDIT de votre vie', 'uiuiui'), (2, 9, 'How to Rekta Newb', 'Exemple : HTR <NAME>', 'REKT.GIF'); -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `grade` -- ALTER TABLE `grade` ADD CONSTRAINT `FK_595AAE34A76ED395` FOREIGN KEY (`user_id`) REFERENCES `app_users` (`id`), ADD CONSTRAINT `FK_595AAE34CDF80196` FOREIGN KEY (`lesson_id`) REFERENCES `lesson` (`id`); -- -- Contraintes pour la table `lesson` -- ALTER TABLE `lesson` ADD CONSTRAINT `FK_F87474F31BC7E6B6` FOREIGN KEY (`writer_id`) REFERENCES `app_users` (`id`); /*!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 */;
<gh_stars>1-10 /* Contributer : github.com/jaswal72 Email : <EMAIL> */ SELECT DISTINCT CITY FROM STATION WHERE MOD(ID,2)=0;
<reponame>ligana/Ensemble-om-SpringBoot drop table if exists FM_STRUCTURE_CONV; /*==============================================================*/ /* Table: FM_STRUCTURE_CONV */ /*==============================================================*/ create table FM_STRUCTURE_CONV ( CHAR_VALUE varchar(1) not null comment '字符值', NUMERIC_EQUIV varchar(50) not null comment '同等的数字', COMPANY varchar(20) comment '法人', TRAN_TIMESTAMP varchar(17) comment '交易时间戳', TRAN_TIME Decimal(11,0) comment '交易时间', primary key (CHAR_VALUE) ); alter table FM_STRUCTURE_CONV comment '结构转化规则定义表 undefined';
-- drop commit views DROP VIEW RIDW.VW_GIT_COMMIT_LOOKUP; DROP VIEW RIDW.VW_GIT_COMMIT; -- drop commit schemas DROP TABLE RIODS.GIT_COMMIT_LOOKUP; DROP TABLE RIODS.GIT_COMMIT; -- drop issue views DROP VIEW RIDW.VW_GIT_ISSUE_ASSIGNEE; DROP VIEW RIDW.VW_GIT_ISSUE_RELATION; DROP VIEW RIDW.VW_GIT_ISSUE; -- drop issue schemas DROP TABLE RIODS.GIT_ISSUE_ASSIGNEE; DROP TABLE RIODS.GIT_ISSUE_RELATION; DROP TABLE RIODS.GIT_ISSUE; -- drop merge request views DROP VIEW RIDW.VW_GIT_MERGE_REQUEST_ASSIGNEE; DROP VIEW RIDW.VW_GIT_MERGE_REQUEST_RELATION; DROP VIEW RIDW.VW_GIT_MERGE_REQUEST; -- drop merge request schemas DROP TABLE RIODS.GIT_MERGE_REQUEST_ASSIGNEE; DROP TABLE RIODS.GIT_MERGE_REQUEST_RELATION; DROP TABLE RIODS.GIT_MERGE_REQUEST;
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.4.','00.00.4.','PENDAPATAN','75000000','0','75000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.4.1.','00.00.4.1.','PENDAPATAN ASLI DAERAH','75000000','0','75000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.4.1.4.','00.00.4.1.4.','Lain-lain Pendapatan Asli Daerah yang Sah','75000000','0','75000000','0','0','Peraturan Daerah Kabupaten Kulon Progo Nomor 7 Tahun 2009 tentang Penyertaan Modal Pemerintah Daerah kepada Koperasi Kredit \"Pinunjul\" Koperasi KUB KUD Se Kulon Progo dan Koperasi Unit Desa \"Sedyo Rahayu\", Lembaran Daerah Kabupaten Kulon Progo Tahun 2009 Nomor 4 Seri E','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.5.','00.00.5.','BELANJA','2748574145','0','2748574145','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.5.1.','00.00.5.1.','BELANJA TIDAK LANGSUNG','1977408145','0','1977408145','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.00.00.5.1.1.','00.00.5.1.1.','Belanja Pegawai','1977408145','0','1977408145','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.26.5.2.','01.26.5.2.','BELANJA LANGSUNG','771166000','0','771166000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.','01.','Program Pelayanan Administrasi Perkantoran','105797000','0','105797000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.26.','01.26.','Penyediaan Jasa dan Peralatan Perkantoran','33890700','0','33890700','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.26.5.2.2.','01.26.5.2.2.','Belanja Barang dan Jasa','33890700','0','33890700','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.27.','01.27.','Penyediaan Jasa keuangan','15509300','0','15509300','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.27.5.2.1.','01.27.5.2.1.','Belanja Pegawai','15300000','0','15300000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.27.5.2.2.','01.27.5.2.2.','Belanja Barang dan Jasa','209300','0','209300','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.28.','01.28.','Penyediaan Rapat-Rapat, Konsultasi dan Koordinasi','56397000','0','56397000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.01.28.5.2.2.','01.28.5.2.2.','Belanja Barang dan Jasa','56397000','0','56397000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.11.','11.','Program Peningkatan Sarana dan Prasarana Perkantoran','265948800','0','265948800','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.11.01.','11.01.','Pengadaan Sarana dan Prasarana Perkantoran','157298000','0','157298000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.11.01.5.2.3.','11.01.5.2.3.','Belanja Modal','157298000','0','157298000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.11.02.','11.02.','Pemeliharaan Sarana dan Prasarana Perkantoran','108650800','0','108650800','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.11.02.5.2.2.','11.02.5.2.2.','Belanja Barang dan Jasa','108650800','0','108650800','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.','12.','Program Perencanaan, Pengendalian dan Evaluasi Kinerja','12500000','0','12500000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.01.','12.01.','Penyusunan Perencanaan Kinerja SKPD','2000000','0','2000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.01.5.2.1.','12.01.5.2.1.','Belanja Pegawai','816000','0','816000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.01.5.2.2.','12.01.5.2.2.','Belanja Barang dan Jasa','1184000','0','1184000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.02.','12.02.','Penyusunan Laporan Keuangan','4000000','0','4000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.02.5.2.1.','12.02.5.2.1.','Belanja Pegawai','1485000','0','1485000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.02.5.2.2.','12.02.5.2.2.','Belanja Barang dan Jasa','2515000','0','2515000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.03.','12.03.','Pengendalian, Evaluasi dan Pelaporan Kinerja','6500000','0','6500000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.03.5.2.1.','12.03.5.2.1.','Belanja Pegawai','1320000','0','1320000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.12.03.5.2.2.','12.03.5.2.2.','Belanja Barang dan Jasa','5180000','0','5180000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.','16.','Program Pengembangan Kewirausahaan dan Keunggulan Kompetitif dan Usaha Kecil Menengah','232434200','0','232434200','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.11.','16.11.','Penyelenggaraan promosi produk KUMKM','66000000','0','66000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.11.5.2.2.','16.11.5.2.2.','Belanja Barang dan Jasa','66000000','0','66000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.12.','16.12.','Peningkatan legalitas produk KUMKM','19750000','0','19750000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.12.5.2.1.','16.12.5.2.1.','Belanja Pegawai','3810000','0','3810000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.12.5.2.2.','16.12.5.2.2.','Belanja Barang dan Jasa','15940000','0','15940000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.13.','16.13.','Peningkatan dan pengembangan jaringan kerjasama Usaha KUMKM','17984200','0','17984200','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.13.5.2.1.','16.13.5.2.1.','Belanja Pegawai','8340000','0','8340000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.13.5.2.2.','16.13.5.2.2.','Belanja Barang dan Jasa','9644200','0','9644200','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.14.','16.14.','Pengembangan Usaha KUMKM (DANA CUKAI)','100200000','0','100200000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.14.5.2.1.','16.14.5.2.1.','Belanja Pegawai','16590000','0','16590000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.14.5.2.2.','16.14.5.2.2.','Belanja Barang dan Jasa','83610000','0','83610000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.15.','16.15.','Pemantauan pengelolaan penggunaan dana Pemerintah bagi KUMKM','10000000','0','10000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.15.5.2.1.','16.15.5.2.1.','Belanja Pegawai','4740000','0','4740000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.15.5.2.2.','16.15.5.2.2.','Belanja Barang dan Jasa','5260000','0','5260000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.16.','16.16.','Pelatihan Kewirausahaan','18500000','0','18500000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.16.5.2.1.','16.16.5.2.1.','Belanja Pegawai','6255000','0','6255000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.16.16.5.2.2.','16.16.5.2.2.','Belanja Barang dan Jasa','12245000','0','12245000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.','18.','Program Peningkatan Kualitas Kelembagaan Koperasi','154486000','0','154486000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.12.','18.12.','Penilaian Kesehatan KSP/USP','31748000','0','31748000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.12.5.2.1.','18.12.5.2.1.','Belanja Pegawai','10320000','0','10320000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.12.5.2.2.','18.12.5.2.2.','Belanja Barang dan Jasa','21428000','0','21428000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.16.','18.16.','Peningkatan Pemasyarakatan Perkoperasian','43800000','0','43800000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.16.5.2.1.','18.16.5.2.1.','Belanja Pegawai','9790000','0','9790000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.16.5.2.2.','18.16.5.2.2.','Belanja Barang dan Jasa','34010000','0','34010000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.17.','18.17.','Penyusunan Data KUMKM','14938000','0','14938000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.17.5.2.1.','18.17.5.2.1.','Belanja Pegawai','5565000','0','5565000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.17.5.2.2.','18.17.5.2.2.','Belanja Barang dan Jasa','9373000','0','9373000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.18.','18.18.','Pelayanan Legalitas dan Kualitas Kelembagaan Koperasi','30000000','0','30000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.18.5.2.1.','18.18.5.2.1.','Belanja Pegawai','11240000','0','11240000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.18.5.2.2.','18.18.5.2.2.','Belanja Barang dan Jasa','18760000','0','18760000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.19.','18.19.','Pelatihan Organisasi, Manajemen Usaha dan Keuangan Koperasi','34000000','0','34000000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.19.5.2.1.','18.19.5.2.1.','Belanja Pegawai','11055000','0','11055000','0','0','','2','2'), ('0','145','67','1.15.01','1.15','3401','2016','1.15.1.15.01.18.19.5.2.2.','18.19.5.2.2.','Belanja Barang dan Jasa','22945000','0','22945000','0','0','','2','2'),
<reponame>greatvpn/SSRPanel -- 注册默认的标签 INSERT INTO `config` VALUES ('54', 'initial_labels_for_user', '');
-- ALTER TABLE `itv` ADD `enable_wowza_load_balancing` tinyint default 0; ALTER TABLE `itv` ADD `quality` varchar(16) default 'high'; ALTER TABLE `users` ADD `tv_quality` varchar(16) default 'high'; --//@UNDO ALTER TABLE `itv` DROP `enable_wowza_load_balancing`; ALTER TABLE `itv` DROP `quality`; ALTER TABLE `users` DROP `tv_quality`; --
/****** Object: StoredProcedure [GetH09Level11111ReChild] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GetH09Level11111ReChild]') AND type in (N'P', N'PC')) DROP PROCEDURE [GetH09Level11111ReChild] GO CREATE PROCEDURE [GetH09Level11111ReChild] @CNarentID2 int AS BEGIN SET NOCOUNT ON /* Get H09Level11111ReChild from table */ SELECT [Level_1_1_1_1_1_ReChild].[Level_1_1_1_1_1_Child_Name] FROM [Level_1_1_1_1_1_ReChild] WHERE [Level_1_1_1_1_1_ReChild].[CNarentID2] = @CNarentID2 AND [Level_1_1_1_1_1_ReChild].[IsActive] = 'true' END GO /****** Object: StoredProcedure [AddH09Level11111ReChild] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AddH09Level11111ReChild]') AND type in (N'P', N'PC')) DROP PROCEDURE [AddH09Level11111ReChild] GO CREATE PROCEDURE [AddH09Level11111ReChild] @Level_1_1_1_1_ID int, @Level_1_1_1_1_1_Child_Name varchar(50) AS BEGIN SET NOCOUNT ON /* Insert object into Level_1_1_1_1_1_ReChild */ INSERT INTO [Level_1_1_1_1_1_ReChild] ( [CNarentID2], [Level_1_1_1_1_1_Child_Name] ) VALUES ( @Level_1_1_1_1_ID, @Level_1_1_1_1_1_Child_Name ) END GO /****** Object: StoredProcedure [UpdateH09Level11111ReChild] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[UpdateH09Level11111ReChild]') AND type in (N'P', N'PC')) DROP PROCEDURE [UpdateH09Level11111ReChild] GO CREATE PROCEDURE [UpdateH09Level11111ReChild] @Level_1_1_1_1_ID int, @Level_1_1_1_1_1_Child_Name varchar(50) AS BEGIN SET NOCOUNT ON /* Check for object existance */ IF NOT EXISTS ( SELECT [CNarentID2] FROM [Level_1_1_1_1_1_ReChild] WHERE [CNarentID2] = @Level_1_1_1_1_ID AND [IsActive] = 'true' ) BEGIN RAISERROR ('''H09Level11111ReChild'' object not found. It was probably removed by another user.', 16, 1) RETURN END /* Update object in Level_1_1_1_1_1_ReChild */ UPDATE [Level_1_1_1_1_1_ReChild] SET [Level_1_1_1_1_1_Child_Name] = @Level_1_1_1_1_1_Child_Name WHERE [CNarentID2] = @Level_1_1_1_1_ID END GO /****** Object: StoredProcedure [DeleteH09Level11111ReChild] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[DeleteH09Level11111ReChild]') AND type in (N'P', N'PC')) DROP PROCEDURE [DeleteH09Level11111ReChild] GO CREATE PROCEDURE [DeleteH09Level11111ReChild] @Level_1_1_1_1_ID int AS BEGIN SET NOCOUNT ON /* Check for object existance */ IF NOT EXISTS ( SELECT [CNarentID2] FROM [Level_1_1_1_1_1_ReChild] WHERE [CNarentID2] = @Level_1_1_1_1_ID AND [IsActive] = 'true' ) BEGIN RAISERROR ('''H09Level11111ReChild'' object not found. It was probably removed by another user.', 16, 1) RETURN END /* Mark H09Level11111ReChild object as not active */ UPDATE [Level_1_1_1_1_1_ReChild] SET [IsActive] = 'false' WHERE [Level_1_1_1_1_1_ReChild].[CNarentID2] = @Level_1_1_1_1_ID END GO
--Problem 9 ALTER TABLE Users DROP CONSTRAINT PK__Users__3214EC07D8634093 -- Намира се в Keys на дадена таблица. ALTER TABLE Users ADD CONSTRAINT IdUsername_PK PRIMARY KEY (Id, Username)
CREATE TABLE KC_QRTZ_JOB_LISTENERS ( JOB_NAME VARCHAR(200) NOT NULL, JOB_GROUP VARCHAR(200) NOT NULL, JOB_LISTENER VARCHAR(200) NOT NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP,JOB_LISTENER) );
# Time: O(n^2) # Space: O(n) SELECT wt1.Id FROM Weather wt1, Weather wt2 WHERE wt1.Temperature > wt2.Temperature AND TO_DAYS(wt1.DATE)-TO_DAYS(wt2.DATE)=1;
DROP TABLE IF EXISTS @writeDatabaseSchema.@regimenTable_tmp; WITH add_groups AS ( SELECT r1.person_id, r1.drug_era_id, r1.concept_name, r1.ingredient_start_date, min(r2.ingredient_start_date) as ingredient_start_date_new FROM @writeDatabaseSchema.@regimenTable r1 LEFT JOIN @writeDatabaseSchema.@regimenTable r2 on r1.person_id = r2.person_id and r2.ingredient_start_date <= (r1.ingredient_start_date) and r2.ingredient_start_date >= (r1.ingredient_start_date - @dateLagInput) GROUP BY r1.person_id, r1.drug_era_id, r1.concept_name, r1.ingredient_start_date ), regimens AS ( SELECT person_id, ingredient_start_date_new, MAX(CASE WHEN ingredient_start_date = ingredient_start_date_new THEN 1 ELSE 0 END) as contains_original_ingredient FROM add_groups g GROUP BY ingredient_start_date_new, person_id ORDER BY ingredient_start_date_new ), regimens_to_keep AS ( SELECT rs.person_id, gs.drug_era_id, gs.concept_name, rs.ingredient_start_date_new as ingredient_start_date FROM regimens rs LEFT JOIN add_groups gs on rs.person_id = gs.person_id and rs.ingredient_start_date_new = gs.ingredient_start_date_new WHERE contains_original_ingredient > 0 ), updated_table AS ( SELECT * FROM regimens_to_keep UNION SELECT person_id, drug_era_id, concept_name, ingredient_start_date FROM @writeDatabaseSchema.@regimenTable WHERE drug_era_id NOT IN (SELECT drug_era_id FROM regimens_to_keep) ) SELECT person_id, drug_era_id, concept_name, ingredient_start_date INTO @writeDatabaseSchema.@regimenTable_tmp FROM updated_table; DROP TABLE IF EXISTS @writeDatabaseSchema.@regimenTable; CREATE TABLE @writeDatabaseSchema.@regimenTable ( person_id bigint not null, drug_era_id bigint, concept_name varchar(200), ingredient_start_date date not null ) ; INSERT INTO @writeDatabaseSchema.@regimenTable ( SELECT * FROM @writeDatabaseSchema.@regimenTable_tmp); DROP TABLE IF EXISTS @writeDatabaseSchema.@regimenTable_tmp;
<reponame>alexcontini/egeria<gh_stars>0 -- SPDX-License-Identifier: Apache-2.0 -- Copyright Contributors to the ODPi Egeria project. create database "CompanyDirectoryDatabase" encoding 'UTF8'; \c "CompanyDirectoryDatabase"; drop table IF EXISTS "ContactPhone" ; CREATE TABLE "ContactPhone" ( "RecId" INT NOT NULL, "ContactType" CHAR NOT NULL, "Number" VARCHAR(40) NOT NULL ) ; \copy "ContactPhone" from '../CompanyDirectoryDatabase-ContactPhone.csv' with csv header DELIMITER ';' ;
<gh_stars>1-10 begin; select plan(1); select is('{45, -90}'::s2latlng, s2latlng(0.7853981633974483,-1.5707963267948966), 's2latlng rom degrees'); select * from finish(); rollback;
<reponame>InsightsDev-dev/tajo insert OVERWRITE into T3 select l_orderkey, '##' as col1 from lineitem join orders on l_orderkey = o_orderkey group by l_orderkey, col1 order by l_orderkey;
-- @concurrency 8 -- @iterations 1 INSERT INTO ao_part_table select '2011-01-02', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-03', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-04', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-05', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-06', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-07', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-08', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-09', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-10', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-11', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-12', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-13', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-14', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-19', data, description from ao_part_table where eventdate = '2011-01-01'; INSERT INTO ao_part_table select '2011-01-20', data, description from ao_part_table where eventdate = '2011-01-01';