sql
stringlengths
6
1.05M
<gh_stars>1-10 CREATE TABLE [dbo].[hlsysconfiguration] ( [configid] INT NOT NULL, [name] NVARCHAR(255) NULL, [type] INT NOT NULL, [agentid] INT NOT NULL, [roleid] INT NOT NULL, [objdefid] INT NOT NULL, [groupid] INT NOT NULL CONSTRAINT DF_hlsysconfiguration_groupid DEFAULT ((0)), [configstream] NVARCHAR(MAX) N...
--! Previous: sha1:6e9936ca05c9dae5c9dd3ba26a340528011018f9 --! Hash: sha1:a87ea27469cb98a4739b4a3e8a1f1b48edd60ef7 -- Enter migration here CREATE TABLE IF NOT EXISTS access_keys ( access_key VARCHAR(36) PRIMARY KEY UNIQUE, use_count INTEGER DEFAULT 0 NOT NULL );
SELECT SCHEMA_NAME(ST.schema_id) AS [Schema] , ST.name AS TableName , SC.name AS ColumnName , TT.name AS DeprecatedDataType FROM sys.columns AS SC INNER JOIN sys.tables AS ST ON ST.object_id = SC.object_id INNER JOIN sys.types As TT ON TT.system_type_id = SC.system_type_id WHERE TT.name IN ('image', 'text'...
alter table comment add parent_id bigint; alter table comment add constraint comment_fk_sub_comment foreign key (parent_id) references comment (id) on delete cascade;
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Aug 13, 2020 at 02:48 AM -- Server version: 8.0.18 -- 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_CH...
-- Revert hashtags DROP TABLE flipr.hashtags;
select fn_db_add_column('storage_pool', 'free_text_comment', 'text');
-- -- Test the copy command -- \c lsmtest CREATE FOREIGN TABLE product(name VARCHAR(20), make CHAR(50), product_id UUID) SERVER lsm_server; \copy product FROM 'data/products.csv' WITH CSV; COPY (SELECT * FROM product) TO '/tmp/products.csv' WITH (FORMAT CSV); DROP FOREIGN TABLE product; \! diff -uN /tmp/products.csv...
<filename>macros/edr/tests/test_utils/find_normalized_data_type_for_column.sql {% macro find_normalized_data_type_for_column(model_relation, column_name) %} {% set columns_from_relation = adapter.get_columns_in_relation(model_relation) %} {% if columns_from_relation and columns_from_relation is iterable %} {% for ...
<reponame>cloudcheflabs/dataroaster CREATE DATABASE vault; CREATE USER '{{ mysql_vault_user }}'@'localhost' IDENTIFIED BY '{{ mysql_vault_password }}'; GRANT ALL PRIVILEGES ON *.* TO '{{ mysql_vault_user }}'@'localhost' WITH GRANT OPTION; flush privileges; CREATE DATABASE dataroaster; CREATE USER '{{ mysql_dataroaster...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 2.11.11.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Czas wygenerowania: 15 Sty 2016, 20:23 -- Wersja serwera: 5.1.73 -- Wersja PHP: 5.5.29 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
select user_info.user_depts.department,sum((ru_wallclock*cost)) from %DB%.accounting inner join user_info.user_depts on %DB%.accounting.owner=user_info.user_depts.username where ((end_time > unix_timestamp('%START%')) and (end_time < unix_timestamp('%STOP%'))) group by user_info.user_depts.department;
/* Warnings: - You are about to drop the column `send_flag` on the `Inquiry` table. All the data in the column will be lost. - You are about to drop the column `read_flag` on the `Message` table. All the data in the column will be lost. - You are about to drop the column `send_flag` on the `Message` table. All...
<reponame>jimmyborofan/fluid -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 23, 2017 at 12:39 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `fluid` --...
create table `stall`( `id` bigint(20) NOT NULL AUTO_INCREMENT, `symbol` varchar(10) NOT NULL COMMENT '店铺英文简称', `name` varchar(50) DEFAULT NULL COMMENT '店铺显示名称', `desc` varchar(200) DEFAULT NULL, `create_time` datetime, `status` int(1) DEFAULT '0', UNIQUE KEY(`name`), PRIMARY KEY(`id`) )E...
<filename>08. Advanced SQL/Homework/27.sql --27. Write a SQL query to display the town where maximal number of employees work. USE TelerikAcademy GO SELECT Name FROM Towns WHERE TownID = (SELECT TOP(1) addr.TownID FROM Employees empl INNER JOIN Addresses addr ON empl.AddressID = addr.AddressID GROUP BY addr.To...
<reponame>PieterV24Edu/BigAssMovieDatabase CREATE TABLE VideoMateriaal ( naam VARCHAR(500), jaar INT, duur INT, beoordeling DECIMAL, leeftijdCat VARCHAR(50), isSerie BOOLEAN, PRIMARY KEY (naam, jaar, isSerie) ); CREATE TABLE Genre ( type VARCHAR(100), PRIMARY KEY (type) ); CREATE TABLE VideoGenre( ...
<gh_stars>0 CREATE TABLE #MyTempTable (SiteName nvarchar(MAX), KeyName nvarchar(MAX), KeyValue nvarchar(MAX), FromGlobal nvarchar(MAX) ); INSERT INTO #MyTempTable SELECT SiteName, KeyName, KeyValue, 'no' FROM CMS_SettingsKey LEFT JOIN CMS_Site ON (CMS_SettingsKey.SiteID = CMS_Site.S...
-- @SCHEMA_NAME define nice date and number formatting -- enable printing set serveroutput on format wrapped; set feedback off ; Begin Dbms_Output.Put_Line('START RUNNING script : /path/to/sql/script.sql'); Dbms_Output.Put_Line('SETTING YYYY-MM-DD HH24:MI:SS date format and Finnish numeric chars formattin...
CREATE TABLE Headers ( Id INTEGER PRIMARY KEY NOT NULL, Header BLOB NOT NULL, Hash BLOB NOT NULL, Height INTEGER NOT NULL, TotalWork REAL NOT NULL, IsValid INTEGER NOT NULL ); CREATE UNIQUE INDEX UX_Headers_Hash ON Headers(Hash); CREATE INDEX IX_Headers_Height ON Headers(Height);
<reponame>zjustus/ShelbyArena<gh_stars>1-10 USE [ArenaDB] GO /****** Object: StoredProcedure [dbo].[lumiante_HTML_sp_google_pay_email] Script Date: 7/30/2019 10:50:24 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROC [dbo].[cust_lumiante_HTML_sp_google_pay_email] @OrganizationID INT,...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 26, 2020 at 08:41 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
DROP DATABASE IF EXISTS `empdb`; -- Create Database CREATE DATABASE IF NOT EXISTS `empdb` ; USE `empdb`; DROP TABLE IF EXISTS `employee`; DROP TABLE IF EXISTS `role`; DROP TABLE IF EXISTS `department`; -- Table structure for table `department` CREATE TABLE `department` ( `id` int NOT NULL AUTO_INCREMENT, `name...
<gh_stars>1-10 /********************************************************************************************************************* ** ** Procedure Name : h3giSmsRecipientGet ** Author : <NAME> ** Date Created : ** Version : 1.0.0 ** ** Test : exec Sproc_Name 1, 'Test', 1...
-- file:numeric.sql ln:158 expect:true INSERT INTO num_exp_mul VALUES (3,3,'18.5761')
-- file:rolenames.sql ln:206 expect:true CREATE SCHEMA IF NOT EXISTS newschema6 AUTHORIZATION PUBLIC
<gh_stars>100-1000 -- AlterTable ALTER TABLE "Image" ADD COLUMN "embed" BOOLEAN NOT NULL DEFAULT false;
USE nortiz41; ALTER DATABASE nortiz41 CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS articleTag; DROP TABLE IF EXISTS article; DROP TABLE IF EXISTS tag; DROP TABLE IF EXISTS author; CREATE TABLE author( authorId BINARY(16) NOT NULL, authorActivationToken CHAR(32), authorAvatarUrl VARCHAR(255), a...
<gh_stars>1-10 INSERT INTO lu_specialty_type (code, description) values ('S7', 'Certified Nurse Midwife'); INSERT INTO lu_issuing_board(code, description) VALUES ('C7', 'AMCB'); UPDATE provider_setting SET related_entity_cd = 'S7' WHERE related_entity_cd = 'S2' AND provider_typ_cd = '25'; UPDATE provider_setting SET re...
-- // -- -- Adiciona ano em em pmieducar.turma e turmas_por_ano em pmieducar.escola_ano_letivo -- @author <NAME> <<EMAIL>> -- @license @@license@@ -- @version $Id$ ALTER TABLE pmieducar.turma ADD COLUMN ano integer; ALTER TABLE pmieducar.escola_ano_letivo ADD COLUMN turmas_por_ano smallint; -- ...
-- This CLP file was created using DB2LOOK Version 8.2 -- Timestamp: Thu May 18 03:20:29 EDT 2006 -- Database Name: MDSETUP -- Database Manager Version: DB2/6000 Version 8.2.4 -- Database Codepage: 819 -- Database Collating Sequence is: UNIQUE CONNECT TO MDSETUP; -----------------------------------...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字breadth(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists breadth; create data source breadth; --清理环境 drop data source breadth; --关键字带双引号-成功 drop data source if exists "breadth"; create data source "breadth"; --清理环境 drop data source "breadth"; --关键字带单引号-...
<reponame>arima-ryunosuke/migration<filename>tests/DbMigration/Console/Command/_files/invalid.sql very invalid sql;
<filename>Database/stud_info.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2022 at 01:27 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2017 at 10:05 PM -- Server version: 10.1.28-MariaDB -- 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 @OL...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 02, 2018 at 05:37 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* Warnings: - You are about to drop the column `userId` on the `Deck` table. All the data in the column will be lost. */ -- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_Deck" ( "id" TEXT NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, "description" TEXT NOT NULL, "author" TEXT NOT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 24, 2019 at 07:39 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:00"; /*!40101 SET @OLD_CHA...
create database flower; use flower; CREATE TABLE customer( custID int auto_increment, email char(30), sname char(10) not null, sex char(2), mobile char(11), address char(200), zip char(6), cdefault char(2) default '0', PRIMARY KEY(custID) )ENGINE=MyISAM DEFAULT CHARSET=utf8; delete from customer; ins...
<reponame>XiaoshuaiGeng/Gameshop-GSMS<filename>gamestop.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 17, 2020 at 03:28 AM -- Server version: 10.0.38-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOC...
DROP TABLE IF EXISTS raster_tile; CREATE TABLE raster_tile AS WITH foo AS ( SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, 0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20...
<reponame>oiojin831/gotrue -- adds identities table CREATE TABLE IF NOT EXISTS auth.identities ( id text NOT NULL, user_id uuid NOT NULL, identity_data JSONB NOT NULL, provider text NOT NULL, last_sign_in_at timestamptz NULL, created_at timestamptz NULL, updated_at timestamptz NULL, CO...
-- 2018-02-27T11:49:13.740 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHe...
<gh_stars>10-100 PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; INSERT INTO cfdi_aduanas VALUES('01','ACAPULCO, A<NAME>, GUERRERO.','2017-01-01',''); INSERT INTO cfdi_aduanas VALUES('02','<NAME>, AGUA PRIETA, SONORA.','2017-01-01',''); INSERT INTO cfdi_aduanas VALUES('05','SUBTENIENTE LOPEZ, SUBTENIENTE LOPEZ, QUINTANA RO...
-- Verify ggircs-portal:trigger_functions/signature_md5 on pg begin; select pg_get_functiondef('ggircs_portal_private.signature_md5()'::regprocedure); rollback;
-- Cache invalidation functions and triggers DROP FUNCTION IF EXISTS _timescaledb_cache.invalidate_relcache_trigger(); DROP FUNCTION IF EXISTS _timescaledb_cache.invalidate_relcache(regclass); -- Tablespace changes DROP FUNCTION IF EXISTS _timescaledb_internal.select_tablespace(integer, integer[]); DROP FUNCTION IF EX...
CREATE PROCEDURE SP347(OUT MYCOUNT INTEGER) SPECIFIC SP347_59877 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE476;SELECT COUNT(*)INTO MYCOUNT FROM TABLE341;SELECT COUNT(*)INTO MYCOUNT FROM TABLE402;SELECT COUNT(*)INTO MYCOUNT FROM...
--# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * Shows the average encoded length in bytes for columns in COLUMN ORGANIZED tables */ CREATE OR REPLACE VIEW DB_COLUMN_ENCODING AS SELECT TABSCHEMA , TABNAME , COLNO , COLNAME , CASE WHEN TYPENAME NOT IN ('CLOB','LOB...
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; set names utf8; create table t1 (s1 string collate 'utf8_ko_cs_uca'); create table t2 (s1 string collate 'utf8_gen'); insert into t1 values ('가'),( '伽'); insert into t2 values ('가'),( '伽'); alter table t1 add d1 date default date '2001-11-12'; alter table t2 ...
<filename>openGaussBase/testcase/KEYWORDS/Comment/Opengauss_Function_Keyword_Comment_Case0023.sql -- @testpoint: opengauss关键字comment(非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists comment_test; create table comment_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists comment; create index comment ...
-- @testpoint:opengauss关键字delta(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists delta; create database delta; drop database delta; --关键字带双引号-成功 drop database if exists "delta"; create database "delta"; drop database "delta"; --关键字带单引号-合理报错 drop database if exists 'delta'; create database 'delta'; --关键字带反引号-合理报错 d...
<filename>database/src/main/resources/db/migration/V45__default_epsNavn_behandlingsinfo.sql UPDATE behandling SET behandlingsinformasjon = jsonb_set( behandlingsinformasjon, '{ektefelle, navn}', '{"fornavn": "", "mellomnavn": null, "etternavn": ""}'::jsonb ) where behandlingsinformas...
use iproject19 GO INSERT batchUsers (Username,Postalcode,Location,Country,Rating) VALUES ('**toffel**','86199','Duitsland','DE',86.0) INSERT batchUsers (Username,Postalcode,Location,Country,Rating) VALUES ('*ehrlicher*','21335','Duitsland','DE',58.0) INSERT batchUsers (Username,Postalcode,Location,Country,Rating) VALU...
CREATE PROCEDURE [dbo].[spAppointments_Update] @Id INT, @PatientId INT, @AppointmentDate DATETIME2(7), @AppointmentDuration NVARCHAR(8) AS BEGIN SET NOCOUNT ON; UPDATE Appointments SET PatientId = @PatientId, AppointmentDate = @AppointmentDate, AppointmentDuration = @AppointmentDuration WHERE Id = @Id; END
<filename>app/src/main/assets/migrations/6.sql ALTER TABLE CapturePoints ADD COLUMN CaptureRoute INTEGER;
---- -- phpLiteAdmin database dump (https://www.phpliteadmin.org/) -- phpLiteAdmin version: 1.9.8.2 -- Exported: 6:33pm on July 4, 2020 (CEST) -- database file: data\sqlite.db ---- ---- -- Table structure for contacts ---- CREATE TABLE contacts( id INTEGER PRIMARY KEY, fname TEXT COLL...
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS `doc` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `name` TEXT NOT NULL, `data` BLOB NOT NULL ); COMMIT;
<filename>schema.sql<gh_stars>0 Drop Database if exists employee_trackerBD; Create Database employee_trackerBD; Use employee_trackerBD; Create Table department ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, name VARCHAR (30) ); Create Table role ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, title VARC...
<filename>5.2.3/Database/Tables/AFW_12_LIEN_GROUP_UTILS.sql SET DEFINE OFF; CREATE TABLE AFW_12_LIEN_GROUP_UTILS ( SEQNC NUMBER(10), REF_GROUP NUMBER(10), REF_UTILS NUMBER(10), DATE_DEBUT_EFECT DATE DEFAULT NULL, DATE_FIN_EFECT DATE, DATE_CR...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2016 at 05:00 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>chengwenxin/sqlite-parser -- original: nan.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test PRAGMA auto_vacuum=OFF; PRAGMA page_size=1024; CREATE TABLE t1(x FLOAT) ;SELECT x, typeof(x) FROM t1 ;SELECT x, typeof(x) FROM t1 ;SELECT x, typeof(x) FROM t1 ;SELECT x, typeof(x) FROM t1 ;S...
<filename>Patches/Live_17/live_patch_17.sql USE [perpetuumsa] GO --------------------------------------------------------------- --Live 17: Destroyers + Flux ore + npc reinforcements --Last modified:2020/06/24 -- --01_BALANCE_coreactorCpu_onePerRobot__2020_05_26.sql --02_BALANCE_Hmech_srf_area__2020_01_28.sql --03_LARG...
<filename>resources/db/patches/mysql/0375~binaryblacklist.sql INSERT INTO binaryblacklist (id, groupname, regex, msgcol, optype, status, description) VALUES (13, '^alt\\.binaries\\.(kenpsx|frogs)$', '^ ?([a-fA-F0-9]{16}) \\[\\d+\\/\\d+\\] \\- \\"\\1\\" ?$', 1, 1, 0, 'Block 16 character hash floods in kenpsx, frogs.');
-- -- Set Fact_Acct.SubLine_ID for C_BankStatement -- create table backup.Fact_Acct_BKP_before_09549 as select * from Fact_Acct; drop table if exists TMP_Fact_Acct_ToUpdate; create temporary table TMP_Fact_Acct_ToUpdate as select * from Fact_Acct fa where true and fa.SubLine_ID is null and fa.AD_Table_ID=get_table_i...
<reponame>ijliym/ijleex-boot<filename>src/test/java/me/ijleex/dev/test/unihan/t_unicode_hanzi.sql<gh_stars>1-10 DROP TABLE IF EXISTS t_unicode_hanzi; CREATE TABLE t_unicode_hanzi ( id INT(10) NOT NULL AUTO_INCREMENT, han_char VARCHAR(8) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '汉字', code_point VARCHAR(8) NOT NULL...
<gh_stars>0 autocommit off; create view inventory_v3 (p joe.product_c2, q, l, s) as select product, quantity, location, shipment_pending from joe.inventory_c union all select product, quantity, location, shipment_pending from joe.inventory_c2; select * from inventory_v3; rollback;
<gh_stars>0 -- -- Estructura de tabla para la tabla `vyp_alojamientos` -- DROP TABLE IF EXISTS `vyp_alojamientos`; CREATE TABLE `vyp_alojamientos` ( `id_alojamiento` int(10) UNSIGNED NOT NULL, `id_mision` int(10) UNSIGNED NOT NULL, `fecha_alojamiento` date NOT NULL, `monto` float(5,2) NOT NULL, `id_ruta_visi...
<reponame>eugene-mindset/Poli-Interactive -- What bill(s) passed with the most amount of "Yes" votes in the senate, -- how many votes did it receive? WITH YesCountsPerBill AS ( SELECT bill_num, congress, COUNT(position) as numYes FROM Vote JOIN Role USING (member_id, congress) WHERE chamber="senate...
USE [ANS] GO /****** Object: Table [dbo].[Login] Script Date: 10/23/2011 09:03:45 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Login]( [LoginSystemID] [uniqueidentifier] NOT NULL, [LoginID] [nvarchar](50) NULL, [LoginOnDate] [datetime] NULL, [Message] [nvarchar](50) NULL, CON...
CREATE TABLE pokemon( id SERIAL, pokedex_number integer, pokemon_name text, is_legendary integer, type1_id integer, type2_id integer, ability1_id integer, ability2_id integer, hidden_ability integer, health integer, attack integer, defense integer, special_attack inte...
-- data INSERT INTO user (id, tenant_id, username, mobile, encrypted_password) VALUES (1, 1, 'username1', '<PASSWORD>', '<PASSWORD>'), (2, 1, 'username1', '<PASSWORD>', '<PASSWORD>'), (3, 1, 'username1', '<PASSWORD>', '<PASSWORD>'), (4, 1, 'username1', '<PASSWORD>', '<PASSWORD>'), (5, 1, 'username1', '<PASSWORD>', '<...
<filename>sql/gen_fk_from-11.2.sql<gh_stars>0 -- gen_fk_from-11.2.sql -- for oracle >= 11.2 -- generate fk references from table with fk as ( select cn.owner , cn.table_name , cc.constraint_name , listagg(cc.column_name,',') within group (order by cc.position) column_list , delete_rule , deferrable , r...
SET @start_time := '#StartYear#-#StartMonth#-#StartDay# 00:00:00'; SET @end_time := '#AfterEndYear#-#AfterEndMonth#-#AfterEndDay# 00:00:00'; DELETE FROM wagers_1.user_revenue_player WHERE AccountDate >= @start_time AND AccountDate < @end_time; DELETE FROM wagers_1.user_revenue_agent WHERE AccountDate >= @start_time ...
-- Storage of webcam full resolution ALTER TABLE webcams ADD fullres varchar(9) DEFAULT '640x480' NOT NULL;
-- file:sequence.sql ln:380 expect:true SELECT setval('seq3', 5)
<reponame>Tekh-ops/ezEngine Node %Max { string %Category { "Math/Clamping" } unsigned_int8 %Color { 183, 153, 0 } InputPin %a { string %Type { "float" } unsigned_int8 %Color { 128, 50, 50 } bool %Expose { true } string %DefaultValue { "0" } } InputPin %b { string %Type { "float" } ...
<gh_stars>1-10 ALTER TABLE db_version CHANGE COLUMN required_7904_01_mangos_creature_template required_7908_01_mangos_creature_template bit; ALTER TABLE creature_template ADD COLUMN unit_class tinyint(3) unsigned NOT NULL default '0' AFTER rangeattacktime; UPDATE creature_template ct JOIN creature c ON ct.entry=c.id ...
<gh_stars>10-100 CREATE TABLE IF NOT EXISTS message ( id SERIAL PRIMARY KEY, sender INT NOT NULL REFERENCES users(id), recipient INT NOT NULL REFERENCES users(id), title TEXT NOT NULL, text TEXT NOT NULL, date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE IF NOT EXISTS messages ( message_id INT P...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: db616940201 -- ------------------------------------------------------ -- Server version 5.6.25-0ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
<filename>database/group_project_nsbm.sql -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 10, 2019 at 11:22 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET...
INSERT INTO sec.system(code, name) VALUES ('access', 'Единая подсистема прав доступа') ON CONFLICT DO NOTHING; INSERT INTO sec.application(code, name, system_code) VALUES ('admin-web', 'Веб-модуль единой подсистемы прав доступа', 'access') ON CONFLICT DO NOTHING; INSERT INTO sec.client(client_id, grant_types, redirec...
<reponame>SkygearIO/skygear-server -- Put downgrade SQL here ALTER TABLE app DROP COLUMN "last_deployment_id"; DROP TABLE deployment_cloud_code; DROP TABLE deployment;
/* ################################################################################ Add additional columns to unpublished_studies author: <NAME> date: 06 April 2020 version: 2.4.0.016 ################################################################################ */ ALTER TABLE UNPUBLISHED_STUDY ADD (ARRAY_MANU...
<filename>library.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2017 at 12:47 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_CLIE...
<reponame>karolwell/e-ticket /* SQLyog Community v12.12 (64 bit) MySQL - 10.1.21-MariaDB : Database - tache ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; ...
<filename>closedaydata/OLD/IAT1709190910.sql<gh_stars>0 INSERT INTO pos_itemtemp VALUES("IATT190002649","193082","191001","192001","30000","1","30000","15000","15000","1","1","1","IAT1709190910","NHO2018000007","PAID","sambal pisah","193082"), ("IATT190002649","193076","191001","192001","30000","1","30000","15000","150...
<filename>conf/evolutions/default/2.sql<gh_stars>0 # --- !Ups alter table "DRUGS" add constraint "DRUGS_USER_SESSION_FK" foreign key("userToken") references "USER_SESSIONS"("token") on update NO ACTION on delete NO ACTION; # --- !Downs alter table "DRUGS" drop constraint "DRUGS_USER_SESSION_FK";
CREATE TABLE `BLOOD_BANK` ( `BANK_ID` INT NOT NULL, `ADDRESS` VARCHAR(200) NOT NULL, `CITY` VARCHAR(30) NOT NULL, `A+` INT NOT NULL, `A-` INT NOT NULL, `B+` INT NOT NULL, `B-` INT NOT NULL, `AB+` INT NOT NULL, `AB-` INT NOT NULL, `O+` INT NOT NULL, `O-` INT NOT NULL, CONSTRAINT...
<filename>sql/Kepu/KEPU/UKUPNI IZNOSI.sql<gh_stars>0 Select Case when NVL(zaduzenje,0) + NVL(rabat,0) <> 0 then nvl(zaduzenje,0) + nvl(rabat,0) Else 0 End ZADUZENJE , Case when NVL(razduzenje,0) <> 0 then nvl(razduzenje,0)+nvl(rabat,0...
-- ~~~~~~~~~~~~~~~~~~~~USERS DIMENSION TABLE~~~~~~~~~~~~~~~~~~~~~~~ # PURPOSE:: This table is designed to contain user characteristic information. # FIELDS :: Joining Date, Unique user id, Gender information, Age, Country, FirstName, Last Name. # PRIMARY KEY DESC:: user_id is the primary key, it is UNIQUE. CREATE TA...
<gh_stars>10-100 INSERT INTO `cron_log` ( `description`, `class`, `start_date`, `interval`, `interval_unity`, `current_status`, `next_time`, `finished`, `interactions`, `env`) VALUES ( 'Create GitHub Issues for Material Refil', 'Crunchbutton_Cron_Job_MarketingMaterialsRefil', '2016-4-14 18:00:00', 'day', 1, 'idle', nu...
<gh_stars>10-100 CREATE OR REPLACE VIEW balancer.view_remove_liquidity AS SELECT a.caller AS liquidity_provider, a.contract_address AS exchange_address, a."tokenAmountOut" / 10 ^ t.decimals AS token_amount, (a."tokenAmountOut" / 10 ^ t.decimals) * p.price AS usd_amount, t.symbol AS token_symbol, a.e...
-- Database is an orginaized collection of structured information -- Columns === Attributes -- Rows === Records -- SQL - Structured Query Language -- DBMS - DataBase Management System -- psql --help -- Creating Database -- Creating a database CREATE DATABASE test1; -- Connecting to databases \c test1; -- A very ...
SELECT C.COMPANY_CODE, C.FOUNDER, COUNT(DISTINCT L.LEAD_MANAGER_CODE), COUNT(DISTINCT S.SENIOR_MANAGER_CODE), COUNT(DISTINCT M.MANAGER_CODE), COUNT(DISTINCT E.EMPLOYEE_CODE) FROM COMPANY C, LEAD_MANAGER L, SENIOR_MANAGER S, MANAGER M, EMPLOYEE E WHERE C.COMPANY_CODE = L.C...
<reponame>thetooi/rartracker ALTER TABLE `users` ADD `language` VARCHAR(2) NOT NULL DEFAULT 'en' ;
create table if not exists test.oauth_client_details ( client_id varchar(255) not null primary key, resource_ids varchar(255) null, client_secret varchar(255) null, scope varchar(255) null, authorized_grant_types varchar(255) null, web_server_redirect_uri varchar(255) null, authorities varchar(255) null, acc...
<reponame>ulkeba/openolat<filename>src/main/resources/database/oracle/alter_8_1_x_to_8_2_0.sql -- update null value of user properties update o_userproperty set propvalue='_' where propvalue is null; -- relation groups to resources create table o_gp_business_to_resource ( g_id number(20) not null, version number...
SELECT member.name, COUNT(checkout_item.member_id) FROM member, checkout_item WHERE member.id = checkout_item.member_id GROUP BY checkout_item.member_id HAVING COUNT(checkout_item.member_id)>1;
SPARQL INSERT INTO <http://rdf.ebi.ac.uk/dataset/zooma/description> { <http://www.ebi.ac.uk/fgpt/zooma/sparql> a <http://www.w3.org/ns/sparql-service-description#Service> ; <http://www.w3.org/ns/sparql-service-description#defaultEntailmentRegime> <http://www.w3.org/ns/entailment/RDFS> ; ...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; INSERT INTO "data_source" VALUES(3,1,0,'prometheus','prometheus','proxy','http://PROMETHEUS_HOST:PROMETHEUS_PORT','','','',0,'','',0,X'7B7D','2016-10-23 12:20:11','2016-10-23 12:20:25',0); COMMIT;