sql
stringlengths
6
1.05M
<reponame>niclacombe/mortenuit -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: mn_personnages -- ------------------------------------------------------ -- Server version 5.5.5-10.1.21-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 16-11-2020 a las 01:57:45 -- Versión del servidor: 10.3.16-MariaDB -- Versión de PHP: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
IF OBJECT_ID('tempdb..#sp_help_revlogin2') IS NOT NULL DROP PROCEDURE #sp_help_revlogin2 GO /********************************************************************************************* sp_help_revlogin2 V1.2 <NAME> https://eitanblumin.com | https://madeiradata.com https://gist.github.com/EitanBlumin/1f19b0b3f59a9220...
USE tarsreplica; -- REF_DATA_ITEM_MASTER REPLACE INTO REF_DATA_ITEM_MASTER (item_id, item_desc1, item_desc2, category_id) VALUES (879,'Male',NULL,38), (880,'Female',NULL,38), (1242,'Mr',NULL,89), (1243,'Mrs',NULL,89), (1244,'Miss',NULL,89), (2047,'Ms',NULL,89), (2220,'Dr',NULL,89), (2221,'Rev',NULL,89), (3692,...
/* Welcome to the SQL mini project. For this project, you will use Springboard' online SQL platform, which you can log into through the following link: https://sql.springboard.com/ Username: student Password: <PASSWORD> The data you need is in the "country_club" database. This database contains 3 tables: i) the "...
<filename>application/sql/kisa_contests.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.1.8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 22, 2014 at 10:26 PM -- Server version: 5.5.37-cll -- PHP Version: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
<reponame>NYCPlanning/civic-data-loader \COPY dsny_facilities_specialdropoff FROM './temp/dsny_facilities_specialdropoff/dsny_facilities_specialdropoff.csv' CSV HEADER;
<reponame>mala14/fmcm -- DROP TABLE IF EXISTS `fmcm_comment`; CREATE TABLE IF NOT EXISTS `fmcm_comment` ( `id_comment` int(6) NOT NULL AUTO_INCREMENT PRIMARY KEY, `id_todo` int(6) NOT NULL, `comment` text NOT NULL, `id_user` varchar(25) DEFAULT NULL, `saved` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARS...
<filename>Snipets/Queries/Quality/Tables without Primary Keys.sql -- Tables without Primary Keys.sql SELECT * FROM (SELECT owner owner, TABLE_NAME TABLE_NAME, owner sdev_link_owner, TABLE_NAME sdev_link_name, 'TABLE' sdev_link_type FROM sys.dba_t...
<filename>core-services/egov-workflow-v2/src/main/resources/db/migration/main/V20210111134335__wf_added_assignee_idx_ddl.sql CREATE INDEX IF NOT EXISTS idx_eg_wf_assignee_v2_assignee on eg_wf_assignee_v2(tenantid, assignee);
-- ------------------------------------------------------------------ -- Title: Select patientunitstayid from intakeoutput -- Notes: cap_leak_index/analysis/sql/IO_exclusion.sql -- cap_leak_index, 20190511 NYU Datathon -- eICU Collaborative Research Database v2.0. -- we want to exclude patients based on...
CREATE OR REPLACE FUNCTION s_user_id_by_email( email_value TEXT ) RETURNS BIGINT LANGUAGE SQL VOLATILE RETURNS NULL ON NULL INPUT PARALLEL UNSAFE AS $$ SELECT tu_id FROM t_users WHERE tu_email = email_value LIMIT 1 $$;
 CREATE PROCEDURE Integration.MigrateStagedPurchaseData WITH EXECUTE AS OWNER AS BEGIN SET NOCOUNT ON; SET XACT_ABORT ON; BEGIN TRAN; DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key] FROM Integration.Lineage WHERE [Table Name] = N'Pu...
<gh_stars>1-10 CREATE TABLE [zz~EventType] ( [ET_Code] AUTOINCREMENT CONSTRAINT [ET_Code] UNIQUE CONSTRAINT [PrimaryKey] PRIMARY KEY UNIQUE NOT NULL , [ET_Des] VARCHAR (30), [Units] VARCHAR (10), [Lane_Cnt] SHORT , [R_Code] LONG , [Include] BIT , [EntrantNum] SHORT , [Flag] BIT , [PlacesAc...
<filename>Misc/PythonSQL/TrainTipPredictionModelSciKitPy.sql<gh_stars>100-1000 /****** Object: StoredProcedure [dbo].[TrainTipPredictionModelSciKitPy] Script Date: 5/17/2017 11:36:11 PM ******/ USE [TaxiNYC_Sample] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO DROP PROCEDURE IF EXISTS TrainTipPredictionMo...
<filename>modules/t/test-genome-DBs/homo_sapiens/core/karyotype.sql CREATE TABLE `karyotype` ( `karyotype_id` int(10) unsigned NOT NULL auto_increment, `seq_region_id` int(10) unsigned NOT NULL default '0', `seq_region_start` int(10) NOT NULL default '0', `seq_region_end` int(10) NOT NULL default '0', `band` ...
<filename>ratpack-cassandra-migrate/src/test/resources/migration.cql CREATE TABLE a ( id text, value text, PRIMARY KEY (id) ); INSERT INTO a (id, value) VALUES ('1', 'success')
-- Install plpqsql if not exists DELIMITER ;; CREATE OR REPLACE FUNCTION create_language_plpgsql() RETURNS BOOLEAN AS $$ CREATE LANGUAGE plpgsql; SELECT TRUE; $$ LANGUAGE SQL;; DELIMITER ; SELECT CASE WHEN NOT ( SELECT TRUE AS exists FROM pg_language WHERE lanname = 'plpgsql' ...
-- To find out how many queries on collection "QIN-BREAST" made on past month SELECT * FROM ncia.query_history_attribute ha, ncia.query_history h where h.query_history_pk_id = ha.query_history_pk_id and ha.attribute_value = 'QIN-BREAST' and h.query_execute_timestamp >= NOW() - INTERVAL 1 MONTH;
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>1-10 drop table if exists tt, t,t1,t2; create table t(i bigint, j SMALLINT, k NUMERIC(5,0),l FLOAT,m date,n char(200) ); create unique index u_t_i on t(i); create unique index u_t_j_k on t(j, k); create unique index u_t_i_k on t(j, k,i); create unique index u_t_l_k on t(j...
<filename>database_processing/sql_commands/commands/04_view_failed_consent_crawls.sql<gh_stars>0 -- Select failed consent crawls and attach corresponding URL (interrupted crawls not included) -- used for statistics and debugging of crawler CREATE VIEW IF NOT EXISTS view_failed_consent_crawls AS SELECT res.*, site_visit...
<reponame>fajarsodik/simple-crud-codeigniter<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 16 Sep 2019 pada 08.08 -- Versi server: 10.1.39-MariaDB -- Versi PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACT...
<reponame>maavia10/user-team -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 25, 2019 at 08:12 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.19-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00...
<filename>macdinh.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost:3306 -- Thời gian đã tạo: Th10 05, 2021 lúc 04:59 AM -- Phiên bản máy phục vụ: 5.7.33 -- Phiên bản PHP: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2020 at 06:00 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : 172.16.31.10 Source Server Version : 50723 Source Host : 172.16.31.10:3306 Source Database : dblog Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2019-01-02 11:23:19 */ SET FOREIGN_KEY...
<filename>SQL Scripts/16a-sorting_out_tube_network.sql -- Been various versions of tube networks in my database now -- Believe that this is the best CREATE TABLE station_geom_depth AS ( SELECT shortname, longname, line, in_order, section, the_geom FROM underground_routes ); SELECT * FROM station_geom_dep...
<reponame>wernerholzapfel/supereleven2019 INSERT INTO question(answer,question,"sortId", "competitionId", "predictionId") VALUES (NULL,'Wie wordt topscorer van de Eredivisie ?',1 , '535de68e-0e11-4b07-9977-1a8499643c09', '76626b1e-afeb-4a38-b0df-1f24af5510f9'); INSERT INTO question(answer,question,"sortId", "competitio...
<filename>Forum/DB/beet.sql /* SQLyog Professional v12.09 (64 bit) MySQL - 5.5.56 : Database - bbs ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014...
<reponame>openfieldlive/cassandra_udf use mykeyspace; -- Converti un timestamp en format date et retourne un chaine de caractere CREATE OR REPLACE FUNCTION timestamp_as_date_string ( input timestamp) RETURNS NULL ON NULL INPUT RETURNS text LANGUAGE java AS ' java.text.SimpleDateFormat sdf = new java.text.SimpleDate...
CREATE TABLE `sap_reservation_document_item_data` ( `Reservation` varchar(10) NOT NULL, `ReservationItem` varchar(4) NOT NULL, `RecordType` varchar(1) NOT NULL, `Product` varchar(40) DEFAULT NULL, `RequirementType` varchar(2) DEFAULT NULL, `M...
<filename>useroux.sql CREATE DATABASE IF NOT EXISTS `useroux` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `useroux`; -- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64) -- -- Host: localhost Database: useroux -- -----------------------------------...
-- misc4.test -- -- execsql { -- BEGIN; -- CREATE TABLE t3(a,b,c); -- INSERT INTO t1 SELECT * FROM t1; -- ROLLBACK; -- } BEGIN; CREATE TABLE t3(a,b,c); INSERT INTO t1 SELECT * FROM t1; ROLLBACK;
<filename>SQL/SampleQueries.sql -- ############################################################################# -- Most Recent SQL SampleQueries for IT Audit Testwork | 11-7-18 -- ############################################################################# -- =========================================================...
# -- Population file for production data - copy this over into 2.sql to setup the prod database # # -- Disable inspection for checking tables exist as they are in another file # -- noinspection SqlResolveForFile # # # -- -------------------------------------------------------------- # # --- !Ups # -- Population data fo...
SELECT "TableauSQL"."LSTG_FORMAT_NAME" AS "none_LSTG_FORMAT_NAME_nk", SUM("TableauSQL"."TRANS_CNT") AS "sum_TRANS_CNT_qk" FROM ( select test_kylin_fact.lstg_format_name, sum(price) as GMV, count(seller_id) as TRANS_CNT from test_kylin_fact group by test_kylin_fact.lstg_format_name ) "TableauSQL" GROUP BY ...
-- Change to inactive organization UPDATE [PIMS_TST].[dbo].[PIMS_ORGANIZATION] SET [IS_DISABLED] = 1, [CONCURRENCY_CONTROL_NUMBER] = 2 WHERE [ORGANIZATION_ID] = 48532
LOCK TABLES `lzfolderstructure` WRITE; INSERT INTO `lzfolderstructure` VALUES (1,'Applications',0), (2,'Business Unit',1), (3,'Team',1), (4,'Solutions',1); UNLOCK TABLES;
CREATE TABLE IF NOT EXISTS default.graphite_distributed ( Path String, Value Float64, Time UInt32, Date Date, Timestamp UInt32 ) ENGINE = Distributed('hmrc_data_cluster', '', 'graphite', cityHash64(Path)); CREATE TABLE IF NOT EXISTS default.graphite_tree_distributed ( Date Date, Level UInt32, Path Stri...
-- -- Copyright 2011 Clockwork -- -- Licensed 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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agree...
DROP TABLE IF EXISTS WORK_GENERATED_KEYS; DROP TABLE IF EXISTS UNAPPLIED_CASH; DROP TABLE IF EXISTS SERVICES_ACCOUNTING_CODES; DROP TABLE IF EXISTS SERVICES_PTMR_VARIABLE_TRANSLATIONS; DROP TABLE IF EXISTS SERVICES_SUBJECT_CATEGORY_TRANSLATIONS; DROP TABLE IF EXISTS SERVICES_CLIENT_MASTER; DROP TABLE IF EXISTS SERVICES...
/* Navicat Premium Data Transfer Source Server : d98e953019e56927 Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : home_decoration Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 01-02-2019 a las 10:38:16 -- Versión del servidor: 10.1.37-MariaDB-cll-lve -- Versión de PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
<reponame>indrasaputra/shortener<gh_stars>0 BEGIN; DROP TABLE IF EXISTS urls; COMMIT;
DROP TABLE DUMMY%Machine% DROP TABLE PERSON%Machine%
CREATE OR REPLACE FUNCTION copy_listing_changes_across_events( from_event_id INTEGER, to_event_id INTEGER ) RETURNS void LANGUAGE plpgsql AS $$ DECLARE to_event events%ROWTYPE; BEGIN SELECT INTO to_event * FROM events WHERE id = to_event_id; WITH event_lcs AS ( SELECT * FROM ...
-- batch 64 RGM SELECT * FROM _all_interaction6_item WHERE _turn = 1 ORDER BY _turn, `asin`, rank LIMIT 106752 ; SELECT * FROM _all_interaction6_item WHERE _turn = 2 AND _no> 107460 AND _no <= 133188 -- +25728 ORDER BY _turn, `asin`, rank ; -- batch 64 (Full train PRM:1.033, RGM:repeat) 0702 SELECT * FROM _all_inter...
<filename>data/install/regions.sql /* SQLyog Enterprise - MySQL GUI v8.1 MySQL - 5.0.51b-community-nt : Database - tgmax ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN...
<reponame>Patelgautam911/PAT-Project -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 11, 2019 at 03:03 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
<filename>Important_SQL_Concept/Trigger/Trigger.sql --Update Trigger Operations drop table emps; create table emps(id int,first_name varchar(40) not null ,last_name varchar(40) not null, primary key(id)); create table emp_audits(id int,emp_id int,first_name varchar(40) not null, time_change t...
<reponame>cscl-git/digit-bpa<filename>egov/egov-egf/src/main/resources/db/migration/main/V20160328123000__egf_fund_disable_other_then_municipal_fund.sql<gh_stars>0 update fund set isactive = false where code not in ('01');
/* SQLyog Community v11.52 (64 bit) MySQL - 10.1.28-MariaDB : Database - psaaket ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_...
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 25-03-2019 a las 18:53:35 -- Versión del servidor: 10.1.33-MariaDB -- Versión de PHP: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
CREATE TABLE "sales" ( "schednum" varchar, "reception_num" varchar, "instrument" varchar, "year" int, "monthday" int, "reception" timestamp, "price" varchar, "grantor" varchar, "grantee" varchar, "class" varchar, "mkt_clus" varchar, "d_class" varchar, "d_class_cn" var...
<reponame>satotatsu/sqlapp INSERT INTO `tableA` ( cola, colb, colc, lock_version ) VALUES (1, 'bvalue', '2016-01-12 12:32:30', 1 ) ON DUPLICATE KEY UPDATE colb=VALUES( colb ), colc=VALUES( colc ), lock_version=lock_version + 1
<gh_stars>1-10 CREATE PROCEDURE [dbo].[h3giGetIDProofHistory] @orderRef INT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; DECLARE @proofType INT DECLARE @proofIDNumber VARCHAR(50) DECLARE @proofCountry VARCHAR(50)...
-- file:identity.sql ln:82 expect:true SELECT * FROM itest1
<gh_stars>10-100 -- file:collate.sql ln:34 expect:true CREATE TABLE collate_test2 ( a int, b text COLLATE "POSIX" )
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : estore Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-01-20 10:48:04 */ SET FOREIGN_KEY_CHECKS=0; -- --...
<reponame>xaiguy/abstractions<gh_stars>100-1000 CREATE OR REPLACE FUNCTION nft.insert_superrare(start_ts timestamptz, end_ts timestamptz=now(), start_block numeric=0, end_block numeric=9e18) RETURNS integer LANGUAGE plpgsql AS $function$ DECLARE r integer; BEGIN WITH superrare_trades AS ( SELECT 'SuperRare' AS pl...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.2 -- Dumped by pg_dump version 12.2 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', '', fal...
<reponame>GlobalFinPrint/global_finprint<filename>database/create_v_report_machine_learning_corpus_from_master.sql CREATE VIEW public.v_report_machine_learning_corpus_from_master AS SELECT 'https://s3-us-west-2.amazonaws.com/finprint-annotator-screen-captures/prod/' || tt.code || '/' || bs.code || '/' || ao.id || ...
/* Copyright 2020 Google LLC // // Licensed 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
-- Verify ggircs-portal:tables/form_result_001 on pg begin; select exists (select tgname from pg_trigger where not tgisinternal and tgrelid = 'ggircs_portal.form_result'::regclass and tgname = '_immutable_form_result'); rollback;
<gh_stars>1-10 #standardSQL # Requests with a content age older than its TTL CREATE TEMPORARY FUNCTION toTimestamp(date_string STRING) RETURNS INT64 LANGUAGE js AS ''' try { var timestamp = Math.round(new Date(date_string).getTime() / 1000); return isNaN(timestamp) || timestamp < 0 ? -1 : timestamp; ...
<reponame>jeymingwu/springboot-vue3-wiki /* Navicat Premium Data Transfer Source Server : wikitest@% Source Server Type : MySQL Source Server Version : 50733 Source Host : localhost:3306 Source Schema : wikitest Target Server Type : MySQL Target Server Version : 50733 File Enc...
<gh_stars>1-10 #standardSQL # 08_17: CSP 'unsafe-inline' usage SELECT client, csp_count, unsafe_inline_count, defaultsrc_unsafe_inline_count, scriptsrc_unsafe_inline_count, stylesrc_unsafe_inline_count, total, ROUND(csp_count * 100 / total, 2) AS pct_csp, ROUND(unsafe_inline_count * 100 / total, 2) AS...
\timing on SELECT ONLINE SUM(l_extendedprice * (1 - l_discount)) FROM customer, orders, lineitem WHERE c_mktsegment = 'BUILDING' AND c_custkey = o_custkey AND l_orderkey = o_orderkey WITHTIME 60000 CONFIDENCE 95 REPORTINTERVAL 1000;
DROP VIEW IF EXISTS view_kartu_barang_rinci_kabupaten CASCADE; CREATE VIEW view_kartu_barang_rinci_kabupaten AS SELECT * FROM view_kartu_barang2_awayan UNION ALL SELECT * FROM view_kartu_barang2_bappeda UNION ALL SELECT * FROM view_kartu_barang2_batumandi UNION ALL SELECT * FROM view_kartu_barang2_bkd UNION AL...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 14, 2021 at 09:55 PM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
insert into tours (title, link, category, summary, detail) VALUES ("Helicopter", "helicopter", "services","", "Expedition Asia Trek and Tours offers Helicopter Safari around the mountains of the Karakoram and himlayan region of Gilgit-Baltistan. We are the only agency in Pakistan who works with a German doctor who i...
# --- !Ups create table Villages ( no int primary key not null, name varchar(50) not null, capacity int not null, vcast char(1) not null, rule_cat bool not null, rule_sp bool not null, rule_lunatic bool not null, special varchar(16), createTime varchar(16), winner varchar(5) not null, ...
<reponame>sozezzo/sqlwatch CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_logger_dm_db_index_usage_stats] @xdoc int, @snapshot_time datetime2(0), @snapshot_type_id tinyint, @sql_instance varchar(32) AS begin set nocount on; exec [dbo].[usp_sqlwatch_internal_meta_add_index] @xdoc = @xdoc, @sql_instance = @sq...
<reponame>kenkode/cpanel -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 29, 2017 at 12:23 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
ALTER TABLE CP CHANGE `from_discipline` `from_discipline` ENUM('default','running','trekking','mountaineering','coasteering','biking','orienteering','paddling','swimming','ropes','riverboarding','inlineskating','scootering','specialchallenge') DEFAULT 'default'; ALTER TABLE CP CHANGE `to_discipline` `to_discipline` EN...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 08 Mei 2018 pada 20.22 -- Versi Server: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<reponame>slaleye/typo3-v8.7-extension # # Table structure for table 'tx_testextension_domain_model_main' # CREATE TABLE tx_testextension_domain_model_main ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, name varchar(255) DEFAULT '' NOT NULL, identifier varchar(255) DEFAULT '' NOT NULL, ...
INSERT INTO `animal` (`UUID`, `animal-properties-id`) VALUES ('626d6f7f-c234-11e6-b5de-005056c00008', '1'), ('626ddbb4-c234-11e6-b5de-005056c00008', '2'), ('626e401c-c234-11e6-b5de-005056c00008', '3')
drop view if exists states_data_ext_v; create view states_data_ext_v as ( Select min(short_date), sv.emergency_date, sv.state, sv.state_name from covid_by_state_v sv join states_data s on sv.state = s.state group by sv.emergency_date, sv.state, sv.state_name )
<reponame>LouisvilleMetro/WazeCCPProcessor -- Add Alerts type_id -- modify database ALTER TABLE waze.alerts ADD COLUMN IF NOT EXISTS type_id INTEGER; -- create index CREATE INDEX CONCURRENTLY alerts_type_id_idx ON waze.alerts (type_id); -- add data to new type_id field in alerts UPDATE waze.alerts AS a SET type_id ...
select c_city,s_city,d_year,sum(lo_revenue) as revenue from lineorder,customer,supplier,ddate where lo_custkey = c_custkey and lo_suppkey = s_suppkey and lo_orderdate = d_datekey and (c_city = 231 or c_city = 235) and (s_city = 231 or s_city = 235) and d_yearmonthnum = 199712 group by c_city,s_city,d_year;
CREATE TABLE "MLB_52"( "AVG" decimal(16, 15) NOT NULL, "BABIP" decimal(16, 15) NOT NULL, "FB." decimal(17, 16) NOT NULL, "GB." decimal(16, 15) NOT NULL, "ISO" decimal(17, 16) NOT NULL, "LD." decimal(17, 16) NOT NULL, "Number of Records" smallint NOT NULL, "OBP" decimal(16, 15) NOT NULL, "OPS" decimal(...
<filename>evo-X-Scriptdev2/sql/Updates/0.0.2/r261_mangos.sql UPDATE `creature_template` SET `ScriptName` = 'npc_general_marcus_jonathan' WHERE `entry` = 466;
<reponame>MarkkuPekkarinen/rwloadsim -- create the RWP*Load Simulator repository views -- -- Copyright (c) 2021 Oracle Corporation -- Licensed under the Universal Permissive License v 1.0 -- as shown at https://oss.oracle.com/licenses/upl/ -- History -- bengsig 09-sep-2020 - Remove legacy -- bengsig 2017 - C...
<filename>Resource_DB.sql if not exists (select * from sys.databases where name='CustomResource') CREATE DATABASE CustomResource; GO USE CustomResource; if not exists (select * from sysobjects where name='Resource') CREATE TABLE Resource( [resource_id] [int] IDENTITY(1,1) NOT NULL, [resource_type][nvarchar](255)...
ALTER TABLE form_structure_blocks DROP CONSTRAINT fk_form_structure_blocks_parent; ALTER TABLE form_structure_blocks ADD CONSTRAINT fk_form_structure_blocks_parent FOREIGN KEY (parent_id) REFERENCES form_structure_blocks (id) MATCH SIMPLE ON UPDATE SET NULL ON DELETE SET NULL; ALTER TABLE occurrence_att...
CREATE TABLE [dbo].[Mapping] ( [Id] UNIQUEIDENTIFIER NOT NULL, [SourceSystemEntityIdentityId] UNIQUEIDENTIFIER NOT NULL, [DestinationSystemEntityId] NVARCHAR(512) NOT NULL, [CurrentOperationSourceSystemEntityId] UNIQUEIDENTIFIER NOT NULL, [Origin] INT NOT NULL, [State] INT NOT NULL, CONSTRAINT [PK_Mapping] PRIM...
<filename>resources/schemas/dbscripts/postgresql/mobileappstudy-21.000-21.001.sql SELECT core.executeJavaUpgradeCode('migrateResponseServerConfig');
<gh_stars>0 CREATE TABLE IF NOT EXISTS reports ( created_at DATETIME NOT NULL, sender_uid VARCHAR(20) NOT NULL, sender_uname VARCHAR(30), reporte VARCHAR(256) NOT NULL, post_id VARCHAR(41) NOT NULL, reported_uid VARCHAR(41) NOT NULL, FOREIGN KEY (sender_uid) REFERENCES users(id) );
<filename>modules/core/db/update/hsql/19/190524-2-updateOrder01.sql alter table CEDE_ORDER add constraint FK_CEDE_ORDER_CUSTOMER foreign key (CUSTOMER_ID) references CEDE_CUSTOMER(ID); create index IDX_CEDE_ORDER_CUSTOMER on CEDE_ORDER (CUSTOMER_ID);
create table sys_user_role ( id int auto_increment comment '主键' primary key, user_id int not null comment '用户id', role_id int not null comment '角色id', create_time datetime default CURRENT_TIMESTAMP not null comment '创...
-- +migrate Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS `unsubscribes` ( `primary` int(11) NOT NULL AUTO_INCREMENT, `user_id` varchar(255) DEFAULT NULL, `client_id` varchar(255) DEFAULT NULL, `kind_id` varchar(255) DEFAULT NULL, `created_...
<reponame>SinLess-Games-LimitedLC/Helix CREATE DATABASE Helix_Stats; CREATE TABLE Liscense_Keys ( ID BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT UNIQUE, Client_ID BIGINT, License_Key VARCHAR(20) UNIQUE, Active_Status VARCHAR(8), Date_Created DATE, Date_Activated DATE, Last_CheckIN DATETIME, Clients_us...
<reponame>davidyu62/egovframe-runtime<filename>Foundation/org.egovframe.rte.fdl.logging/src/test/resources/META-INF/testdata/dialect/oracle.sql<gh_stars>1-10 -- 2014.01.13 추가 log4j 2 testdata -- This SQL script creates the required tables by org.apache.logging.log4j.core.appender.db.jdbc.JDBCAppender -- It is intended ...
set echo off set feedback off set linesize 512 prompt prompt Rollback Segment Activity in Database prompt SELECT A.NAME, B.XACTS, C.SID, C.SERIAL#, C.USERNAME, D.SQL_TEXT FROM V$ROLLNAME A, V$ROLLSTAT B, V$SESSION C, V$SQLTEXT D, V$TRANSACTION E WHERE A.USN = B.USN AND B.USN = E.XIDUSN AND C.TADDR = E....
# ---------------------------------------------------------------------- # # Target DBMS: MySQL 8 # # Project name: Northwind # # Author: <NAME> # # ---------------------------------------...
<gh_stars>0 /* 3 Al insertar un producto, si unidades en existencia recibido es 0, poner 1.*/ CREATE TRIGGER controludexistencia2 on compra.productos for INSERT AS if (select unidadesenexistencia from inserted)=0 begin UPDATE COMPRA.productos SET unidadesenexistencia = 1 where idproducto = (select idproducto ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 01, 2021 at 01:08 AM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
<reponame>SoarynAC/spring-angular-ws-api insert into cliente (id, nome) values (1, 'um'); insert into cliente (id, nome) values (2, 'dois'); insert into cliente (id, nome) values (3, 'tres'); insert into cliente (id, nome) values (4, 'quatro'); insert into cliente (id, nome) values (5, 'cinco'); insert into produto (i...
<reponame>juanmautem/baseMVC DROP DATABASE IF EXISTS dbLog_in; CREATE DATABASE IF NOT EXISTS dbLog_in; USE dbLog_in; -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 18-03-2022 a las 15:44:45 -- Versión del servidor: 10.4.22-MariaDB -- Versión d...