sql
stringlengths
6
1.05M
<gh_stars>0 DROP VIEW IF EXISTS program_info_v; CREATE VIEW program_info_v AS SELECT p.id ,p.active , p.start_date as startDate , p.end_date as endDate , p.name , pf.funderCount , pu.userCount , l.name AS location FROM programs p JOIN locations l ON l.id = p.location LEFT JOIN (SELECT program_id, count(funder_...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.S2_RESOLUTION (id INT8) RETURNS INT4 STABLE AS $$ from @@RS_PREFIX@@s2Lib import get_resolution if id is None: raise Exception('NULL argument passed to UDF') ret...
<reponame>budiono15/mobil-rental -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 03, 2020 at 07:30 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
<filename>DDL/neighbo1_nm_ver_2018-05-03.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 02, 2018 at 04:36 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";...
<gh_stars>0 /* Warnings: - You are about to drop the column `caracter_Id` on the `voice_actor` table. All the data in the column will be lost. - You are about to drop the `caracter` table. If the table is not empty, all the data it contains will be lost. - Added the required column `character_Id` to the `voice...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2018 at 08:10 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- phpMyAdmin SQL Dump -- version 4.0.4.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 18, 2014 at 11:36 PM -- Server version: 5.6.12-log -- PHP Version: 5.5.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
CREATE INDEX IF NOT EXISTS idx_eg_pt_property_v2_createdtime ON eg_pt_property_v2(createdtime);
<gh_stars>1-10 USE [Hotels_DB] GO /****** Object: StoredProcedure [dbo].[SetHotel] Script Date: 16.12.2020 17:44:09 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ...
UPDATE [dbo].[CalculationRule] SET choices ='[{"id": "0", "name": "none"}, {"id": "1", "name": "Each parking space is at least $25 a month"}, {"id": "4", "name": "Each parking space is at least $110 a month"}, {"id": "8", "name": "Each parking space is at least $220 a month"}]' WHERE calculationid = 1 AND code ='STRATE...
-- file:copy2.sql ln:395 expect:false test1 \. CREATE FUNCTION fun_instead_of_insert_tbl() RETURNS trigger AS $$ BEGIN INSERT INTO instead_of_insert_tbl (name) VALUES (NEW.str)
-- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 27, 2009 at 05:57 PM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
-- initial schema for server process DROP TABLE IF EXISTS process_merge; DROP TABLE IF EXISTS rule_config; DROP TABLE IF EXISTS process_mapping; DROP TABLE IF EXISTS process_input; DROP TABLE IF EXISTS process_config; DROP TABLE IF EXISTS process_errors; CREATE TABLE IF NOT EXISTS process_errors ( key SERIAL PRI...
INSERT IGNORE INTO email_list (`id`,`name`,`system_lock`) VALUES (2,'Newsletter',1); INSERT IGNORE INTO email (`id`,`name`,`account`,`sender`,`subject`,`template_text`,`template_html`,`system_lock`) VALUES (10,'Website Contact','<EMAIL>','${data_vorname} ${data_nachname} <${data_email}>','${emoji_mobile} DEMOCRACY W...
<reponame>endeavourhealth-discovery/Health-Dashboard<filename>database/config.sql INSERT INTO config.config (app_id, config_id, config_data) VALUES ('health-dashboard','database', '{ "class" : "com.mysql.cj.jdbc.MysqlDataSource", "dialect" : "org.hibernate.dialect.MySQLDialect", "password" : "<PASSWORD>", "url"...
<filename>jgeocoder/src/ref.sql SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO CREATE FUNCTION dbo.fnGeoFromHit ( @Number int, @TLID varchar(50), @FromAddR int, @FromAddL int, @ToAddR int, @ToAddL int, @zipL int, @zipR int, @FromLn...
<filename>src/dbo/CheckinMessageToInsertStmts_SPCreate.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 9/28/17 -- Description: Writes a checkin message to appropriate tables -- ============================================= CREATE ...
<reponame>RaviTejaBollimuntha/RS-E-Learning-Blog-master /* SQLyog Ultimate v12.4.1 (64 bit) MySQL - 5.7.20-log : Database - tale ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHE...
CREATE OR REPLACE FUNCTION "COUNT_CITATIONS_FOR_LOAN" ( TRANSACTION_ID IN NUMBER ) -- Given a transaction id return the number of citations for cataloged items linked to that loan -- @param transaction_id the primary key value for the loan to look up citations for. -- @return the count of the number of di...
<reponame>oleg-cherednik/hackerrank<gh_stars>1-10 select case when A + B <= C or B + C <= A or A + C <= B then 'Not A Triangle' when A = B and B = C and A = C then 'Equilateral' when A = B or B = C or A = C then 'Isosceles' else 'Scalene' end from triangles;
alter table check_log add key `check_log_user_id_index` (`user_id`);
<filename>src/main/resources/sql/all.sql #namespace("common") #include("common.sql") #end #namespace("sysUser") #include("sysUser.sql") #end #namespace("sysMenu") #include("sysMenu.sql") #end #namespace("sysConfig") #include("sysConfig.sql") #end #namespace("news") #include("news.sql") #end #namespace("p...
<filename>db/sql/revert/buildings_bulk_load/functions/existing_subset_extracts.sql -- Revert nz-buildings:buildings_bulk_load/functions/existing_subset_extracts from pg BEGIN; DROP FUNCTION buildings_bulk_load.existing_subset_extracts_insert(integer, integer, geometry); DROP FUNCTION buildings_bulk_load.existing_sub...
ALTER TABLE `menu_item` ADD `icon` VARCHAR(50) NULL AFTER `position`;
<reponame>Zhaojia2019/cubrid-testcases --update 2 tables with reuse_oid option create table md_numeric1(id1 numeric(10, 5), col1 timestamp not null default CURRENT_TIMESTAMP) reuse_oid; insert into md_numeric1 values(11111.11111, '2011-09-01 12:12:12'), (22222.22222, '2011-09-01 12:12:13'), (33333.33333, '2011-09-0...
<reponame>JonathanWilbur/mariadb-technology-schema INSERT INTO ( abbrevation, name, mandatory, metricGroup ) VALUES ('AV', 'Attack Vector', 1, 'BASE'), ('AC', 'Attack Complexity', 1, 'BASE'), ('PR', 'Privileges Required', 1, 'BASE'), ('UI', 'User Interaction', 1, 'BASE'), ('S', 'Aut...
<reponame>steveyoungca/SQLLoggingScriptSample<filename>3_Import_EmployeeTest.sql /* ## TSQL SCRIPT: ImportCSVFromAzureBlog.sql ## ## Description: ## This script will take a single CSV file from SQL Blob storage and Bulk import ## the file to SQL 2017 or SQL Azure DB ## ## ##...
CREATE PROCEDURE [auth].[auth_Roles_GetByGroupId] @groupid int AS select r.[Id], r.[Name], r.[Title], r.[IsHidden], r.[Type], r.[CreatedDate], r.[CreatedByUserId], r.[CreatedByClientId], r.[UpdatedByUserId], r.[UpdatedByClientId], r.[UpdatedDate], r.[AudienceId] from [Roles] r, [GroupRoles] gr where r.[Id] = ...
<reponame>MNikov/MySQL-SoftUni INSERT INTO products_stores(product_id, store_id) SELECT p.id, 1 FROM products AS p WHERE p.id NOT IN (SELECT product_id FROM products_stores)
<filename>database/views/orders_finished.sql<gh_stars>0 DROP VIEW IF EXISTS orders_finished; CREATE VIEW orders_finished AS SELECT o.order_id, co.courier_id AS 'courier_id', o.order_price, r.restaurant_name AS 'resto_name', CONCAT(ad.street, ' ', ad.flat_number) AS 'customer_address', cu.phonenumber, DA...
<reponame>conductiveresearch/abstractions {{ config( alias ='erc20_agg_hour', materialized ='incremental', file_format ='delta', incremental_strategy='merge' ) }} select 'ethereum' as blockchain, date_trunc('hour', tr.evt_block_time) as hour, tr.wallet_address, ...
<reponame>Foxpips/LayeredArchitecture CREATE PROCEDURE [dbo].[h3giGetOrderAddedAmount] @OrderRef INT AS SELECT ppd.discount FROM h3giProductPricePlanBandDiscount ppd INNER JOIN h3giPricePlanPackage pack ON ppd.catalogueVersionID = pack.catalogueVersionID AND ppd.pricePlanID = pack.pricePlanID INNER JO...
<gh_stars>1-10 CREATE TABLE `hFilePathWildcards` ( `hFilePathWildcard` varchar(100) NOT NULL default '0', `hFileId` int(22) NOT NULL default '0', KEY `hFileId` ( `hFileId` ) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
<gh_stars>10-100 -- Explicitly ignores native Gecode since there is absolutely no difference with the Weighted MiniZinc Model Select solverId, SolverName, round(AVG(elapsedSecs),2) as "ElapsedSecs", round(MAX(elapsedSecs)-MIN(elapsedSecs),2) as "ElapsedSecsSpan", round...
ALTER TABLE solutions DROP CONSTRAINT solutions_board_id_ticket_id_sprint_id_key; ALTER TABLE solutions ADD COLUMN preview BOOLEAN NOT NULL DEFAULT FALSE; ALTER TABLE solutions ADD UNIQUE (board_id, ticket_id, sprint_id, preview);
<gh_stars>1-10 CREATE PROCEDURE [etl].[usp_PackagesInStream_Get] @pStreamID INT AS SET NOCOUNT ON; BEGIN TRY BEGIN TRANSACTION; SELECT [PackageName] FROM [etl].[PackageStream] WHERE [StreamID]=@pStreamID ORDER BY [Order] COMMIT TRANSACTION; ...
# snpExceptions.sql was originally generated by the autoSql program, which also # generated snpExceptions.c and snpExceptions.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Set of queries to look for snps that appear problematic CREATE...
/************************************************************* Event Agent checkpoint feature **************************************************************/ /************************************************************* Event Agent checkpoint table ************************************************************...
<gh_stars>0 CREATE TABLE "USER" ( "ID" INT NOT NULL AUTO_INCREMENT, "NAME" VARCHAR(100) NOT NULL, PRIMARY KEY ("ID") ); CREATE TABLE "MESSAGE" ( "ID" INT NOT NULL AUTO_INCREMENT, "AUTHOR" INT NOT NULL REFERENCES "USER"("ID"), "MESSAGE" VARCHAR(100) NOT NULL, PRIMARY KEY ("ID") );
<reponame>izmendi/usefFHP<filename>usef-environment/config/usef_common_reference_AGR1.sql -- -- Copyright 2015-2016 USEF Foundation -- -- 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 -- -- h...
SET search_path = pg_catalog; ALTER TABLE ONLY public.test_2 ALTER COLUMN c1 DROP DEFAULT; ALTER TABLE ONLY public.test_1 ALTER COLUMN c1 DROP DEFAULT; ALTER TABLE public.test_1 ALTER COLUMN c1 TYPE text USING c1::text; /* TYPE change - table: public.test_1 original: integer new: text */ ALTER TABLE ONLY public....
SELECT TT1.*, TT2.delivered_quantity, TT2.delivered_by, TT2.delivered_by_name, TT3.pr_number, TT3.name as pr_name, TT3.description as pr_description, TT3.requested_on as pr_requested_on, TT3.tItems, TT3.last_status, TT3.last_change, TT3.department_id, TT3.department_name, concat(TT3.lastn...
CREATE TABLE [dbo].[StatusApplication] ( [Id] INT IDENTITY (1, 1) NOT NULL, [TrackedStatusTypeId] INT NULL, [StatusApplicationRecordId] INT NULL, [StatusApplicationRecordType] VARCHAR (255) NULL, [FromDate] DATETIME...
-- @testpoint:opengauss关键字range(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists range; CREATE TABLESPACE range RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace range; --关键字带双引号,创建成功 drop tablespace if exists "range"; CREATE TABLESPACE "range" RELATIVE LOCATION 'hdfs_tablespace/hdfs_table...
SELECT DISTINCT a.id_alumno, a.codigo_nie, btrim(a.nombre_completo || CAST(' ' as VARCHAR) || a.apellido_paterno || CAST(' ' AS VARCHAR) || a.apellido_materno) as nombre_completo_alumno, am.id_alumno_matricula as codigo_matricula, am.codigo_bach_o_ciclo as codigo_modalidad, ...
CREATE TABLE STATUSES( ID UUID PRIMARY KEY, CREATED TIMESTAMP NOT NULL, STATUS VARCHAR(50), OPERATIONAL BOOLEAN, FK_DRONEID UUID REFERENCES DRONES(ID) );
insert into product_type (name) values ('Shirts'), ('Cups'), ('Comics'), ('Toys'), ('Accessories'); insert into product (name, product_type_id, stock, price) values ('Batman Shirt', 1, 20, 150.00), ('IronMan Cup', 2, 20, 25.00), ('Wonder Woman Comic', 3, 20, 50.00); insert into product_order (created_at, total) value...
use racing; SELECT * FROM mylapsdatas; SELECT DISTINCT MAX(speed) AS speed, teamid FROM mylapsdatas GROUP BY teamid ORDER BY speed DESC; SELECT * FROM hardcarddatas; SELECT * FROM races; SELECT count(*) FROM racetracks; SELECT COUNT(datatype) FROM racetracks WHERE datatype = 'mylaps' AND raceid = 1; SELECT * FRO...
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: suppler_ku -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
<reponame>nidonoga/EstudosAngular4<filename>workspace/algamoney-api/src/main/resources/db/migration/V04__carga_tabelas.sql INSERT INTO categoria (nome) values ('Lazer'); INSERT INTO categoria (nome) values ('Alimentação'); INSERT INTO categoria (nome) values ('Supermercado'); INSERT INTO categoria (nome) values ('Farmá...
DELIMITER $$ DROP PROCEDURE if exists `getWallet`; CREATE PROCEDURE `getWallet`(IN userID int(11)) BEGIN select balance/100 as balance from wallet where user_id=UserID; END$$ DELIMITER ;
-- ============================================================== -- OPENQUERY'yi dinamik olarak oluşturmak -- ============================================================== set @sql=' select * from OPENQUERY(['+@serverName+'],''exec ['+@dbName+'].[dbo].rp_CatalogPrice @fromArea='+CAST(@fromArea as varchar)+', @coun...
<reponame>buse974/twic-api ALTER TABLE `pg_user_grade` DROP FOREIGN KEY `fk_pg_user_grade_3`; ALTER TABLE `pg_user_grade` ADD CONSTRAINT `fk_pg_user_grade_3` FOREIGN KEY (`submission_id`) REFERENCES `submission` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; ALTER TABLE `pg_user_criteria` DROP FOREIGN KEY `...
CREATE TABLE [dbo].[systemInterface] ( [systemInterfaceId] UNIQUEIDENTIFIER NOT NULL, [systemTemplateId] INT NULL, [createtime] DATETIME CONSTRAINT [DF_systemInterface_createtime] DEFAULT (getdate()) NOT NULL, [interfaceName] NVARCHAR (33) NOT NULL, [...
<filename>Backend/Appointments_db.sql --CREATE DATABASE COMMAND: --sqlite3 appointment.db --CREATE APPOINTMENT TABLE CREATE TABLE IF NOT EXISTS appointment ( id INTEGER PRIMARY KEY, date DATETIME NOT NULL, detail TEXT NOT NULL ); --EXAMPLE DATA insert into appointment (date, detail) values (datetime('now'),'Test...
-- MySQL dump 10.14 Distrib 5.5.52-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: phugiathp -- ------------------------------------------------------ -- Server version 5.5.52-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
-- # -- # Updating `whalesafe_v2.operator_stats_monthly` -- # -- -- # Benioff Ocean Initiative: 2020-07-30 -- # -- Needs `ship_stats_daily` to run. -- # -- Step 0: Drop existing `operator_stats_monthly` table. DROP TABLE IF EXISTS `whalesafe_v2.operator_stats_monthly`; -- # -- Step 1:Create Updated operator_stats_mon...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 03, 2020 at 05:09 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
--SELECT * FROM Etudiant; --SELECT * FROM Assistant; --SELECT * FROM Demandeur; --SELECT * from Message; --SELECT * from Question; --SELECT * from Reponse; --SELECT * FROM Borne; --SELECT * FROM Administrateur; --SELECT * FROM Connexion; --SELECT DISTINCT typeFAQ FROM FAQ WHERE idFAQ IN (SELECT idFAQ FROM faq_borne ...
-- Tables drop table if exists public.student_class; drop table if exists public.student; CREATE TABLE IF NOT EXISTS public.student ( id int4 NOT NULL GENERATED ALWAYS AS IDENTITY, name varchar NOT NULL, CONSTRAINT student_pk PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS public.student_class ( id int4 NOT NULL G...
USE SoftUni GO /******************************************* Problem 1. Employees with Salary Above 35000 ********************************************/ CREATE PROCEDURE usp_GetEmployeeSalaryAbove35000 AS SELECT FirstName, LastName FROM Employees WHERE Salary > 35000 GO EXECUTE usp_GetEmployeeSalaryAbove35000 G...
INSERT INTO activity (id, description,activity) VALUES (8, 'Move an issue from project A to project B', 'Changed issue`s project'); CREATE TABLE `update_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `Footprint` varchar(25) DEFAULT NULL, `Description` varchar(100) DEFAULT NULL, `DteRelease` datetime DEFAULT ...
-- file:inherit.sql ln:388 expect:true ALTER TABLE test_foreign_constraints DROP CONSTRAINT test_foreign_constraints_id1_fkey
<filename>test/failMigrations/001.do.sql CREATE TABLE widgets ( name VARCHAR(50) );
CREATE PROCEDURE [dbo].[BugNet_RelatedIssue_DeleteRelatedIssue] @PrimaryIssueId Int, @SecondaryIssueId Int, @RelationType Int AS DELETE BugNet_RelatedIssues WHERE ( (PrimaryIssueId = @PrimaryIssueId AND SecondaryIssueId = @SecondaryIssueId) OR (PrimaryIssueId = @SecondaryIssueId AND SecondaryIssueId = @PrimaryIss...
<gh_stars>1-10 DROP INDEX IF EXISTS jobs_status_idx; ALTER TABLE jobs.fulltext DROP COLUMN IF EXISTS status; DROP TYPE IF EXISTS job_statuses; ALTER TABLE jobs.fulltext ADD COLUMN IF NOT EXISTS has_ft_method bool;
USE burgers_db; INSERT INTO burgers (burger_name, devoured) VALUES ('Honey Ham Sandwich', 0); INSERT INTO burgers (burger_name, devoured) VALUES ('Bacon Blue Cheeseburger', 1); INSERT INTO burgers (burger_name, devoured) VALUES ('Vegan Black Bean and Quinoa Burger', 0); INSERT INTO burgers (burger_name, devoured) VALU...
<reponame>flowstone/simon-cms-api<gh_stars>0 -- 创建数据库 create database simon_cms character set utf8; -- 创建用户表 create table user( id int not null auto_increment, username varchar(32) not null default '' comment '用户名', password varchar(64) not null default '' comment '密码', is_delete tinyint(1) not null default 0 c...
SELECT QUARTER(TEST_CAL_DT.WEEK_BEG_DT) AS qr_WEEK_BEG_DT_ok FROM TEST_KYLIN_FACT inner JOIN EDW.TEST_CAL_DT AS TEST_CAL_DT ON (TEST_KYLIN_FACT.CAL_DT = TEST_CAL_DT.CAL_DT) GROUP BY QUARTER(TEST_CAL_DT.WEEK_BEG_DT)
<gh_stars>0 DROP TABLE `test_schema`.`transaction`; DROP TABLE `test_schema`.`product`; DROP TABLE `test_schema`.`product_category`; CREATE TABLE `test_schema`.`product_category` ( `product_cat_id` INT NOT NULL, `product_cat_type` VARCHAR(45) NULL, PRIMARY KEY (`product_cat_id`)); CREATE TABLE `test_schema...
<gh_stars>0 SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO -- ============================================= -- Responsable: <NAME> -- Ultimo Cambio: 21/08/2018 -- Descrición: Actualización de Datos de Adenda y Complementos -- ============================================= CREATE PROCEDURE [dbo].[Interfaz_CteCompleme...
-- institution_rooms DROP TABLE IF EXISTS `institution_rooms`; RENAME TABLE `z_3663_institution_rooms` TO `institution_rooms`; -- system_patches DELETE FROM `system_patches` WHERE `issue`='POCOR-3663';
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 192.168.3.11 (MySQL 5.7.18-0ubuntu0.17.04.1) # Database: nowplaying # Generation Time: 2018-04-30 16:18:35 +0000 # ************************...
<reponame>KaiWeing/orcas create or replace type t_varchararray as varray(10) of varchar2(128) / create table varray_table_new ( id number, col1 t_varchararray ) varray col1 store as securefile lob / create table varray_table_add ( id number, col1 t_varchararray ) varray col1 store as securefile lob (dedupli...
<reponame>IBM/ibm-spectrum-lsf-rtm-server -- -- $Id: fc0807c64d9e5c04a7f63e5541beab232d2238c2 $ -- -- -- Initial Cacti data for fresh installation to cover Cacti Install Wizard result. -- LOCK TABLES `cdef` WRITE; /*!40000 ALTER TABLE `cdef` DISABLE KEYS */; INSERT INTO `cdef` VALUES (16,'f978a272c42c71721183d044ebd5...
<filename>Tellma.Database.Admin/dbo/Tables/dbo.AdminUserSettings.sql<gh_stars>1-10 CREATE TABLE [dbo].[AdminUserSettings] ( [AdminUserId] INT, [Key] NVARCHAR(255), CONSTRAINT [PK_AdminUserSettings] PRIMARY KEY CLUSTERED ([AdminUserId], [Key]), [Value] NVARCHAR(MAX) NOT NULL )
<gh_stars>1-10 create index gps_points_device_point_index_idx on gps_points (device, point_index);
<gh_stars>0 select owner_name,owner_id from owners where owner_id = (select max(owner_id) from owners); select owner_name,owner_id from owners,animalcomp where owners.owner_id =animalcomp.owner_id; SELECT * FROM owners INNER JOIN animalcomp ON owners.owner_id= animalcomp.owner_id INNER JOIN venue ON venue...
CREATE TABLE `technical_crew` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(100) NOT NULL , PRIMARY KEY (`id`), UNIQUE(name)) ENGINE = InnoDB; ALTER TABLE `item` ADD `technical_crew_id` INT NOT NULL AFTER `picture_url`; ALTER TABLE `item` ADD FOREIGN KEY (`technical_crew_id`) REFERENCES `technical_crew`(`id`) ON ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.8 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 02-04-2016 a las 23:01:37 -- Versión del servidor: 5.5.37 -- Versión de PHP: 5.2.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<reponame>bizmaercq/eda-reporting<filename>raw/REPRISE DELTA/Delta_customer_Search.sql<gh_stars>0 select c.cliw_age BRANCH, c.cliw_red "SHORT NAME", c.cliw_int NAME ,c.cliw_adc1 ADDRESS1, c.cliw_adc2 ADDRESS2 from clients c where c.cliw_int like '%CAISSE%' order by c.cliw_age select * from compte2012 where co...
CREATE TABLE FL_insurance_sample( "policyID" INTEGER, "statecode" CHAR, "county" CHAR, "eq_site_limit" REAL, "hu_site_limit" REAL, "fl_site_limit" REAL, "fr_site_limit" REAL, "tiv_2011" REAL, "tiv_2012" REAL, "eq_site_deductible" INTEGER, "hu_site_deductible" REAL, "fl_site_deductible" REAL, ...
CREATE TABLE Configuration ( ID INTEGER PRIMARY KEY, UserName TEXT COLLATE NOCASE NOT NULL, Application TEXT COLLATE NOCASE NOT NULL, Key TEXT COLLATE NOCASE NOT NULL, Value TEXT NOT NULL, Revoked BOOLEAN NOT NULL, Created ...
<filename>sql/ZZ3217.sql INSERT INTO `project` (`title`,`abstract`,`poster`,`video`,`project_id`,`module_id`) VALUES ("ZZ3217 P1","Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sed tortor. Integer aliquam adipiscing lacus. Ut nec urna et arcu imperdiet ullamcorper. Duis at lacus. Quisque purus sap...
<reponame>YuraMishin/Java insert into groups (name) values (?);
<filename>src/Frapid.Web/Areas/Frapid.Config/db/1.x/1.0/src/06.functions-and-logic/config.get_custom_field_setup_id_by_table_name.sql DROP FUNCTION IF EXISTS config.get_custom_field_setup_id_by_table_name ( _schema_name national character varying(100), _table_name national character varying(100), _field_na...
 -- ============================================= -- Author: (<EMAIL>is AG; <NAME>) -- Create date: 2015-02-24 -- Description: Gets Updates and New enties for Packages from SSISDB -- ============================================= CREATE PROCEDURE [etljob].[prc_GetSSISDBPackages] AS SET NOCOUNT ON MERGE INTO [etljob...
<gh_stars>1-10 -大的国家 SELECT name,population,area FROM World WHERE population > 25000000 OR area >3000000
BEGIN FOR I_ALUNO IN (SELECT RA, NOME FROM ALUNO) LOOP dbms_output.put_line('Aluno: ' || i_aluno.nome || ' RA:' || i_aluno.ra); END LOOP; END;
-- 1. Create database called «lab3» CREATE DATABASE lab3; -- 2. Download lab3.sql file from intranet. Copy content of the file -- and run using Query Tool (check if tables created) CREATE TABLE departments ( code INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL, budget DECIMAL NOT NULL ); CREATE T...
CREATE SCHEMA register; USE register; CREATE TABLE student ( id int PRIMARY KEY AUTO_INCREMENT NOT NULL, filename varchar(50) NOT NULL, name varchar(50) NOT NULL, street varchar(50) NOT NULL, district varchar(50) NOT NULL, number int NOT NULL, cep varchar(9) NOT NULL );
CREATE TABLE Data ( Name VARCHAR(50) NOT NULL, Description VARCHAR(100) NOT NULL, Data IMAGE NOT NULL, PRIMARY KEY(Name) )
-- file:numeric.sql ln:335 expect:true INSERT INTO num_exp_div VALUES (7,7,'1.00000000000000000000')
<filename>egov/egov-council/src/main/resources/db/migration/main/V20190910155410__council_resolutiondetails_action.sql INSERT into eg_action(id,name,url,parentmodule,ordernumber,displayname,enabled,contextroot,application) values(nextval('SEQ_EG_ACTION'),'CouncilResolutionDetails','/councilresolutiondetails',(select id...
/* Grants to International Refugee Assistance Project */ insert into donations(donor, donee, amount, donation_date, donation_date_precision, donation_date_basis, cause_area, url, donor_cause_area_url, affected_countries, donation_earmark, influencer, donation_announcement_date, donation_announcement_date_precision, do...
CREATE TABLE [dbo].[GcCourseUser] ( [EducationOrganizationId] INT NOT NULL, [SchoolYear] SMALLINT NOT NULL, [SchoolId] INT NOT NULL, [LocalCourseCode] nvarchar(60) NOT NULL, [SessionName] nvarchar(60) NOT NULL, [SectionIdentifier] nvarchar(255) NOT NULL, [EmailAddress] nvarchar(128) NOT NULL...
CREATE TABLE IF NOT EXISTS key_generator_model ( id BIGINT(20) NOT NULL, name VARCHAR(30) NULL DEFAULT NULL , PRIMARY KEY (id) ); CREATE SEQUENCE key_generator_model_seq START WITH 1 INCREMENT BY 1;
<gh_stars>0 CREATE USER IF NOT EXISTS 'dbuser03'@'localhost' IDENTIFIED BY '<PASSWORD>'; GRANT SELECT, UPDATE, DELETE, INSERT ON theverge.* TO 'dbuser03'@'localhost'; DROP DATABASE IF EXISTS theverge; CREATE DATABASE theverge; USE theverge; CREATE TABLE Room ( Room_id INT NOT NULL, Door_description VARCHAR(50), ...
<reponame>Chucky2401/nms-crafting-tool CREATE TABLE IF NOT EXISTS "Ressources_Listes" ("ID" INTEGER PRIMARY KEY AUTOINCREMENT, "RESSOURCES_NOM_FR" TEXT UNIQUE, "RESSOURCES_ABBREVIATION" TEXT, "ID_GROUP" INTEGER, "ID_RARETE" INTEGER, "RESSOURCES_PRIX" INTEGER, "RESSOURCES_ICONE" TEXT, FOREIGN KEY("ID_GROUP") REFERENCES ...
{% set mtr_key_col = mappings.source_column_object(target_table.metrics_key) %} {% set mtr_sat = mtr_key_col.parent %} {% set ctx_key_col = mappings.source_column_object(target_table.context_key) %} {% set ctx_sat = ctx_key_col.parent %} SELECT mtr.{{ mtr_key_col.name }} AS {{ target_table.metrics_key.name }} ,ctx....