sql
stringlengths
6
1.05M
-- update.test -- -- execsql {CREATE INDEX idx1 ON test1(f1)} CREATE INDEX idx1 ON test1(f1)
<gh_stars>10-100 -- file:plpgsql.sql ln:3837 expect:true $$ language sql
<gh_stars>1-10 -- ============================================= -- Author : <NAME> -- Create date : 2017-04-03 -- Description : To Create Schema "Countries", for owner 'postgres' -- This will not create your DB!! DB needs ENCODING = 'UTF8'!! -- Used DB from connection-string!! -- ====...
<filename>06. 2. Subqueries-and-JOINs-Exercises/07. 2. Subqueries-and-JOINs-Exercises.sql USE soft_uni; #Problem 1. Employee Address SELECT e.employee_id, e.job_title, e.address_id, a.address_text FROM employees AS e JOIN addresses AS a ON e.address_id = a.address_id ORDER BY e.address_id...
<reponame>happycoder0011/Database CREATE DATABASE CRIO; USE CRIO; create table customer(id int primary key , full_name varchar(10) not null, Age int, contact int not null Unique, address varchar(10) default"NA"); DESC customer; insert into customer(id , full_name , Age, contact, address)...
<reponame>TheKaranRawat/SUPERPOWERS -- ================================================================================================================================================================== -- Unit Infos INSERT INTO ArtDefine_UnitInfos (Type,DamageStates,Formation) SELECT ('ART_DEF_UNIT_4_OTTOMAN_CANON'),...
<reponame>dwillis/openFEC drop materialized view if exists ofec_sched_e_aggregate_candidate_mv_tmp; create materialized view ofec_sched_e_aggregate_candidate_mv_tmp as select cmte_id, s_o_cand_id as cand_id, s_o_ind as support_oppose_indicator, rpt_yr + rpt_yr % 2 as cycle, sum(exp_amt) as total, ...
-- Add new namespace INSERT INTO KRCR_NMSPC_T (NMSPC_CD,OBJ_ID,VER_NBR, NM, ACTV_IND, APPL_ID ) VALUES ('KC-PROTOCOL-DOC',SYS_GUID(),1, 'IRB Protocol Doc Level Nmspc' , 'Y', 'KC') / -- Add new (permissionless) Aggregator role for Protocol Doc namespace INSERT INTO KRIM_ROLE_T (ROLE_ID, OBJ_ID, VER_NBR, ROLE_NM, NMSPC_...
<gh_stars>0 \. ./../../current_mysql/5.1.1/rice/KRC_RICE_01_2.1.5-2.1.6_2013-04-30_B000.sql commit; exit
<reponame>dmitrybaidaev/coturn ALTER DATABASE coturn CHARACTER SET latin1;
<reponame>victoria-elasticsearch/mds<gh_stars>0 ALTER TABLE permit RENAME approved_date TO issue_date; ALTER TABLE permit ADD COLUMN expiry_date date NOT NULL DEFAULT '9999-12-31'::date; ALTER TABLE permit_status_code DROP COLUMN permit_status_code_guid;
REM REM Identify "top SQL" where a SQL plan baseline exists REM but it is not active. REM REM This might not be intentional! REM SELECT sql_text, cpu_time, buffer_gets, executions, parsing_schema_name, exact_matching_signature FROM v$sql v WHERE executions>0 AND sql_plan_base...
select string_agg(sub.{{actor}}, ',') as developers from ( select distinct dup_{{actor}}_login as {{actor}}, count(distinct sha) as commits from gha_commits where dup_created_at >= '{{dtfrom}}' and dup_created_at < '{{dtto}}' and dup_{{actor}}_login != '' and (lower(dup_{{actor}}_login) ...
# See https://stackoverflow.com/questions/39204142/docker-compose-with-multiple-databases/39204865. # create databases CREATE DATABASE IF NOT EXISTS `my_wiki`; CREATE DATABASE IF NOT EXISTS `eauth`; GRANT ALL PRIVILEGES ON my_wiki.* TO 'wikiuser'@'%'; GRANT ALL PRIVILEGES ON eauth.* TO 'wikiuser'@'%';
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.16, for Linux (x86_64) -- -- Host: localhost Database: audi -- ------------------------------------------------------ -- Server version 5.7.16-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Окт 14 2015 г., 02:51 -- Версия сервера: 5.5.44-0ubuntu0.14.04.1 -- Версия PHP: 5.5.9-1ubuntu4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
<filename>tests/v6_pc_isql/dml053.sql -- MODULE DML053 -- SQL Test Suite, V6.0, Interactive SQL, dml053.sql -- 59-byte ID -- TEd Version # -- AUTHORIZATION HU SELECT USER FROM HU.ECCO; -- RERUN if USER value does not match preceding AUTHORIZATION comment -- date_time print -- TEST:0233 Table as multiset of rows...
<reponame>aks-cefz7k/boruishaoz<gh_stars>0 ALTER TABLE "dev" ADD COLUMN code varchar; ALTER TABLE "dev" ADD COLUMN sockettype int4;
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 02-Jul-2019 às 20:34 -- Versão do servidor: 10.1.34-MariaDB -- PHP Version: 7.1.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>it-gro/PIT<gh_stars>0 begin pit_admin.merge_message_group( p_pmg_name => 'PIT_TEST', p_pmg_description => 'Message for output module PIT_TEST' ); pit_admin.merge_message( p_pms_name => 'PIT_TEST', p_pms_pmg_name => 'PIT', p_pms_text => 'GERMAN: #1#', p_pms_description => q'...
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le : Mer 26 Mars 2014 à 18:59 -- Version du serveur: 5.5.16 -- Version de PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<filename>db/schema.sql DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; -- department table with -- id: INT PRIMARY KEY -- name: VARCHAR(30) to hold department name CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHA...
------------------------------------------ -- Détruire les tables si elles existaient ------------------------------------------ DROP TABLE USERS; DROP TABLE SEQUENCES;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 14-Abr-2020 às 23:46 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
ALTER TABLE "public"."hospital_users" DROP COLUMN "role";
<gh_stars>1-10 -- The first example shows the goal scored by a player with the last name 'Bender'. The * says to list all the columns in the table - a shorter way of saying matchid, teamid, player, gtime SELECT matchid, player FROM goal WHERE teamid = 'GER' -- From the previous query you can see that <NAME>'s scored...
/* Drop Tables */ DROP TABLE IF EXISTS account_role; DROP TABLE IF EXISTS check_out; DROP TABLE IF EXISTS reservation; DROP TABLE IF EXISTS book_item; DROP TABLE IF EXISTS book; DROP TABLE IF EXISTS author; DROP TABLE IF EXISTS role; DROP TABLE IF EXISTS account; /* Create Tables */ -- User tabl...
BEGIN; DROP TABLE IF EXISTS teamraters; DROP TABLE IF EXISTS lines; DROP TABLE IF EXISTS userlist; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS channellines; DROP TABLE IF EXISTS channels; DROP TABLE IF EXISTS servers; COMMIT;
--What is the ratio between the number of items sold over the internet in the morning (8 to 9am) to the number of --items sold in the evening (7 to 8pm) of customers with a specified number of dependents. create or replace function morningToEveRatio(dep int) returns float language plpgsql as $$ declare morn...
USE [Demo] GO INSERT [dbo].[t_sys_organization] ([ID], [ParentID], [Name], [Memo]) VALUES (N'00', N'0', N'上海黑豹科技股份有公司', N'纯属虚构') GO INSERT [dbo].[t_sys_organization] ([ID], [ParentID], [Name], [Memo]) VALUES (N'001', N'00', N'上海兴俱科技有限公司', N'纯属虚构') GO INSERT [dbo].[t_sys_organization] ([ID], [ParentID], [Name], [Memo]) ...
update invalid set foo = 'bar' where id = 1;
DROP TABLE IF EXISTS tmp_repair_cost_collector_type ; CREATE TEMPORARY TABLE tmp_repair_cost_collector_type AS SELECT cc.c_project_id, cc.c_project_repair_costcollector_id, t.type AS task_type, t.m_product_id AS task_product_id, cc.m_product_id AS cc_product_id, cc.qtyreser...
-- 2020-05-18T20:55:30.952Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2020-05-18 23:55:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570798 ; -- 2020-05-18T20:55:31.036Z -- I forgot to set ...
<reponame>paulpierre/pp_chartvisual DROP TABLE IF EXISTS `GBPCHF_H4`; CREATE TABLE IF NOT EXISTS `GBPCHF_H4`( `id` int(5) NOT NULL, `open` varchar(30) NOT NULL, `high` varchar(30) NOT NULL, `close` varchar(30) NOT NULL, `low` varchar(30) NOT NULL, `time` varchar(30) NOT NULL); ALTER TABLE `GBPCHF_H4` ADD PRIMAR...
<gh_stars>0 SELECT num.stratum_1 AS "x_Calendar_Month", -- calendar year, note, there could be blanks 1000 * (1.0 * num.count_value / denom.count_value) AS "y_Prevalence_1000Pp" --prevalence, per 1000 persons FROM (SELECT * FROM @results_database_schema.ACHILLES_results W...
/* alter table hdb_computed_datatype_component add constraint hdb_computed_datatype_component_fk1 foreign key (computation_id) references hdb_computed_datatype (computation_id); */
<gh_stars>0 create or alter view dbo.vByWeek as select top 100 DATEPART(Week, s.CreatedAt) week, count(distinct b.SurebetId) count, cast(sum(b.WinLoss) as int) gross, c...
<gh_stars>0 CREATE TABLE SHORTCUTS ( SHORTCUT_ID char(16) NOT NULL, USER_ID char(16) NOT NULL, LINK varchar(31) NOT NULL, PICTURE_URL varchar(31) NOT NULL, PRIMARY KEY(SHORTCUT_ID), FOREIGN KEY(USER_ID) REFERENCES USERS(ID) )
<filename>Code/res/raw/vocefiscaldb.sql CREATE TABLE fiscalizacao ( idfiscalizacao INTEGER PRIMARY KEY ASC, municipio TEXT, estado TEXT, zonaeleitoral TEXT, localdavotacao TEXT, secaoeleitoral TEXT, podeenviarrededados INTEGER, statusdoenvio INTEGER, data INTEGER, email TEXT ); CREATE TABL...
-- Used for caching expensive grouped queries that need two links (for example double-redirects) CREATE TABLE /*$wgDBprefix*/querycachetwo ( -- A key name, generally the base name of of the special page. qcc_type varbinary(32) NOT NULL, -- Some sort of stored value. Sizes, counts... qcc_value int unsigned NOT...
-- USER SQL CREATE USER SHOP_PRIV IDENTIFIED BY shop_priv; -- QUOTAS ALTER USER SHOP_PRIV QUOTA UNLIMITED ON USERS; -- ROLES GRANT "DBA" TO SHOP_PRIV ; GRANT "CONNECT" TO SHOP_PRIV ; GRANT "RESOURCE" TO SHOP_PRIV ; -- USER SQL CREATE USER CUSTOMER_PUB IDENTIFIED BY customer_pub; -- QUOTAS ALTER USER CUSTOMER_PUB Q...
-- operations table create table operations ( operation_name varchar(200) not null, operation_priority int not null, id serial primary key unique, uid uuid default uuid_generate_v4() unique, version int default 1...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.1.21-MariaDB - mariadb.org binary distribution -- SO del servidor: Win32 -- HeidiSQL Versión: 9.4.0.5125 -- ------------------------------------------------...
ALTER TABLE RAETSEL ADD COLUMN GEAENDERT_DURCH varchar(36) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT 'UUID eines ADMINS'; ALTER TABLE RAETSEL ADD COLUMN `GEAENDERT_AM` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; ALTER TABLE MEDIEN ADD COLUMN GEAENDERT_DURCH varchar(36) ...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS employee; CREATE ROLE employee SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD '<PASSWORD>';
<reponame>fahmi-g/PeminjamanBarang -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 12, 2021 at 07:09 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
<filename>Java DB Fundamentals/Database Basics/04. Data Aggregation/09. Age Groups.sql<gh_stars>0 ALTER TABLE `wizzard_deposits` ADD COLUMN `age_group` VARCHAR(15); UPDATE `wizzard_deposits` SET `age_group` = '[0-10]' WHERE `age` <= 10; UPDATE `wizzard_deposits` SET `age_group` = '[11-20]' WHERE `age` > 10 && `age` <...
<filename>db/schema.sql CREATE TABLE department ( id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL ); CREATE TABLE role ( id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, title VARCHAR(30) NOT NULL, salary DECIMAL(10,2), department_id INTEGER, CONSTRAINT fk_dept FORE...
<reponame>DominicWrege/elenco Select id, description from feed_category join category c on feed_category.category_id = c.id WHERE c.parent_id is null and feed_id = $1
create table article ( article_id integer auto_increment not null, article_ext_id varchar(255), title varchar(255), text text, date datetime, category varchar(255), sub_category varchar(25...
# Write your MySQL query statement below WITH MAX_SAL AS(    SELECT       COMPANY_ID,        MAX(SALARY) AS MAX_SALARY    FROM       SALARIES    GROUP BY 1 ) SELECT   S.COMPANY_ID,   S.EMPLOYEE_ID,   S.EMPLOYEE_NAME,   ROUND(CASE        WHEN M.MAX_SALARY < 1000 THEN S.SALARY        WHEN M.MAX_SALAR...
DROP INDEX podcasts_channel_id_idx; DROP INDEX podcasts_title_idx; DROP INDEX podcasts_pub_date_idx;
create database team; \c team -- Tables create table users ( id serial primary key, username varchar(255) NOT NULL, password varchar(255), icon_url varchar(2048), email varchar(255), created timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updated timestamp NOT...
SET DEFINE OFF; ALTER TABLE AFW_12_GROUP_STAT ADD ( CONSTRAINT AFW_12_GROUP_STAT_CK1 CHECK ( ref_prodt is not null and dnr_ref_prodt is not null and ref_domn is null and dnr_ref_domn is null or ref_prodt is null and dnr_ref_prodt is null and ref_domn is not null and dnr_ref_domn is not null ) ENABLE VALIDAT...
<reponame>uetiko/Mexican-national-catalog-of-postal-codes<filename>coahuila/createdAt_coahuila.sql insert into datetime_at(id, created_at, updated_at) value(UUID_TO_BIN('93843768-33f6-4ba7-aec8-a0def1b941dc'), '2020-06-15 23:22:14', '2020-06-15 23:22:14');
CREATE TABLE flashcards ( cod INT NOT NULL AUTO_INCREMENT, front VARCHAR(150) NOT NULL, back VARCHAR(150) NOT NULL, review_cod INT NOT NULL, user_cod INT NOT NULL, deck_cod INT, PRIMARY KEY ( cod ), FOREIGN KEY ( review_cod ) REFERENCES reviews( cod ), FOREIGN KEY ( deck_cod ) REFERENCES decks( cod ), FORE...
-- SQL query to list the titles of all movies released in 2008. SELECT title FROM movies WHERE year == 2008;
/* Warnings: - A unique constraint covering the columns `[description]` on the table `SupportedLanguages` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE "Certification" ALTER COLUMN "description" DROP NOT NULL, ALTER COLUMN "description" DROP DEFAULT; -- Alter...
CREATE TRIGGER TR_PurchaseHistories_AfterInsert ON PurchaseHistories AFTER Insert --This trigger will work after insert query, --We will work with "instead of" because if there is an issue with information, we won't run query and we will give an error --This trigger will work when someone buys a product, we will get ...
<gh_stars>1000+ -- 2021-01-24T22:20:02.439Z -- URL zum Konzept INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,Help,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540562,0,541407,TO_TIMESTAMP('2021-01-24 23:20:01','YYYY-MM-DD HH24...
-- new UPDATE `creature_template` SET `ScriptName` = 'guard_azuremyst' WHERE `entry` = 18038; UPDATE `creature_template` SET `ScriptName` = 'guard_eversong' WHERE `entry` = 16221; -- update UPDATE `creature_template` SET `ScriptName` = 'guard_durotar' WHERE `entry` = 5953; UPDATE `creature_template` SET `ScriptName` = ...
<reponame>albertodepaola/logparser CREATE TABLE `logparser`.`blocked_ip` ( `id` INT NOT NULL AUTO_INCREMENT, `logFile` INT NOT NULL, `ipv4` VARCHAR(15) NULL, `ipv6` VARCHAR(45) NULL, `description` VARCHAR(250) NULL, PRIMARY KEY (`id`), INDEX `fk_blocked_ips_1_idx` (`logFile` ASC), CONSTRAINT `fk_blocked...
<reponame>CWO-Stanley/Ares /* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 5.5.68-MariaDB : Database - ares ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @O...
<reponame>yokidara01/MyManga<filename>conf/evolutions/default/1.sql # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table task ( id bigint auto_increment not null, name varchar(255), done ...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table comment ( id integer auto_increment not null, content varchar(255), author integer, message integer, ...
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/other/channelSales/src/main/java/tpl/sql/Teacher.sql ## 分页查询教师数据 #macro($csQuery(accountName,channelName,schoolName,userName,phaseCode,schoolId,memberType,nowDate)) SELECT t.* FROM teacher t INNER JOIN user u ON t.id = u.id INNER JOIN account a ON a.i...
<reponame>rishiraj4721/nicu-nutrition-kb -- SEQUENCE: apollo.custom_reports_seq -- DROP SEQUENCE apollo.custom_reports_seq; CREATE SEQUENCE apollo.custom_reports_seq INCREMENT 1 START 14 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1; ALTER SEQUENCE apollo.custom_reports_seq OWNER TO post...
<reponame>dimagilg/commcare-hq<filename>corehq/sql_proxy_accessors/sql_templates/delete_blob_meta.sql CREATE OR REPLACE FUNCTION delete_blob_meta(TEXT) RETURNS SETOF BIGINT AS $$ CLUSTER '{{ PL_PROXY_CLUSTER_NAME }}'; RUN ON ALL; $$ LANGUAGE plproxy;
<filename>openGaussBase/testcase/SUBPARTITION/Opengauss_Function_Subpartition_Case0010.sql<gh_stars>0 -- @testpoint: hash_range二级分区表基本功能测试:create/insert/updata/truncate/split,部分测试点合理报错 --step1: 创建hash_hash二级分区表; expect:成功 drop table if exists t_subpartition_0010 cascade; create table t_subpartition_0010(hjid int,rjid ...
create or replace package body pcs_mq_sdk as function to_json(p_topic in varchar2, p_message in varchar2) return varchar2 as begin return '{' || cr || ' "topic": "' || p_topic || '",' || cr || ' "message": "' || replace(p_message, '"', '\"') || '"' || cr || '}'; end; procedure s...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 21, 2021 at 08:07 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
insert into treatment (tid, pid, did, description, fee, disease, discharged_date, admitted_date) values (1, 1, 1, 'Perc ins carotid stent', 5875, 'Replacement of Right Hand Tendon with Nonautologous Tissue Substitute, Percutaneous Endoscopic Approach', '2011-08-18', '2014-01-14'); insert into treatment (tid, pid, did, ...
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 18, 2021 at 12:08 PM -- Server version: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>gerenium/SQL DELETE FROM supply WHERE author IN(SELECT author FROM book WHERE amount >= 10); SELECT * FROM supply;
<filename>GRA.Database/dbo/Stored Procedures/cbspSRPGroupsGroups_GetSpecialUserPermissionsNotGranted.sql  /****** Object: StoredProcedure [dbo].[cbspSRPGroupsGroups_GetSpecialUserPermissionsNotGranted] Script Date: 01/05/2015 14:43:27 ******/ CREATE PROCEDURE [dbo].[cbspSRPGroupsGroups_GetSpecialUserPermissionsNot...
<filename>database/31-seed.car.sql insert into car (id, registration, brand, model, price, garage_id) values (1, 'AX-045-JA', 'Nissan', 'Sentra', '17234.63', 28); insert into car (id, registration, brand, model, price, garage_id) values (2, 'PI-289-QI', 'Hyundai', 'Genesis', '16716.97', 46); insert into car (id, regist...
<filename>updates/coreUpdateJ0005.sql EXEC zsystem.Versions_Start 'CORE.J', 0005, 'jorundur' GO --------------------------------------------------------------------------------------------------------------------------------- IF OBJECT_ID('zsystem.SendMail') IS NOT NULL DROP PROCEDURE zsystem.SendMail GO CREATE...
<gh_stars>1-10 insert into `level_map` (`id`, `X`, `Y`, `Width`, `Height`, `BlockCat`) values('1','10','67','50','50','0'); insert into `level_map` (`id`, `X`, `Y`, `Width`, `Height`, `BlockCat`) values('1','62','67','50','50','0'); insert into `level_map` (`id`, `X`, `Y`, `Width`, `Height`, `BlockCat`) values('1','114...
alter table campaign add column auto_accept_proposed_character boolean not null default false;
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO --============================================= -- Copyright (C) 2018 <NAME>, @SQLDoubleG -- All rights reserved. -- -- You may alter this code for your own *non-commercial* purposes. You may -- republish altered code as long as you give due credit. -- -- THIS CODE...
-- A: Create a master key. -- Only necessary if one does not already exist. -- Required to encrypt the credential secret in the next step. CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<PASSWORD>'; -- B: Create a database scoped credential -- IDENTITY: AAD application clientID @ OAuth_2.9_Token_EndPoint -- SECR...
-- alter3.test -- -- execsql { -- PRAGMA legacy_file_format=ON; -- CREATE TABLE abc(a, b, c); -- SELECT sql FROM sqlite_master; -- } PRAGMA legacy_file_format=ON; CREATE TABLE abc(a, b, c); SELECT sql FROM sqlite_master;
-- ======================== -- Information -- ======================== -- Direct Link: https://www.hackerrank.com/challenges/more-than-75-marks/problem -- Difficulty: Easy -- Max Score: 15 -- DBMS: mySQL -- ======================== -- Solution -- ======================== SELECT Name FROM Students WHERE...
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (http://h2database.com/html/license.html). -- Initial Developer: H2 Group -- call hash('SHA256', 'Hello', 0); > exception INVALID_VALUE_2 call hash('SHA256', 'Hello'); >> 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826...
<gh_stars>0 DELIMITER / INSERT INTO IACUC_PROTOCOL_STATUS ( PROTOCOL_STATUS_CODE, DESCRIPTION, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID ) VALUES ( '107', 'Major Revisions Required', NOW(), 'admin', UUID() ) / INSERT INTO IACUC_PROTOCOL_STATUS ( PROTOCOL_STATUS_CODE, DESCRIPTION, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID ) V...
CREATE INDEX IF NOT EXISTS idx_invoice_date ON landlord.invoice(invoice_date); CREATE INDEX IF NOT EXISTS idx_invoice_date_cancelled ON landlord.invoice(invoice_date, cancellation);
<gh_stars>0 DROP TABLE IF EXISTS folio_derived.agreements_subscription_agreement_entitlement; -- Creates a derived table on subscription_agreement with entitlement and -- order_line to add po_line_id CREATE TABLE folio_derived.agreements_subscription_agreement_entitlement AS SELECT json_extract_path_text(sa.jsonb::j...
<filename>zip/sql-script/PMO_ID_TASK_ID_20210520_HRS_01.sql CREATE DATABASE hrs DEFAULT CHARACTER SET UTF8MB4; use hrs; DROP TABLE IF EXISTS `parcel_cabinet`; CREATE TABLE `parcel_cabinet` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `cabinet_no` VARCHAR(30) NOT NULL COMMENT '寄存柜编号', `...
-- Add host column to dblink map table to allow logging to alternative hosts ALTER TABLE @extschema@.dblink_mapping_jobmon ADD COLUMN host text;
<reponame>spring-operator/pymadlib -- -- Greenplum Database database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = public, pg_catalog; SET...
<reponame>gugundwipermana/tlt<filename>db/db_telkom.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 28, 2016 at 03:44 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
<filename>kiosk/queries/getUmsatzUnBezahlt_SQLite.sql select 'alle' as what, sum(verkaufspreis) / 100.0 as preis from ( select * from kiosk_gekauft a join profil_kioskuser b on a.kaeufer_id = b.id where gekauftUm <= %s ) union all select 'Dieb' as what, sum(verkaufspreis) / 100.0 as preis from ( selec...
CREATE OR REPLACE FUNCTION dbo.sf_feed_rss(_c_category text, _n_month integer) RETURNS TABLE(id uuid, c_first_name text, c_last_name text, c_middle_name text, d_pub_date date, c_author text, c_category text, c_content text, c_about text) LANGUAGE plpgsql AS $$ /** * @params {text} _c_category - константа из таб...
<reponame>Three7Six/leetcode<filename>problems/shortest-distance-in-a-plane/mysql_schemas.sql CREATE TABLE If Not Exists point_2d (x INT NOT NULL, y INT NOT NULL); Truncate table point_2d; insert into point_2d (x, y) values ('-1', '-1'); insert into point_2d (x, y) values ('0', '0'); insert into point_2d (x, y) values ...
<filename>sql/init.sql -- MySQL dump 10.13 Distrib 5.5.55, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: smart_city_api -- ------------------------------------------------------ -- Server version 5.5.55-0+deb7u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHA...
<filename>Lab7/4.sql INSERT INTO Doctors VALUES ( '<Passenger PassengerId="246"> <Survival>0</Survival> <Name>Minahan Dr. <NAME></Name> <Sex>male</Sex> <Age>44</Age> </Passenger>', 'Great Britain', 'has a dog' ) INSERT INTO Doctors VALUES( '<Passenger PassengerId="318"> <Survival>0</Survival> <Name>Moraweck Dr. ...
INSERT INTO exa_customers (id, created_at, updated_at, deleted_at, customer_name, customer_phone_data, sys_user_id, sys_user_authority_id) VALUES (1, 1582624908000, 1586492969000, NULL, '测试客户', '1761111111', 10, '888'); INSERT INTO exa_customers (id, created_at, updated_at, deleted_at, custom...
/* Navicat Premium Data Transfer Source Server : sql local Source Server Type : MySQL Source Server Version : 100414 Source Host : localhost:3306 Source Schema : odontogram Target Server Type : MySQL Target Server Version : 100414 File Encoding : 65001 Date: 15/09/20...
-- script to create a table in server -- DDL query to do so CREATE TABLE IF NOT EXISTS force_name( id INT, name VARCHAR(256) NOT NULL );
<filename>tests/data/sql/func_2.sql CREATE OR REPLACE FUNCTION collab.sp_new_tax(country character varying(2), state character varying(10), definition json) RETURNS INT AS $$ DECLARE cid int; sid int; new_id int; BEGIN SELECT INTO cid id FROM reference_data.countries WHERE iso=country; IF NOT F...